• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month
Page
  1. 1
    1
  2. 2
    2
  3. 3
    3
  4. 4
    4
  5. 5
    5
  6. 6
    6
  7. 7
    7
  8. 8
    8
  9. 9
    9
  10. 10
    10
  11. 11
    11
  12. 12
    12
  13. 13
    13
  14. 14
    14
  15. 15
    15
  16. 16
    16
  17. 17
    17
  18. 18
    18
  19. 19
    19
  20. 20
    20
  21. 21
    21
  22. 22
    22
  23. 23
    23
  24. 24
    24
  25. 25
    25
  26. 26
    26
  27. 27
    27
  28. 28
    28
  29. 29
    29
  30. 30
    30
  31. 31
    31
  32. 32
    32

AQA Computing CPT3

Extracts from this document...

Introduction

AQA Computing: Module 3 'Peters Petrol Pumps' By Gavin Smith Candidate: 4179 Centre No: 61101 Contents Front Cover 1 Contents Page 2 Introduction to Module 3 The Programming Language 4 Designing Phase: Data Dictionary 5 6 Designing Phase: User Interfaces & Button Identifiers 7 8 9 Designing Phase: Evidence & Explanations 10 11 12 Implementation / Testing: Test Plan 13 14 15 16 Pump In Operation 17 18 19 Introduction to Module This module consists of a practical systems development project which will rely on the candidate (myself) to design and implement a petrol pump that will show a number of attributes through a customer's and cashier's interface. The model must be implemented according to the customer's specification. This program (petrol pump) must have the following features: * Records the amount of petrol dispensed * Records the amount of petrol sold * Records the current price of petrol (per litre) * Records the daily total of petrol dispensed/sold * Has a feature that allows the petrol pump to be reset I will design and implement an appropriate computing system and provide sufficient documentation to demonstrate the: * Design * Implement / Test I must produce this program using a high level language, the language I will use will be discussed in a later part of the write up. I will produce brief documentation on the following: * Design o Definition of data storage requirements o User interface design for console and petrol pumps o Algorithms for: * Pump operation * Console operation * Simulating the seven segment LCD display * Production of daily totals * Implementation / Testing o Details of test plan with explanation, and evidence of testing having been carried out o Clearly set out and comment, where appropriate, program listing The Programming Language As the specification indicates that I must use a high level language, I had to choose from a series of different languages, a high level programming language is defined as a programming language that, in comparison to low level programming languages, may be more abstract, easier to use, or more portable across platforms. ...read more.

Middle

Test 5: Ensuring that the console display is working correctly ==> Test 6: Testing the seven segment LCD digits ==> Test 7: Complete test scenarios with eight customers I will set the mentioned test and a set of other tests in a table below. In the table I will present a test ID, the test, the expected outcome, actual output, and the resolved / pass Test ID Test Expected Output Actual Output Resolved / Pass 001 Set price to 'ABC' Initiates the pricePerLitre to default (000.0) Initiates to default (000.0) V 002 (Test 2, 5 & 6) Dispense petrol above 100 Litres Seven segment LCD display will present incorrect figures, although normal display on cashier console will function correctly Seven segment LCD presented problems, with incorrect figures V Resolved - added code to stop petrol exceeding over 100 litres 003 (Test 1) Dispense petrol after previous transaction before the pump has been reset pumpStatus = will be "Awaiting Payment", therefore petrol will not be dispensed until the pump is reset Petrol pump will not allow further dispensing of petrol until pump is reset by cashier V 004 (Test 5) Set price of petrol to �1 per litre, and dispense 6 litres Petrol Dispensed = 6L Price of Petrol = 1.00 Total Price = 6.00 Petrol Dispensed = 6L Price of Petrol = 1.00 Total Price = 6.00 V 005 (Test 4) Set price of petrol to �0 per litre, and dispense petrol pumpStatus = "Price Is Too Low, Must Be In Between �0.01 and �1.99" pumpStatus = "Price Is Too Low, Must Be In Between �0.01 and �1.99" V 006 (Test 3) Set price of petrol to �11 per litre, and dispense petrol pumpStatus = "Price Is Too High, Must Be In Between �0.01 and �1.99" pumpStatus = "Price Is Too High, Must Be In Between �0.01 and �1.99" V 007 (Test 5) Start dispensing petrol, stop dispensing, and try and re-dispense immediately after stopping pumpStatus = "Pump Stopped, Replace Nozzle" pumpStatus = "Pump ...read more.

Conclusion

penceD3.gotoAndStop(tempNo + 1) // This is changing the third digit // Loads Digit 4 tempNo = Number (tempSt.charAt(3)) penceD4.gotoAndStop(tempNo + 1) // This is changing the forth digit } } function changePriceDisplay(xy:Number) { // Below are the variables that holds the digits in temp form, the tempSt holds the number in temp var tempSt:String var tempNo:Number = 0 tempSt = String(xy.toFixed(2)) if (xy >= 100) { // Loads Digit 1 tempNo = Number (tempSt.charAt(0)) priceD1.gotoAndStop(tempNo + 1) // This is changing the first digit // Loads Digit 2 tempNo = Number (tempSt.charAt(1)) priceD2.gotoAndStop(tempNo + 1) // This is changing the second digit // Loads Digit 3 tempNo = Number (tempSt.charAt(2)) priceD3.gotoAndStop(tempNo + 1) // This is changing the third digit // Loads Digit 4 tempNo = Number (tempSt.charAt(4)) priceD4.gotoAndStop(tempNo + 1) // This is changing the forth digit // Loads Digit 5 tempNo = Number (tempSt.charAt(5)) priceD5.gotoAndStop(tempNo + 1) // This is changing the fifth digit } else if (xy <100 && xy >=10) { // Loads Digit 1 priceD1.gotoAndStop(1) // This is changing the first digit // Loads Digit 2 tempNo = Number (tempSt.charAt(0)) priceD2.gotoAndStop(tempNo + 1) // This is changing the second digit // Loads Digit 3 tempNo = Number (tempSt.charAt(1)) priceD3.gotoAndStop(tempNo + 1) // This is changing the third digit // Loads Digit 4 tempNo = Number (tempSt.charAt(3)) priceD4.gotoAndStop(tempNo + 1) // This is changing the forth digit // Loads Digit 5 tempNo = Number (tempSt.charAt(4)) priceD5.gotoAndStop(tempNo + 1) // This is changing the fifth digit } else { // Loads Digit 1 priceD1.gotoAndStop(1) // This is changing the first digit // Loads Digit 2 priceD2.gotoAndStop(1) // This is changing the second digit // Loads Digit 3 tempNo = Number (tempSt.charAt(0)) priceD3.gotoAndStop(tempNo + 1) // This is changing the third digit // Loads Digit 4 tempNo = Number (tempSt.charAt(2)) priceD4.gotoAndStop(tempNo + 1) // This is changing the forth digit // Loads Digit 5 tempNo = Number (tempSt.charAt(3)) priceD5.gotoAndStop(tempNo + 1) // This is changing the fifth digit } } /*++++++++++++++++++++++++++++++++++++++++++++++ EVENT HANDLERS STOP ++++++++++++++++++++++++++++++++++++++++++*/ ?? ?? ?? ?? Gavin Smith (4179) Centre No: 61101 CPT3: Computing Write Up 1 ...read more.

The above preview is unformatted text

This student written piece of work is one of many that can be found in our AS and A Level Computer Science section.

Found what you're looking for?

  • Start learning 29% faster today
  • 150,000+ documents available
  • Just £6.99 a month

Not the one? Search for your essay title...
  • Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

See related essaysSee related essays

Related AS and A Level Computer Science essays

  1. Marked by a teacher

    The systems development life cycle (SDLC) is a conceptual model used in project management ...

    3 star(s)

    expects from the system. The requirements are gathered from the end-user by consultation, these requirements are analyzed for their validity and the possibility of incorporating the requirements in the system to be development is also studied. Finally, a Requirement Specification document is created which serves the purpose of guideline for the next phase of the model.

  2. Computing Project

    //show this message end;//end end. unit Umenu; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls; type TFmMenu = class(TForm) BtnRegAMem: TButton; BtnRntDVD: TButton; BtnAddDVD: TButton; Label1: TLabel; BtnExt: TButton; BtnReturnDvd: TButton; BtnLoansOverdue: TButton; Image1: TImage; BtnLogin: TButton; BtnSetupUandP: TButton; procedure BtnSetupUandPClick(Sender: TObject); procedure BtnLoginClick(Sender: TObject);

  1. 140 Computing A-Level Revision Questions

    Describe the following forms of addressing: i) immediate ii) direct iii) indirect 64. Describe the difference between a one address and a two address system for machine code instructions when implementing a simple arithmetic operation. 65. Name the registers associated with the Fetch/execute cycle 66.

  2. I have been given the task to design a database for a company called ...

    To test this I created a new table to see if the correct data came up, the date when tested was 29/04/01 and as you can see from below the input mask works. TESTING USING TEST DATA GIVEN Customer Parcel Weight in Kg Length in cm Breadth in cm Height

  1. Data Representation

    Unicode was devised so that one unique code is used to represent each character, even if that character is used in multiple languages. The ASCII encoding system, using 7 bits, is sufficient to represent the ordinary Latin alphabet and was developed in the 1950s.

  2. What is transaction processing?

    It is also easy to produce business forecasting, breakeven point and profit and loss details. Data within a spreadsheet can be linked via formulae and functions to other workbooks or even other sheets within the original workbook. Links into other programs can also be incorporated, which will enable the document to be updated automatically as the original source is amended.

  1. Computing Project

    I am going to use bottom up testing, to test the system. This involves testing each individual module using prepared test data, which includes normal data, extreme data, upper and lower limits and individual data after this is done I will test the program to see if every route through

  2. ict implementation

    (1)user clicks the button (2) As you can see below the invoice worksheet opens Test number 9 Stock list worksheet Test number Test criteria Test purpose Expected outcome Actual outcome 7 Click the command button "home page" To check the if the button goes to the home page The "homepage"

  • Over 160,000 pieces
    of student written work
  • Annotated by
    experienced teachers
  • Ideas and feedback to
    improve your own work