Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Sunday at 8:26 PM
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Saturday at 8:07 AM
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Ad icon
USDT ණය සේවාව - USDT Loan Service
පුරවැසියා
Updated:
Jul 15, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Help with VB
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="nabil" data-source="post: 1152353" data-attributes="member: 22203"><p><strong>Heres the detailed specification</strong></p><p></p><p><strong></strong></p><p><strong>19.2 Background </strong></p><p></p><p>Petrol stations selling petrol usually show prices and amount of</p><p>petrol dispensed on each petrol pump and also have a console in the</p><p>office showing information about each sale from each petrol pump</p><p>on the garage forecourt.</p><p>Each petrol pump shows how much petrol has been sold, the price</p><p>per litre in pence to one decimal place and the total amount to pay.</p><p>The console also displays this information for each pump.</p><p>Peter owns a small petrol station with one petrol pump. Every day</p><p>Peter needs to know the number of litres of petrol that are sold and</p><p>the total amount of money taken for the pump.</p><p>You have been asked to write a PROGRAM to simulate the display</p><p>on the pump and on the console.</p><p>The system you are to develop is simplified and should not include</p><p>details about taking money from the customers but just assume that</p><p>the amount displayed is the amount of money received. Also you are</p><p>not required to test for the customer’s petrol tank overflowing when</p><p>the petrol is being dispensed.</p><p></p><p></p><p><strong>19.3 Specification </strong></p><p></p><p></p><p>1. You have been asked to write a program to simulate the display of</p><p>one petrol pump only and the console. The program needs to</p><p>record the amount of petrol sold in tenths of a litre and the amount</p><p>to be paid in pounds and pence every time the pump is used.</p><p>The display on the petrol pump uses seven segment LCDs (Liquid</p><p>Crystal Displays). As part of your programming you will need to</p><p>write and test a procedure to display a number as a seven segment</p><p>figure. The console must also display the total amount of money</p><p>taken but does not need to use an LCD.</p><p>XXX.XX Amount to Pay (£ p)</p><p>XX.X Litres</p><p>XXX.X Pence per litre</p><p>Note to teachers: if a candidate is unable to write a procedure to</p><p>simulate a seven segment LCD display successfully, a simplified</p><p>display could be programmed but the candidate may be unable to</p><p>provide appropriate evidence to answer some questions set in the</p><p>examination.</p><p>Computing - Advanced Subsidiary and Advanced, 2008 examination</p><p>44 klm</p><p></p><p></p><p>2. Peter at the console can:</p><p>• set and change the price per litre in pence</p><p>• zero the amount of petrol dispensed (this will also</p><p>automatically zero the amount paid)</p><p>• view the total takings and total petrol sold</p><p>• set the total takings and total petrol sold to zero at the</p><p>beginning of each day.</p><p></p><p></p><p>3. The customer buying petrol can:</p><p>• remove nozzle from holster to indicate they are ready to</p><p>buy petrol</p><p>• squeeze the nozzle to put petrol in the tank</p><p>• stop squeezing the nozzle to stop putting petrol in the</p><p>tank</p><p>• replace the nozzle to finish putting petrol in the tank</p><p>Each of the above can be simulated by keystrokes or the use of a</p><p>button or similar.</p><p></p><p></p><p>4. The petrol pump displays:</p><p>• the current price in pence per litre to 1 decimal place as seven</p><p>segment LCDs</p><p>• the amount of petrol dispensed at any time as seven segment</p><p>LCDs showing the number of litres to one decimal place.</p><p>This display remains after the petrol has been dispensed until</p><p>zeroed by Peter from the console.</p><p>• the amount to be paid at any time as seven segment LCDs</p><p>showing the amount in pounds and pence. This display</p><p>remains after the petrol has been dispensed until the number</p><p>of litres of petrol dispensed has been zeroed by Peter.</p><p>The pump can dispense between 0.5 and 100 litres in tenths of a</p><p>litre. The price per litre can be up to 199.9 pence per litre.</p><p></p><p></p><p>5. The console displays:</p><p>• The state of the pump:</p><p>o ready for use (display set to zero customer can start</p><p>putting petrol in the tank)</p><p>o in use</p><p>o out of use (waiting for Peter to zero the display)</p><p>• the amount of petrol being dispensed by the pump when it is</p><p>in use, showing the number of litres to one decimal place.</p><p>This display remains after the petrol has been dispensed until</p><p>zeroed by Peter.</p><p>• the amount to be paid when the pump is in use in pounds</p><p>and pence. This display remains after the petrol has been</p><p>dispensed until the number of litres of petrol dispensed has</p><p>been zeroed Peter.</p><p>Advanced Subsidiary and Advanced, 2008 examination - Computing</p><p>klm 45</p><p>When the nozzle is replaced in the holster the amount of petrol</p><p>dispensed is added to the total amount for that day, and the amount</p><p>paid is added to the total amount paid from all the sales that day.</p><p>The pump is flagged as out of use until the number of litres</p><p>dispensed is zeroed on the pump and the console, it is then set as</p><p>ready for use by the next customer.</p></blockquote><p></p>
[QUOTE="nabil, post: 1152353, member: 22203"] [B]Heres the detailed specification[/B] [B] 19.2 Background [/B] Petrol stations selling petrol usually show prices and amount of petrol dispensed on each petrol pump and also have a console in the office showing information about each sale from each petrol pump on the garage forecourt. Each petrol pump shows how much petrol has been sold, the price per litre in pence to one decimal place and the total amount to pay. The console also displays this information for each pump. Peter owns a small petrol station with one petrol pump. Every day Peter needs to know the number of litres of petrol that are sold and the total amount of money taken for the pump. You have been asked to write a PROGRAM to simulate the display on the pump and on the console. The system you are to develop is simplified and should not include details about taking money from the customers but just assume that the amount displayed is the amount of money received. Also you are not required to test for the customer’s petrol tank overflowing when the petrol is being dispensed. [B]19.3 Specification [/B] 1. You have been asked to write a program to simulate the display of one petrol pump only and the console. The program needs to record the amount of petrol sold in tenths of a litre and the amount to be paid in pounds and pence every time the pump is used. The display on the petrol pump uses seven segment LCDs (Liquid Crystal Displays). As part of your programming you will need to write and test a procedure to display a number as a seven segment figure. The console must also display the total amount of money taken but does not need to use an LCD. XXX.XX Amount to Pay (£ p) XX.X Litres XXX.X Pence per litre Note to teachers: if a candidate is unable to write a procedure to simulate a seven segment LCD display successfully, a simplified display could be programmed but the candidate may be unable to provide appropriate evidence to answer some questions set in the examination. Computing - Advanced Subsidiary and Advanced, 2008 examination 44 klm 2. Peter at the console can: • set and change the price per litre in pence • zero the amount of petrol dispensed (this will also automatically zero the amount paid) • view the total takings and total petrol sold • set the total takings and total petrol sold to zero at the beginning of each day. 3. The customer buying petrol can: • remove nozzle from holster to indicate they are ready to buy petrol • squeeze the nozzle to put petrol in the tank • stop squeezing the nozzle to stop putting petrol in the tank • replace the nozzle to finish putting petrol in the tank Each of the above can be simulated by keystrokes or the use of a button or similar. 4. The petrol pump displays: • the current price in pence per litre to 1 decimal place as seven segment LCDs • the amount of petrol dispensed at any time as seven segment LCDs showing the number of litres to one decimal place. This display remains after the petrol has been dispensed until zeroed by Peter from the console. • the amount to be paid at any time as seven segment LCDs showing the amount in pounds and pence. This display remains after the petrol has been dispensed until the number of litres of petrol dispensed has been zeroed by Peter. The pump can dispense between 0.5 and 100 litres in tenths of a litre. The price per litre can be up to 199.9 pence per litre. 5. The console displays: • The state of the pump: o ready for use (display set to zero customer can start putting petrol in the tank) o in use o out of use (waiting for Peter to zero the display) • the amount of petrol being dispensed by the pump when it is in use, showing the number of litres to one decimal place. This display remains after the petrol has been dispensed until zeroed by Peter. • the amount to be paid when the pump is in use in pounds and pence. This display remains after the petrol has been dispensed until the number of litres of petrol dispensed has been zeroed Peter. Advanced Subsidiary and Advanced, 2008 examination - Computing klm 45 When the nozzle is replaced in the holster the amount of petrol dispensed is added to the total amount for that day, and the amount paid is added to the total amount paid from all the sales that day. The pump is flagged as out of use until the number of litres dispensed is zeroed on the pump and the console, it is then set as ready for use by the next customer. [/QUOTE]
Insert quotes…
Verification
Winadiyakata thappara keeyak tibeda?
Post reply
Top
Bottom