Question 3 Almost any kind of service will form a queue. This program will analyze the total queuing time of vehicle ser

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question 3 Almost any kind of service will form a queue. This program will analyze the total queuing time of vehicle ser

Post by answerhappygod »

Question 3 Almost Any Kind Of Service Will Form A Queue This Program Will Analyze The Total Queuing Time Of Vehicle Ser 1
Question 3 Almost Any Kind Of Service Will Form A Queue This Program Will Analyze The Total Queuing Time Of Vehicle Ser 1 (44.47 KiB) Viewed 50 times
Question 3 Almost any kind of service will form a queue. This program will analyze the total queuing time of vehicle service in one of authorized workshop of well-known automotive brand. Assume that service time for each vehicle is 45 minutes. Referring to the requirements below, using Queue STL implementation, write a complete CH program for the vehicle service system. Requirements: 1. In main(), define a queue named Record with data fields for owner (string) and platNo (string). 2. Provide carinput() function to accept input data for the car. You are required to use sentinel- controlled loop. 3. Provide displayCar() function to display all records. 4. Provide serviceCar() function to check the queue status of a car. User needs to input plat number and the program should be able to notify user either the car can be serviced now or need to wait. SAMPLE OUTPUT ::Car Record: : Enter Owner name: Shanitha Enter plat no: WKJ9540 Press [Y] for next input: Y Enter Owner name: Lee Min Jee Enter plat no: VP4512 Press [Y] for next input: N List of Cars: 1. Owner name : Shanitha, Plat no: WKJ9540 2. Owner name: Lee Min Jee, Plat no: VP4512 Would you like to check queue status [Press Y for Yes] : Y Enter plat no: VP4512 There is (1) car in queue before your turn. Estimated time in queue: 45 mins. Would you like to check queue status [Press Y for Yes] : Y Enter plat no: WKJ9540 There is (0) car in queue before your turn. Estimated time in queue: 0 mins. End of program.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply