Project help [message #1075475] |
Mon, 29 July 2013 13:41 |
James P Messages: 3 Registered: July 2013 |
Junior Member |
|
|
Hey everyone.
I've been given an assignment by my college tutor, If I fail the work I'm off my course, I have to get it done ASAP but I've never had experience using Java Eclipse before (Only a bit of Visual basic)
My course isn't one that should really include programming and I'm not very confident of my chances to complete the project without any help or advice.
I'll paste the basic idea and spec for the work, I don't like asking but if anyone could help me start or give me general advice of how to go about completing this I'd be extremely grateful.
>>>>>>
'For this assignment you are asked to implement a model of the operation of a petrol service station, based on the description that follows:
The petrol service station has four petrol pumps for customers to use to refuel their vehicles. To use a pump the customer lifts the nozzle at the pump and the pump provides and indicator that displays 'ready' or 'wait'. A pump is in 'wait' mode until the kiosk attendant switches a pump to 'ready'. Once the pump is 'ready' the customer can refuel their tank. During the refueling the pump displays the amount of petrol delivered and the rolling total price. This information is also viewable centrally at the control desk by the kiosk attendant. When finished the customer places the nozzle back on the pump, at which point the pump mode changes back to 'wait' automatically. Finally, the customer goes to the kiosk to pay for the petrol and when s/he has done so, the pump will be made 'ready' again by the kiosk attendant. After paying for the petrol the customer receives a receipt with the date and time of the purchase, the amount of petrol and the total cost. A petrol station manager can view summary reports showing a list of transactions and the total amount of petrol dispensed and money taken on that day.'
Implement the petrol service station model as a program, including appropriate comments explaining the functionality. The implementation should provide a simple text-based command-line user interface that allows the user to play the role of the customer, kiosk attendant or Petrol Service Station manager. As a minimum the following options should be provided.
Allow a customer to refuel their vehicle with a specific amount of petrol.
Allow the customer to make a payment for the amount of petrol and receive a receipt.
Allow the kiosk attendant to reset pumps to ready.
Allow the kiosk attendant to view the state of each pump (ready/inactive).
Allow the Petrol Service Station manager to view printed reports for:
- A list of the daily transactions associated with each pump (where each transaction is in the form date, time, quantity of petrol, cost).
- The daily total of petrol delivered from the station as a whole and the daily takings from the station.
The simulation should produce textual output to show the results after the selection of any of the previous options.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03061 seconds