Question: Programming Language is C++ Students from Biomedical Engineering Department, Chemical andMaterials Engineering Department, Civil Engineering Department,Computer Science Department, and Mechanical Engineering Departmentare planning to travel

Programming Language is C++

Students from Biomedical Engineering Department, Chemical andMaterials Engineering Department, Civil Engineering Department,Computer Science Department, and Mechanical Engineering Departmentare planning to travel from Atlanta to Chicago October 1,2019. They plan to rent some vehicles to drive to Chicago.Suppose there are several choices for them:

A bus allows 60passengers; A van allows 13 passengers; A SUVallows 7passengers; A sedan allows 4passengers.The restriction isthat each vehicle must be used as full capacity as possible, inorder to minimize the total number of vehicles to rent. If there isonly one passenger, for example, we rent a sedan instead of otherlarger size vehicles. We also know that there are at maximum 5buses and at maximum 7 vans available on that day, and no limitednumber for either SUVs or sedans. Write a program to read the totalnumber of students(as passengers), and determine the minimum numberof vehicles they need to rent. For example, if there are 93students, they need one bus, two vans, one suv and zero sedan. Yourprogram should print the number of each type of vehicle needed,neatly formatted as shown in the sample output. However if thenumber of specified type of vehicle needed is zero, its name shouldnot display.

Please enter the number of students: 3 The travel team needs to

Please enter the number of students: 3 The travel team needs to rent: 1 sedan (s). Press any key to continue... output 3: Please enter the number of students: 4 The travel team needs to rent: 1 sedan (s). Press any key to continue... output 4: Please enter the number of students: 5 The travel team needs to rent: 2 sedan (s). Press any key to continue... output 5: Please enter the number of students: 574 The travel team needs to rent: 4 van (s). 2 sedan (s). Press any key to continue...

Step by Step Solution

3.37 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a possible C program that takes into consideration the maximum availability of buses and van... View full answer

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!