Pascal Progress
Just another WordPress.com weblog

Actions

Actions

0819

  • display of one petrol pump only and the console
  • amount of petrol sold in tenths of a litre
    • Litres – xx.x
  • amount to be paid in pounds and pence
    • Amount to pay – £ xx.xx
    • Pence per liter –    xxx.xx
  • petrol pump uses seven segment LCDs
  • 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

Peter’s options

  • Set Price per litre (in pence)
  • Change Price per litre (in pence)
  • Reset over all amount of petrol dispensed
  • Reset amount of petrol dispensed after every transaction
  • Reset overall amount taken
  • Reset amount paid after every transaction
  • View total taking for that day
  • View amount of petrol sold for that day

Customers actions

  • Remove the nozzle
  • Squeeze the nozzle
  • Stop squeezing
  • replace the nozzle

Customer Display (Petrol Pump)

Should display in 7segment LCD

  • Current Price : Pence per litres
  • Amount of petrol dispensed : Litres (1dp)
  • Amount to pay: Pound and Pence

Amount of petrol dispensed and amount pay will remain untilled zeroed by Peter.

  • Petrol dispensed : 0.5 – 100 litres in tenths of a litre
  • Price per litre can be up to : 199.9 pence per litre

Peter’s Display (Console Display)

  • State of the pump (Ready to use | In use | Out of order)
  • Amount of petrol dispensed : Litres (1dp)
  • Amount to pay: Pound and Pence

When nozzle replaced:
Amount of petrol dispensed + Total amount for the day
Amound paied + Total amount for the day (From all the sales that day)

Flagged out of order: Until number of litre dispensed is zero on the Pump and Console

Advertisements

No Responses to “Actions”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: