Answered step by step
Verified Expert Solution
Link Copied!

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++

image text in transcribed

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 trip

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

Computer Aided Database Design

Authors: Antonio Albano, Valeria De Antonellis, A. Di Leva

1st Edition

0444877355, 978-0444877352

More Books

Students also viewed these Databases questions

Question

1. What might have led to the misinformation?

Answered: 1 week ago