Simulate the functionality of “Gas & Co.”

You are asked to simulate the functionality of “Gas & Co.” fuel station. The station

consists of a number of fuel pumps, initially three of them. Each pump contains an input

area, a display (status, amount being dispensed, amount of money), and a dispenser, and

gives out one type of fuel (diesel, gasoline, etc.). Each type of fuel has a variable price

that is configured on the fuel station price list. The fuel contained in a pump is of finite

size and needs to be refilled periodically in order to serve the customers. “Gas & Co.”

also registers regular customers and rewards them with special discounts according to

flexible business rules.

The station operator starts by selecting the pump, inputting the customer identity (if any,

otherwise considered an anonymous customer), and then entering either the amount of

fuel (depending on the pump configuration, can be litres, gallons, etc.) or the amount of

money. If there is available fuel, the dispenser starts dispensing fuel at a fixed rate,

reflected on the fuel station display (both amount and money), until the amount

requested is completely dispensed. Thus, the display is continuously notified as the state

of the fuel pump changes. Otherwise, if the requested fuel amount is not available, an

error is displayed on the display.

When the new customer arrives, the values are reset to 0. The pump makes sure it does

not accept new customer and fuel amount values while it is dispensing fuel, thus it

switches between different “states”. The customer of this application may require in the

future to upgrade the displays to fancier ones, thus replacing displays should not be too

difficult for programmers.

For anonymous customers, the charge is calculated from the amount of fuel (or, vice

versa, the amount of fuel is calculated from the amount of money) based on the simple

formula charge = (amount in units) x (price/unit). However, for registered customers,

special discounts may apply. The discount strategies are variable over time, such as

fixed percentage discount, fixed amount of discount if a certain amount threshold is

passed, free first litres/gallons, etc. These discount rules should be easily selected during

run time and new ones easily added to the application in the future.

Kemahiran: Kejuruteraan Perisian, Destop Windows, Java

Lihat lagi: different flag displayed blackberry messenger location, different flag displayed blackberry messenger, hi webexpertssss i noticed your profile and would like to offer you my project i have few website correction and reset the pw fo, in this lab you will simulate one of the classical synchronization problems in order to see how the semi critical section proble, we need a logo in different size with favicon for a payment processor in any colors you can design logo design should be unique , a govt registered co offers you data entry form filling and paid survey work get paid on daily work online from home cyber cafe, a govt registered co offers you data entry form filling and paid survey work get paid on daily work online from home or cyber ca, you tu be co m, can you have a profile on freelancer com and co uk, can you tell me how to write a 5 1 co show me how to write one for grant money, freelance co uk how can you change to uk pounds, gas pressure switches antunes controls 3d model, https www freelance com read more at http money divyabhaskar co in news cppst biz indu comp these five websites can help you ear, resultaten voor narration writing pretend that one morning you wake up and find yourself in a different country describe what ha, website where you can type anything in different designs and fonts, what do you call an accountant who works for a company online in a different city, Hello , you and Facebook not accept my email , I ask : are you accept Yahoo? , can you use square to accept payments online, this player and you have different versions of the game and cannot play together, how does sarin gas kill you

Tentang Majikan:
( 1 ulasan ) Bialystok, Poland

ID Projek: #27464956

2 freelancers are bidding on average $58 for this job

(267 Ulasan)

Hi Dear, I read your description carefully. I understood what you require me to do and I am filled with confidence that I can complete your project wonderfully. I have experience over 5+ years with Java/JavaFX/JavaSwin Lagi

$15 USD dalam sehari
(2 Ulasan)