Find Jobs
Hire Freelancers

Simulate the functionality of “Gas & Co.”

$10-30 USD

Imefungwa
Imechapishwa over 3 years ago

$10-30 USD

Kulipwa wakati wa kufikishwa
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.
Kitambulisho cha mradi: 27464956

Kuhusu mradi

2 mapendekezo
Mradi wa mbali
Inatumika 4 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
2 wafanyakazi huru wana zabuni kwa wastani $58 USD kwa kazi hii
Picha ya Mtumiaji
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/JavaSwing. I ensure: => The Best Quality, => The Shortest Time. If you give me a chance, I will do my best to complete this project for us. I can complete this project with the best quality in time. I hope your kind reply. Best Regards. Chian Y.
$15 USD ndani ya siku 1
5.0 (2 hakiki)
1.9
1.9

Kuhusu mteja

Bedera ya POLAND
Bialystok, Poland
5.0
1
Njia ya malipo imethibitishwa
Mwanachama tangu Mei 25, 2020

Uthibitishaji wa Mteja

Kazi nyingine kutoka kwa mteja huyu

Strategies for solution space searching
$30-250 USD
Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.