Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions