• 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)

    The phases in Waterfall model are: Requirement Specifications phase, Software Design, Implementation and Testing & Maintenance. All these phases are cascaded to each other so that second phase is started as and when defined set of goals are achieved for first phase and it is signed off, so the name "Waterfall Model".

  2. Computing Project

    TObject); This procedure Overdue Loans Form procedure TFmLoansOverdue.BtnActivateQueryClick(Sender: TObject); This procedure actvates the query to gather all the loans which are overdue. procedure TFmLoansOverdue.BtnPrintClick(Sender: TObject); This procedure is to print out the overdue loans list procedure TFmLoansOverdue.BtnExitClick(Sender: TObject); This procedure is to exit the form and return back to the main menu.

  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 ...

    When testing this input mask I tried to enter in a lower case 'e'. As a result the system automatically entered the 'e' as 'E', this is shown below in the screen print. There is also an input mask to make sure the Business postcode has a letter, letter, number, number, number, letter, and letter.

  1. Data Representation

    Today most computers use 8 bits to represent a character, as this is not sufficient to represent additional characters, like accent marks. ASCII (American Standard Code for Information Interchange) ASCII is the worldwide standard for the code numbers used by computers to represent all the upper and lower-case Latin letters, numbers, punctuation, etc.

  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

    very confidential, if details of the student were to get lost or misplaced then this would be in breach of the data protection act. To keep the data secure I am going to make sure that the user backs up the data at the end of every working week and

  2. ict implementation

    and the homepage worksheet will open (2) (1)Homepage button (2) as you can see below the homepage opens once the homage navigation button has been clicked Test number 8 The user clicks on the worksheet button "invoice " (1)as shown below and the following will show(2)

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