1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dalvyx [7]
3 years ago
8

You are making a program for a bus service. A bus can transport 50 passengers at once. Given the number of passengers waiting in

the bus station as input, you need to calculate and output how many empty seats the last bus wil have.
​
Engineering
1 answer:
g100num [7]3 years ago
7 0
#include
using namespace std;

int main()
{
int passengers;
cout << "";
cin >> passengers ;

int left_passengers= passengers % 50;

if(left_passengers == 0){

cout << "0 seats left";
}
else{
int left_seats= 50 - left_passengers;

cout << left_seats;
cout << "";
}

return 0;
}
You might be interested in
Water at atmospheric pressure boils on the surface of a large horizontal copper tube. The heat flux is 90% of the critical value
zloy xaker [14]

Answer:

119.1°c

Explanation:

Temperature can be referred to as a measure of the warmth or coldness of an object or substance with reference to some standard value. The temperature of two systems is the same when the systems are in thermal equilibrium.

To determine the tube surface temperature immediately after installation and after prolonged service.

We will apply to appropriate formula, but first lets define the terms in the question.

Please kindly check attachment.

6 0
4 years ago
Salvage ethnography is the effort to ensure that ethnography remains an important part of anthropology. recording of linguistic
fenix001 [56]

Answer:

                D

Explanation:

                            D

6 0
4 years ago
Convenience items like liquid egg are a lot more expensive?<br> True<br> Or False
Alchen [17]
It’s true because convenience stores are more expensive so that means overall the items would be more expensive.
3 0
3 years ago
Read 2 more answers
What type of drawing would civil engineers use if they needed to show an
Katyanochek1 [597]

Answer:

I would say an Oblique drawing.

Explanation:

An oblique drawing uses 45 degree angles.

5 0
4 years ago
Fixed objects that fix a location are called
Zielflug [23.3K]
Fix3d locationz i thinkz
4 0
3 years ago
Other questions:
  • A simple ideal Rankine cycle which uses water as the working fluid operates its condenser at 40°C and its boiler at 250°C. Calcu
    15·1 answer
  • An engineer is working with archeologists to create a realistic Roman village in a museum. The plan for a balance in a marketpla
    9·1 answer
  • Write an ALP to separate odd and even numbers from an array of N numbers; arrange odd
    13·1 answer
  • What are the three basic components of a limit switch​
    5·1 answer
  • A silicon carbide plate fractured in bending when a blunt load was applied to the plate center. The distance between the fractur
    11·1 answer
  • Once the ideas were narrowed down and divided into categories, the group was split into four smaller teams. What phase(s) of the
    11·1 answer
  • Is a water proof material used around tubs and
    8·2 answers
  • Who invented engineering first?​
    12·1 answer
  • PTAC and window-unit air conditioners often use rotary compressors, which are effective but susceptible to failure due to high h
    8·1 answer
  • Technician A says that the definition of torque is how far the crankshaft twists in degrees.Technician B says that torque can re
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!