Question: DEF Wash Machine - User Input Problem Description The DEF Wash Machine problem will use the same problem description as the workedDexample of ABC Wash

 DEF Wash Machine - User Input Problem Description The DEF Wash

DEF Wash Machine - User Input Problem Description The DEF Wash Machine problem will use the same problem description as the workedDexample of ABC Wash Machine with regard the DEF Wash Machine provides two types of services: Clock.java . Type 1: normal wash (takes 6 minutes for every service) . Type 2: wash and polish (takes 10 minutes for every service). Customer.java DEFWashMachine.java The owner of the DEF Wash Machine would like to know the statistical information as below: Queue.java . Total customers: . Number of customers for service of type 1: Number of customers for service of type 2: Longest customer waiting time: . Average customer waiting time: ** Your task is to modify the worked-example of ABC Wash Machine and print out the above statistical information. Input Customer arrival time and service type. Each of line represent minutes and service type (1 or 2). 42 1 1 92 42 71 6 1 Sample Output Total customers: 5 Number of customers for service of type 1: 2 Number of customers for service of type 2: 3 Longest customer waiting time: 15 minutes Average customer waiting time: 8.40 minutes

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 Programming Questions!