Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use C++ Standard Template Library to build this progranm Car wash simulation The Long Beach Hand Car Wash company had decided to modernize and change

image text in transcribed

Use C++ Standard Template Library to build this progranm Car wash simulation The Long Beach Hand Car Wash company had decided to modernize and change its image. It has installed a fast, fully automated car-washing mechanism that can wash car in one to ten minutes. It will be soon open under its new name The Shining Auto Wash Emporium. The company wants to know the most efficient way to use its new car-wash mechanism. If the mechanism is used on the fast setting, it can wash car in one minute but because of the high pressure required to operate at such speed, the mechanism uses the great deal of water and soap at this setting. At lower setting, it takes longer to wash car, but use less soap and water. The company wants to know how many customers will be seved and how long the customer will be wait in line when the washing is used at one of the slowest speed. The CECS 282 students agree to write a program that will simulate automobiles waiting in line for car wash. This way the manager of car wash can see how the speed of the car wash, the length of the line, and various other factors nteract Car wash simulation - Specifications Input - The program has three input items: 1. The amount of time needed to wash one car (in total seconds) 2. The probability that a new customer arrives during any given second (we assume that 3. The total length of time to be simulated (in seconds) 1. The number of customers serviced in the simulated time , at most, one customer arrives in one second) Output- The program produces two pieces of output information: 2. The average time that the customer spent in line during the simulation (in seconds) Sample output Seconds to wash one car: 240 Probability of customer arrival during a second: 0.0025 Total simulation seconds: 6000 Customer served: 14 Average wait: 38.2857

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

What is loss of bone density and strength as ?

Answered: 1 week ago

Question

The paleolithic age human life, short write up ?

Answered: 1 week ago