Create a class called fuelqueue

Assignment Help JAVA Programming
Reference no: EM133214609

Question : (Please do not use 'Array Lists' or any other library method. Use classes and objects with oop concepts.)

The Class version should be able to manage 5(Five) pumps parallelly. Create a class called FuelQueue and another class called passenger. (The menu and its options are mentioned at the bottom.) Each queue can hold up to 6 passengers with the following additional information. 
i. First Name.
ii. Second Name.
iii. Vehicle No
iv. No. of liters required.
Note: In class version, add customer to the Fuel queue (102 or ACQ) option must select the queue with the minimum length.
Add an additional option to the menu. '110 or IFQ' that will give the user the option to print the income of each Fuel queue. (You can take price of a fuel liter as 430). 
Then add a waiting list to your Fuel Queue class version.
Modify your '102 or ACQ Add customer to a Queue' and '104 or PCQ: Remove a served customer' as follows:
• When you press '102 or ACQ' to add a new customer, the customer should be added to the Waiting List queue if the Fuel queues are full.
• When you press '104 or PCQ' to remove a served customer, the next customer in the Waiting List queue should be automatically placed in the fuel queue. Extra marks will be awarded if you implement the waiting list queue as a circular queue.

These are the menu options;

100 or VFQ: View all Fuel Queues.
101 or VEQ: View all Empty Queues.
102 or ACQ: Add customer to a Queue.
103 or RCQ: Remove a customer from a Queue. (From a specific location)
104 or PCQ: Remove a served customer.
105 or VCS: View Customers Sorted in alphabetical order (Do not use library sort routine)
106 or SPD: Store Program Data into file. 107 or LPD: Load Program Data from file. 108 or STK: View Remaining Fuel Stock.
109 or AFS: Add Fuel Stock.
999 or EXT: Exit the Program.

Fuel Center will have exactly 6600 liters in their stock. For each customer added to the queue, stock should be updated. (Assume each customer is served with 10 liters), and a warning message should be displayed when the stock reaches a value of 500 liters.

Please do not use array lists. 

If you can provide comments to understand the code it will be much appreciated.

Reference no: EM133214609

Questions Cloud

Write a javascript function to add the books : Write a JavaScript function to add the following books in the library collection for author John Grisham. The number in the parentheses is the year of publicati
Make a program to make a class called shapeobject : make a program to make a class called ShapeObject and this class contains the below,
Discuss plans for upholding four aspects of professionalism : Discuss your plans for upholding the four aspects of professionalism-sense of identity, purpose to engage in DAP, commitment to ethical teaching
Number of check-in persons should be less : The booking webpage asks customers to fill in a booking form that collects a series of customer information including customer name, email address, phone number
Create a class called fuelqueue : The Class version should be able to manage 5(Five) pumps parallelly. Create a class called FuelQueue and another class called passenger. (The menu and its optio
Create a powerpoint about an organization : Create a PowerPoint about an organization that is using their business analytics capabilities to successfully drive innovation
Perform user management tasks : Make a bash script to perform user management tasks as outlined below and provide the example for each question
Is having this many choices a good thing for consumers : Consider the number of product choices available in the U.S. consumer market. Is having this many choices a good thing for consumers? Why or why not
Method that displays the value of the fields : You should be able to infer the data types required for each of the fields. Your code should include the following in the template:

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd