Question: #JAVA Tailor provides a tailoring service for Equipment. Due to overwhelming orders from the hospital, the tailoring job is done by Tailor on a first

#JAVA #JAVA Tailor provides a tailoring service for Equipment. Due to overwhelming

Tailor provides a tailoring service for Equipment. Due to overwhelming orders from the hospital, the tailoring job is done by Tailor on a first come first serve basis. In order to help Ridz Tailor manage their business, a computerised queuing system using classes SHIRT and Queue has been developed. public class SHIRT { private String customerName; //customer's name private String orderDate //date of order, format ddmmyyyy private int quantity; //quantity ordered Definition of methods including constructors, mutators, accessors and toString() printer **/ } public class Queue extends LinkedList { public Queue () {...} public void enqueue (E e) {...} //inserts a data into the queue public E dequeue () {...} //deletes a data from the queue public boolean isEmpty() {...} //checks whether the queue is //empty 1) Write a program segment to do the following tasks: (Note: In order to avoid data loss, use a temporary queue to store SHIRT information). i. Declare and instantiate a Queue object for storing SHIRT order data. Get the data from user and store the data into Queue until there is no more order to be processed. ii. Display information on the order that has the highest quantity. 2) Find and display how many SHIRT were ordered in June 2020

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!