Find Jobs
Hire Freelancers

Simulate the functionality of “Gas & Co.”

$10-30 USD

Κλειστή
Αναρτήθηκε πάνω από 3 χρόνια πριν

$10-30 USD

Πληρωμή κατά την παράδοση
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.
Ταυτότητα εργασίας: 27464956

Σχετικά με την εργασία

2 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 3 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
2 freelancers δίνουν μια μέση προσφορά $58 USD για αυτή τη δουλειά
Avatar Χρήστη
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 σε 1 ημέρα
5,0 (2 αξιολογήσεις)
1,9
1,9

Σχετικά με τον πελάτη

Σημαία της POLAND
Bialystok, Poland
5,0
1
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Μαΐ 25, 2020

Επαλήθευση Πελάτη

Άλλες δουλειές από αυτόν τον πελάτη

Strategies for solution space searching
$30-250 USD
Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.