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 will have.

Answers

Answer 1

The program to  a person will need to calculate and output the amount of empty seats the last bus will have is written below

What is the program about?

The program to use in the bus service calculation is:

#include <iostream>

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;

}

One can also write the code as:

#include <iostream>

using namespace std;

int main()

{

int pass, empty_seats;

cin>>pass;

pass=pass%50;

empty_seats=50-pass;

cout<<empty_seats;

return 0;

Learn more about program from

https://brainly.com/question/16397886

#SPJ1


Related Questions

What is the exact value of cosine (startfraction 11 pi over 12 endfraction)? negative startfraction startstartroot 2 + startroot 3 endroot endendroot over 2 endfraction negative startfraction startstartroot 2 minus startroot 3 endroot endendroot over 2 endfraction startfraction startstartroot 2 minus startroot 3 endroot endendroot over 2 endfraction startfraction startstartroot 2 + startroot 3 endroot endendroot over 2 endfraction

Answers

The exact value of the cosine of 11π / 12 will be given as negatice (1 + √3)/(2√2).

What is trigonometry?

The connection between the lengths and angles of a triangular shape is the subject of trigonometry.

The trigonometric expression is given below.

⇒ cos (11π/12)

We know that 11π/12 is equal to 165 degrees. Then we have

cos 165° = cos (45° + 120°)

We know that

cos (A + B) = cos A cos B - sin A sin B

Then we have

cos (45° + 120°) = cos 45° cos 120° - sin 45° sin 120°

cos (45° + 120°) = 1/√2 x (- 1/2) - 1/√2 x √3/2

cos (45° + 120°) = - (1 + √3)/(2√2)

More about the trigonometry link is given below.

https://brainly.com/question/22698523

#SPJ1

Answer:

A

Explanation:

It is widely known in kevin's social club that he is the most stubborn and inflexible member. kevin complains that all his friends and members in the club are too opinionated. if his attitude is attributed to his personality, what type of factors are impacting his behavior?

Answers

According to the context, if his attitude is attributed to his personality, projecting is a type of factor that impacts Kevin's behavior.

What is projecting?

It represents a defense mechanism that takes place when emotions go through conflicting stages and consists of assigning to others, ideas or reactions that cannot be accepted.

The one who projects, rejects some aspects of himself and attributes them to others.

Therefore, we can conclude that context, if his attitude is attributed to his personality, projecting is a type of factor that impacts Kevin's behavior.

Learn more about projecting here: https://brainly.com/question/14403924

#SPJ1

How does the use of verbal irony contribute to the reader's understanding of pip?

Answers

Answer:

b

Explanation:

cause it is bozo

Sectional violence has been taking place in iraq between two islamic factions, the shi'ites and _____. taliban jihad sunnis

Answers

Answer:

Sunnis is the answer on OW.

Listen to the audio, read the question, and choose the option with the correct answer to the question. based on the audio, what is not true about the animal in the audio? it is valued for its meat. it lives in jungles and forests. it looks similar to a pig. it migrates in spring.

Answers

Answer:

It migrates in spring

Explanation: I took the test and got it correct

Answer:

migrates in the spring

Explanation:

got it right on the test

Find the momentum of a 23.1 g bullet fired at 621 m/s

Answers

answer

p=14.345

explanation

we get that answer by using the formula p=mv

In some regions of africa, 25% of the adults became infected with hiv. please select the best answer from the choices provided t f

Answers

In some regions of Africa, 25% of the adults became infected with HIV this is true.

Which place has the very best percentage of HIV?

Affected Areas. Sub-Saharan Africa,10 with greater than two-thirds of everybody dwelling with HIV globally, is the toughest hit place withinside the world, accompanied by the aid of using Asia and the Pacific (see Table 1). The Caribbean in addition to Eastern Europe and Central Asia also are closely affected.

Africa is one of the toughest hit regions of the AIDS/HIV epidemic. It IS the toughest hit for toddler instances of HIV every year. I honestly desire that is right. I'm sorry if it is not however I did my exceptional to analyze at the problem and offer a first rate.

Read more about the HIV:

https://brainly.com/question/862955

#SPJ1

Which balanced equation represents a spontaneous radioactive decay

Answers

We need more info to solve lol

You want to purchase vegetable dip for a party. a grocery store sells seven different flavors of vegetable dip. you have enough money to purchase two flavors. how many combinations of two flavors of vegetable dip are possible?

Answers

Answer:

21

Explanation:

We need to use combinatiın formula:

C(7,2) -> Because there are seven flavors and we want two of them

C(7,2)= 21

In a certain pentagon, the interior angles are $a^\circ,$ $b^\circ,$ $c^\circ,$ $d^\circ,$ and $e^\circ,$ where $a,b,c,d,e$ are integers strictly less than $180$. ("strictly less than $180$" means they are "less than and not equal to" $180$.) if the median of the interior angles is $61^\circ$ and there is only one mode, then what are the degree measures of all five angles?

Answers

The degree measures of all of these angles are 60, 61, 61, 179, 179.

How to solve for the angle measures

Given that the 3rd largest angle that we have here is 61 degrees, the three angles are not going to be more than 183.

The sum of all the angles must be 540 degrees. The total of the largest of the numbers is less that 179 x 2 = 358 degrees.

The sum of the smallest three would be

540 - 358 = 182 degrees

Therefore the possible sets of these angles would be  60, 61, 61, 179, 179 degrees

Read more on angles here: https://brainly.com/question/25716982

#SPJ1

Answer:

61, 61, 61, 178, 179

Explanation:

The five interior angles of any pentagon add up to 3*180= 540

If the median is 61, then we know the three smallest angles are each no more than 61, and so they add up to at most 3*61= 183 degrees. This means the two largest angles must add up to at least 540-183= 357 degrees. Since 178+179=357, and since the angles are all integers strictly less than 180, the only possibilities for the two largest angles are 178, 179 or 179, 179. 

We consider these possibilities one at a time.

If the two largest angles are 178 and 179, then the three smallest angles add up to exactly 183, so they must each be exactly 61. Thus, one set of angles that satisfy the conditions in the problem is 61, 61, 61, 178, 179.

If the two largest angles are 179 and 179, then the three smallest angles add up to 182. The only way this can happen is for one of them to be 60 and the other two to be 61, but in this case, the set of angles would have more than one mode. So we can rule out this answer.

In conclusion, the five angles must be 61, 61, 61, 178, 179.

What is a connotation of the word company as it is used this passage?passionhard worktogethernesssadness

Answers

Answer:

Explanation:

Togetherness

I wandered lonely as a cloud

Answer: c togetherness

Explanation:

Choose all that apply. select all the strategies you can use to manage risks. have a warranty carry lots of cash have an emergency fund provide your personal information to others buy health insurance become informed

Answers

Financial risk is the chance that one can lose the money invested or to fraud. To manage risk one can buy health insurance, deposit an emergency fund, have a warranty, and should be informed.

What is managing risks?

Risk management is the identification and prioritization of the risks so that the impact of the financial or health loss can be avoided or minimized. In case of some serious disease health insurance provides financial protection.

The collection of emergency funds will help in sudden need, being informed will help to avoid fraud situations, and getting a warranty card ensures the protection of the purchased product.

Learn more about financial risks here:

https://brainly.com/question/3764768

#SPJ1

side from necessities, what one thing could you not go a day without?

Answers

Answer:

a daily thank you to the

god / nature / universe / supreme power

whatever name we call it,

for good physical health

& the freedom of choice

Explanation:

Because whitney felt she had only a grasp on the material presented in class, she decided to go to the teacher for additional help. dentists fill any within teeth with composite resin or porcelain; in layman's terms, these holes are called cavities. the teacher their study of plants with a research project on any plant-related topic the students chose. your feelings of toward margaret are getting in the way of what could be a great friendship.

Answers

The correct options from each drop-down menu are tenuous, cleavage, consummated, enmity respectively.

What is tenuous?

Tenuous comes from the Latin word tenuis, which means ​so weak or uncertain that it hardly exists.

Because Whitney left she had only a tenuous grasp on the material presented in class, she decided to go to the teacher for additional help.

Dentists fill any cleavage within teeth with composite resin or porcelain; in layman's terms, these holes are called cavities.

The teacher consummated their study of plants with a research project on any plant-related topic the students chose.

Your feelings of enmity toward Margaret are getting in the way of what could be a great friendship.

Thus, the above options give the correct meaning to the sentence.

Learn more about tenuous here,

https://brainly.com/question/1919014

#SPJ1

With the exception of the inmate who encourages eliezer and his father to lie about their ages, how do most of the inmates that eliezer observes act toward the new arrivals to birkenau? click here to read the excerpt from elie wiesel's night. they provide good advice and other kinds of assistance to the new arrivals when they can. they encourage the new arrivals to keep their spirits up. they ignore the new arrivals. they appear unsympathetic to the new arrivals.

Answers

The inmates see Eliezer observes act toward the new arrivals to birkenau as They appear unsympathetic to the new arrivals.

What is unsympathetic ?

Unsympathetic is a term that connote the act of not sharing in the feelings of people or identifying with them in terms of joy or sadness.

Based on the excerpt, The inmates see Eliezer observes act toward the new arrivals to birkenau as They appear unsympathetic to the new arrivals.

Learn more about viewpoint   from

https://brainly.com/question/9569492

#SPJ1

What best explains the label that the student should use on the y-axis? reaction rate, as the rate of forward and backward reactions become equal at equilibrium. concentration, as the concentration of reactants and products become equal at equilibrium. reaction rate, as the rate of forward reaction increases and the rate of backward reaction decreases with time. concentration, as the concentration of products decreases and that of reactants increases over time.

Answers

The answer is:

Concentrations,  because the amounts of reactants and products remain constant after equilibrium is reached.

An electroscope is a device that detects charge on objects that touch it or are brought near it. john rubs a piece of cotton fabric on a plastic rod and then touches the rod to the electroscope. what methods of charging does john use? john charges the rod through induction, then charges the electroscope through friction. john charges the rod through conduction, then charges the electroscope through induction. john charges the rod through friction, then charges the electroscope through induction. john charges the rod through friction, then charges the electroscope through conduction

Answers

The same charges are produced on the plastic rod and cotton fabric as a result they repel each other.

What is an electroscope device?

An electroscope is a scientific instrument that contains a small amount of an electrical charge on a person's body. The first electroscope with a pivoting needle is termed sensorium. The Coulomb electrostatic energy, which produces the movement of the test charge, is used by the electroscope to determine the charge.

They will oppose one another because when the plastic rod and the cotton fabric are rubbed together, they receive the same charges, and similar charges repel each other. The straws will reject each other as a consequence.

More about the electroscope device link is given below.

https://brainly.com/question/1398612

#SPJ1

Answer:

d. or 4

John charges the rod through friction, then charges the electroscope through conduction.

Explanation:

edge 2023

How do the children's interactions with the man in the well reveal the theme of the text

Answers

Answer:

How do the children's interactions with the man in the well reveal the theme of the text

The tenor voice part is usually notated in the _____ clef, but can also use the _____ clef. bass, tenor tenor, bass treble, bass bass, treble

Answers

The tenor voice part is usually notated in the bass clef, but can also use the treble clef.

What clef does tenor voice use?

There are different kinds of clef. They use double-treble clef mostly in choir setting or on a base clef.

Note that The tenor voice part is usually notated in the bass clef, but can also use the treble clef.

Learn more about treble clef from

https://brainly.com/question/9985366

#SPJ4

Choose all the responses that describe events leading to the korean war

Answers

Events leading to the Korean war are; Japan lost control of Korea following World War ll and China gained control of Korea following World War ll.

What were the events associated with the Korean war?

The Korean War was a war fought between North Korea and South Korea from the year 1950 to 1953.

This Korean war began on 25 June 1950 when North Korea invaded South Korea following clashes along the border and rebellions in South Korea.

The correct events that describe events that lead to the war are;

Japan lost control of Korea following World War ll.China gained control of Korea following World War ll.

Read more about Korean War at; https://brainly.com/question/15204004

#SJ1

Select the correct answer. smith is pursuing a dental assistant certification program. which professional organization is he a part of? a. american association of family and consumer services b. national association for health professionals c. national board for professional teaching standards d. government finance officers association e. health occupations students of america

Answers

Answer:
B. National Association for Health Professionals
Explanation:
Right on Brainly

Which phrase from the passage best supports the theme that humans possess the ability to be monstrous

Answers

A. spectacle of wrecked humanity Correct! The correct answer is: spectacle of wrecked humanity.

Which two events would most likely occur in the rising action of a story?

Answers

Answer: Internal or external conflict

Describe how another political institution can influence the advancement of the federal legislation in the scenario.

Answers

Explanation:

The government can build up a policy, if they need help in the society...The federal legislation in the scenario can be influenced by the political institutions

The nuclear equation shows the transmutation of a form of radon into polonium and an alpha particle

Answers

Answer:

Explanation:

The equation is balanced because the mass and charge are equal on both sides of the reaction equation.

In a nuclear reaction, one nucleus is transformed into another. In this case of the equation shown, the radon nucleus is being transformed into a polonium nucleus with the emission of an alpha particle.

The equation is balanced because a total mass of 219 is found on both sides of the reaction equation and a total charge of 86. Recall that an alpha particle is the same as a helium nucleus with a mass of four units and a charge of two units.

Fixed and floating are both types of ___________ that impact imports and exports. which term best completes this statement?

Answers

Answer: Exchange rates.

Explanation:  A country's importing and exporting activity can influence its exchange rate

10-3 skills practice operations with radical expressions

Answers

An example of 10-3 skills practice operations with radical expressions is simply the expression of  7[tex]\sqrt[]{7} + 2 \sqrt[]{7}[/tex]

What are radical expressions?

A radical expression is known to be any expression that has a a radical (√) symbol.

Note that the  expression of  7[tex]\sqrt[]{7} + 2 \sqrt[]{7}[/tex]

Therefore to get the simplified form , we have to add the the whole numbers

= 7 + 2

= 9

Therefore since the radical is the same, we let it be.

So therefore, the answer will be 9[tex]\sqrt[]{7}[/tex]

Learn more about radical expressions from

https://brainly.com/question/8952483

#SPJ2

Envision geometry 10-3 additional practice answers

Answers

Envision geometry 10-3 additional practice question is Find a pattern for the sequence in the image attached.

What is sequence pattern about?

Note that when you use a pattern to find the next two terms in the sequence, such as 384, 192, 96, 48...

One can try different approach.

384 / 2 = 192

You will keep dividing till the last number.

Therefore the  pattern for the sequence in the image attached is by dividing with 2.

Learn more about geometry from

https://brainly.com/question/24375372

#SPJ1

Why did nero persecute early christians? christians refused to trade with the romans. christians would not serve in the roman army. christianity was viewed as a threat to the empire. christianity preached against the laws of the emperor.

Answers

The option C is true, as the Roman leaders feared they were undermining authority.

What is persecution?

Persecution is the act of harassing or oppressing a person or a group of people, especially because of their identity.

Many Christians were died or killed when the Roman government began to persecute Christians under Nero, because the Christianity was declared illegal at that time. It was believed that the Christian religion was the counter religion to the traditional Roman religion.

In Rome, the great fire was caused because of the persecution of the Christians and because of influence of Christianity in traditional Roman religion. The Christians were persecuted in the next hundred years by the upcoming emperors.

Thus, Option C is true that the Christianity was viewed as a threat to the empire.

Learn more about persecution here,

https://brainly.com/question/507433

#SPJ1

Answer: Its C

Explanation:

I did the test

The speaker begins the poem by stating "i come back to your youth, my nana" (line 1), but the primary transformation sought overall is

Answers

The speaker which begins the poem has the primary transformation sought overall is recapturing of a sense of life's possibilities.

What is primary transformation?

The transformation in the poem means the transformation of the poet into the most authentic self. Primary transformation tells the meaning of the line of poem which the poet has written in the self authentic manner.

The speaker begins the poem by stating ,

"i come back to your youth, my nana"  

Here, the primary transformation sought overall is recapturing of a sense of life's possibilities.

The speaker which begins the poem has the primary transformation sought overall is recapturing of a sense of life's possibilities.

Learn more about the primary transformation here;

https://brainly.com/question/2689696

#SPJ1

Other Questions
Et $a_1, a_2, a_3,\dots$ be an arithmetic sequence. if $a_1 + a_3 + a_5 = -12$ and $a_1a_3a_5 = 80$, find all possible values of $a_{10}$. 7. It has been suggested that rotating cylinders about 20 km in length and 8 km in diameter be placed in space and used as colonies. The purpose of the rotation is to simulate gravity for the inhabitants. Explain this concept for producing an effective imitation of gravity. A certain species of bird is in danger of becoming extinct. There were 1500 birds in 2000 and they aredecreasing at an annual rate of 6.5%.a) If this trend continues, how many birds will be left by 2010?b) How many birds would there have been in 1990? 7) m - 12m +26=0 find the vertex Alma will make the honor roll if she has at least a 3.80 GPA and misses less than 5 days of school in a year. In which of the following cases will Alma make honor roll?1. Alma has a 3.84 GPA and misses 5 days of school2. Alma has a 3.78 GPA and misses 2 days of school3. Alma has a 3.68 GPA and misses 6 days of school4. Alma has a 3.81 GPA and misses 3 days of school You plan to move to San Antonio. You earn a salary of $42,000 here in McAllen. How much more must you earn in San Antonio if the cost of living is 15% higher? Question 7 of 10What is product positioning?A. The process of dividing up a total market into groups (segments)with similar needs and buying behaviorsO B. The set of plans for product, price, place, and promotion that themarketer will useO c. A definition of how the company intends for customers to view itsproduct relative to the competitionO D. The use of names and symbols to identify the company'sproducts Select the correct answer. Why did the author include the graph in the passage? A. to show why the students need to learn art history B. to help the reader understand why the class is popular C. to help the reader visualize the upward trend D. to show how many students passed the exam Which process has been most responsible for the emergence of a global culture? a.cultural diffusion b.americaization c.cultural imperialism d.branding Solve for the value of x - [tex]5(4x-4)=-60[/tex]Thanks! ^^ Roads in urban areas are generally A group of 31 friends gets together to play a sport. First, people must bedivided into teams. Each team has to have exactly 3 players, and no one canbe on more than one team. How many teams can they make? (It is possiblethat not everyone can be on a team.)87 Which statement best expresses the theme of "Wherefore Art Thou Romeo?A: A friends genuine help can actually cause one pain.B: One must get along with everyone in order to succeed.C: Sometimes, ones weakness can become ones strength.D: In order to succeed, one must have an enemy to focus on. What kind of intermolecular forces act between a chloromethane molecule and a chloroacetylene molecule Find the Volume of a triangular pyramid! ~ Answer this question to get 10 pts! What is the main purpose of sustainable agriculture? You have the following code:----------------------------------------------------------------------------------------------fruit_list = ["strawberries", "bananas", "apples", "grapes"]total_cost = 0for fruit in fruit_list: if fruit in ["apples","bananas"]: total_cost += 3 elif fruit == "cantaloupe": total_cost += 5 elif fruit in ["raspberries","strawberries","grapes"]: total_cost += 4-------------------------------------------------------------------------------------------------What will be the value of total_cost?A.13B.14C.15D.7 Blazing new trails and moving west was very ____.A. easyB. difficultC. uncommon Please help asapMultiply:3(4a)Will give 25 points!