Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ANSWER IN C++ Suppose you have a group of people who need to be transported on buses and vans. You can charter a bus only
ANSWER IN C++
Suppose you have a group of people who need to be transported on buses and vans. You can charter a bus only if you can fill it. Each bus holds 50 people. You must provide vans for the 49 or fewer people who will be left over after you charter buses. Write a complete program that accepts a number of people and determines how many buses must be chartered and reports the number of people left over that must be placed on vans.
Programs vans. 1. Suppose you have a group of people who need to be transported on buses and You can charter a bus only if you can fill it. Each bus holds 50 people. You must provide vans for the 49 or fewer people who will be left over after you charter buses. Write a complete program that accepts a number of people and determines how many buses must be chartered and reports the number of people left over that must be placed on vans. User input can be any content and it's bold and italicized for clarity. Example Output 1: TRASPORTATION CENTER How many passengers are there? 166 There will be 3 buses with 50 people on each bus and 16 people riding in vans. Have a nice trip! Example Output 2: TRASPORTATION CENTER How many passengers are there? 49 There will be o buses with 50 people on each bus and 49 people riding in vans. Have a nice tripStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started