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

How does orwell use satire to support his purpose in this passage? he uses reversal to reveal the complexities of charismatic leaders. he uses exaggeration to reveal the power of music. he uses parody to imitate communist propaganda techniques. he uses ridicule to make fun of traditional patriotic songs.

Answers

Answer:

he uses parody to imitate communist propaganda techniques.

Explanation:

i chose b, but it was incorrect. c is the correct answer

Answer:

C

Explanation:

IM HIM

The tree in jacob's yard casts a shadow that is 27 feet long. jacob is 5 feet tall and casts a shadow that is 4.5 feet long. the two triangles formed are similar because the angle to the sun is the same. what is the height of the tree?

Answers

By using the fact that the two triangles are similar, we will conclude that the height of the tree is 30ft

How tall is the tree?

If the two triangles are similar, then the quotient between the height and the shadow length must be the same for both of them.

Then if H is the height of the tree we can write:

H/27ft = 5ft/4.5ft

Now we can solve this for H, we will get:

H = (5ft/4.5ft)*27ft = 30ft

So we can conclude that the height of the tree is 30ft.

If you want to learn more about similar triangles, you can read:

https://brainly.com/question/14285697

#SPJ1

Answer:

30 feet, I just did it.

Explanation:

An engineer is designing a television screen. the screen is shaped like a rectangle with a length of 43.6 inches. the ratio of the length of the rectangle to its width must be 16:9. what is the approximate length of the diagonal of the screen?

Answers

By using the given ratio, we will see that the diagonal measures 50 inches.

How to get the diagonal of the screen?

First, we know that the ratio between length and width is 16:9, and the length is 43.6 inches, then the width will be:

W = (9/16)*43.6 inches = 24.5 in

Now, the diagonal will be equal to the hypotenuse of a right triangle with catheti of 43.6 in and 24.5 in, by using Pythagorean's theorem we get:

[tex]D = \sqrt{(43.6in)^2 + (24.5in)^2} = 50 in[/tex]

We conclude that the diagonal measures 50 inches.

If you want to learn more about ratios:

https://brainly.com/question/2328454

#SPJ1

What should lie do next? write the polynomial as a binomial squared. factor 3 out of the variable terms. isolate the variable x. add 8 to both sides of the equation.

Answers

The answer is 3 out of the variable terms.

What are Binomial squared?

The square of a binomial is the sum of the square of the first terms, then multiply the product of the two terms after that the square of the last term.

We have,

3x² + 18x - 8= 0

Move the constants to the right side.

3x² + 18x = 8

Take Factor 3 out of the variable terms.

3(x²+6x)=8

Add 27 to both sides of the equation.

3(x²+6x+9)=8+27

3(x²+6x+9)=35

Write the polynomial as a binomial squared.

3(x+3)²=35

Thus, the answer is 3 out of the variable terms.

Learn more about  Binomial squared here.

https://brainly.com/question/13722549

#SPJ1

The gdp of the united states in 2015 was about brainly

Answers

Answer:

GDP or Gross Domestic Product is the total value added through production of goods and services annually in a Country.

Gross Domestic Product

The given question has three statements related to GDP of US, and we need to complete them. Following are the complete sentences:

The GDP of the United States in 2015 was about : $18,000 billion

From 2000 to 2015, the GDP has mostly:  increased

The GDP will most likely: increase in the next five years.

Explanation:

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

In an effort to increase profits, southern bbq kitchen is attempting to appeal to a specific segment of the market by offering an all-you-can-eat buffet. these efforts, designed to identify specific groups that can be profitably served, represent an example of

Answers

Answer:

target marketing

Explanation:

they are targeting a certain group they believe would bring them the most business

Discrete mathematics and its applications 7th edition

Answers

Some applications of discrete mathematics are:

Cryptography and password security.AlgorithmsSoftware development

What is discrete mathematics?

Discrete mathematics can be defined as a branch of mathematics that is focused on the study of mathematical structures that can be counted, distinct and separable.

Generally, there are several field of science where discrete mathematics are applied and these include the following:

Computer science and programming languages.Software developmentCryptography and password security.Algorithms

Read more on discrete mathematics here: https://brainly.com/question/27247288

#SPJ1

In this excerpt from "dover beach" by matthew arnold, which two lines or sets of lines suggest that the speaker has undergone a loss of faith?

Answers

Answer:

Option #2: "But now I only hear its melancholy, long, withdrawing roar,"Option #5: "And we are here as on a darkling plain swept with confused alarms of struggle and flight,"

Prompt:

Select the correct text in the passage.

In this excerpt from "Dover Beach" by Matthew Arnold, which two lines or sets of lines suggest that the speaker has undergone a loss of faith?

The Sea of Faith

Was once, too, at the full, and round earth's shore

[Option #1] Lay like the folds of a bright girdle furled.

[Option #2] But now I only hear

Its melancholy, long, withdrawing roar,

Retreating, to the breath

[Option #3] Of the night-wind, down the vast edges drear

And [censored] shingles of the world.

Ah, love, let us be true

To one another! for the world, which seems

[Option #4] To lie before us like a land of dreams,

So various, so beautiful, so new,

Hath really neither joy, nor love, nor light,

Nor certitude, nor peace, nor help for pain;

[Option #5] And we are here as on a darkling plain

Swept with confused alarms of struggle and flight,

Where ignorant armies clash by night.

Commentary: I hope that this helps you. The Lord bless you and keep you, my friend. Shalom

Suppose the length of an oarfish is normally distributed with a mean of 6.5 m and a standard deviation of 1.5 m. which group describes 16% of the oarfish population? select each correct answer.

Answers

Answer:

Explanation:
oarfish that are shorter than 5 m

Let x be the random variable representing the length of an oarfish. Since it is normally distributed and the population mean and population standard deviation are known, we would apply the formula,

z = (x - µ)/σ

Where

x = sample mean

µ = population mean

σ = standard deviation

The given probability value is 16% = 0.16. From the normal distribution table, the z score corresponding to the probability value is - 0.99

This indicates that the sample mean is lower than the population mean

Therefore,

- 0.99 = (x - 6.5)/1.5

- 0.99 × 1.5 = x - 6.5

- 1.5 = x - 6.5

x = - 1.5 + 6.5

x = 5m

The correct answer is

oarfish that are shorter than 5 m

Mrs. trahan samples her class by selecting 5 girls and 7 boys. this type of sampling is called?

Answers

The type of sampling in the problem is called “stratified sampling”

Can I have Brainliest pls :)

Choose the correct possessive form for each phrase

Answers


cuales frases xd no veo ninguna foto

The diameter of a circle is 8 centimeters. a central angle of the circle intercepts an arc of 12 centimeters. what is the radian measure of the central angle?

Answers

Based on the calculations, the radian measure of the central angle is equal to 3 radians.

Given the following data:

Arc length = 12 centimeters.

Diameter = 8 centimeters.

Radius = diameter/2 = 8/2 = 4 centimeters.

How to calculate the length of the arc?

Mathematically, the length of an arc formed by a circle can be calculated by using this formula:

S = rθ

Where:

r is the radius of a circle.θ is the angle measured in radians.S is the length of an arc.

Substituting the given parameters into the formula, we have:

12 = 4θ

θ = 12/4

θ = 3 radians.

Read more on arc length here: https://brainly.com/question/20594692

#SPJ1

Maya is a child psychologist who believes that it is important for parents to set firm rules for their children. she feels that it is important for children to learn to obey the rules while they are young because it will teach them to self-regulate when they are adults. what criminologist from history would most likely agree with maya?

Answers

Historically, the criminologist who would most likely agree with Maya is Michael Gottfredson.

Who is Michael Gottfredson?

Michael Gottfredson is a professor of criminology born on the 15th of April, 1935 in Utah, United States of America. Also, he was famously known for his general theory of crime (1990) which states that criminal actions are typically undertaken by a criminal in pursuit of his or her self-interest.

Historically, we can infer and logically deduce that the criminologist who would most likely agree with Maya is Michael Gottfredson because she believes it's very important for parents to set firm rules for their children, so as to mitigate criminal self-interest in them.

Read more on Michael Gottfredson here: https://brainly.com/question/26410636

#SPJ1

Write a formal persuasive e-mail to a community leader to address a social concern. read more >>

Answers

A persuasive essay is an argumentative writing that can be used to prove that an idea is correct using a reliable source.

What can be a social concern of a community?

A social concern in a community can be those activities or materials that are lacking in a society that would have helped in the basic needs of its occupants.

Example of some basic needs that can cause social concern include:

Clean Water supply,

Electricity,

Health facilities and equipment.

Also note that you should address your complaints stating the reason why the lacking needs should be met.

The email should be written as follows,

Sir,

I, a member of your community, would love to use this opportunity to appreciate your wonderful works in our community. Your goodness has been a source of inspiration to us all.

In as much as we have received alot of basic needs from your leadership, however, lack of constant clean water supply has constantly posed a threat to our health.

It would mostly be appreciated if this need is urgently addressed by your administration.

Learn more about persuasive essay here:

https://brainly.com/question/25726765

#SPJ1

Which expression represents the volume of the prism? 10x3 cubic units 15x2 cubic units 20x3 cubic units 30x2 cubic units

Answers

The expression that represents the volume of the prism is 30x² cubic units.

Option D) is the correct answer.

What is a prism?

A prism is simply a solid geometric with two polygonal faces laying in parallel planes and with the other faces parallelograms.

Volume of a prism is expressed as;

Volume = base area × height

Also, the base area is expressed using the area of a trapezoid.

Hence,

Base area = (1/2) × h( a + b )

Now, let;

h = xa = xb = 2x

Base area will be;

Base area = (1/2) × h( a + b )

Base area = (1/2) × x( x + 2x )

Base area = (1/2) × 3x²

Base area = 3x²/2

Now volume will be;

Volume = base area × height

Volume = 3x²/2 × h

So, let h be 20 units

Volume = 3x²/2 × 20uniit

Volume = 60x²/2

Volume = 30x² cubic units

Therefore, the expression that represents the volume of the prism is 30x² cubic units.

Option D) is the correct answer.

Learn more about volume of Prism here: brainly.com/question/21308574

#SPJ1

Which scenario would most likely occur in a developing nation

Answers

Answer:

A new factory mostly employs laborers who have worked on farms their entire lives

Explanation:

Which of these options for saving money typically offers the most liquidity?

Answers

We need a bit more context lol

Answer:

Savings account.

Explanation:

Got it correct on the quiz.

Where would you go in france to see the story of william the conqueror? deauville carnac nantes bayeux

Answers

France is the country of Europe that has Paris as the capital city. The story of William the conqueror will be seen in Bayeux of France. Thus, option D is correct.

Who is William the conqueror?

William the conqueror was the Monarch of England who led the Norman domination of England. He invaded England to dethrone Harold and became the king.

The Bayeux tapestry of France portrays the art of the William and his story of conquering England. The art is made in the form of threaded woolen fibers embroidered on the fine cloth.

Therefore, option D. William will be seen at the Bayeux of France.

Learn more about William here:

https://brainly.com/question/10273156

#SPJ1

What is an effective hook for this assignment? albert einstein middle school has hosted a student versus faculty basketball game for eleven consecutive years. our faculty are basketball enthusiasts, and two of them played basketball at the college level. the gym will be packed to the rafters as students try to outwit their teachers and score a slam-dunk victory. our eighth graders will wear the einstein middle school team uniforms, while the teachers will create a uniform of their own.

Answers

The effective hook for this assignment is that he gym will be packed to the rafters as students try to outwit their teachers and score a slam-dunk victory.

What is Effective hook?

This is known to be the act of Leaving your reader with questions to answer. Note that  it is a technique to hook a reader to a passage.

Therefore, The effective hook for this assignment is that he gym will be packed to the rafters as students try to outwit their teachers and score a slam-dunk victory.

Learn more about assignment from

https://brainly.com/question/22537693

#SPJ1

Answer:

he gym will be packed to the rafters as students try to outwit their teachers and score a slam-dunk victory.

Explanation:

got 100

Due to improved layout and a fresh coat of paint on the walls, your restaurants weekly profit rose from $26,230 to $33,456. what is your percentage growth rate?

Answers

The percent growth in the earning of the restaurant owner is 27.54%.

What is percentage?

The percentage is given as the ratio of the two numbers as the fraction of 100. It is a unit less quantity.

The increase in profit of restaurant is:

Increase in profit = New earning – Old earning

Increase in earning = 33,456 – 26,230

Increase in earning = 7226

The increase in earnings is $ 7,226.

The percent growth in the earning with respect to the old earning is given as:

Percent growth = Increase in profit/ Old earning * 100

Percent growth = 7,226/33,456 * 100

Percent growth = 27.54%

The percent growth in the earning of the restaurant owner is 27.54%.

Learn more about percentage, here:

https://brainly.com/question/13450942

#SPJ1

Which best describes the purpose of this passage? to inform audiences about the production and types of tortillas to persuade audiences that producing and purchasing tortillas is easy to entertain audiences with a delightful and enjoyable description of tortillas to argue that tortillas are the top choice among traditional foods

Answers

Answer:d

Explanation:

just took test

To argue that tortillas are the top choice among traditional foods is best describes the purpose of this passage. Hence, option D is correct.

What are traditional foods?

Traditional foods are ones that have been eaten for many generations or that have been handed down through families. Foods and meals that have a long history in a national dish, regional cuisine, or local cuisine are considered traditional.

Basic and simple foods include things like meat and poultry, eggs, whole grains, fish, beans and lentils, fruits and vegetables, nuts and seeds, dairy products, and fats.

Traditional foods have a long history of promoting health and wellness since they are nutrient-rich. Actually, these foods have been consumed by humanity for a very long time. From vegetables and fruits to meat, poultry, and fish to dairy, eggs, legumes, nuts, and seeds, traditional foods are made with the utmost simplicity.

Thus, option D is correct.

For more information about traditional foods, click here:

https://brainly.com/question/15881861

#SPJ5

A rectangular pyramid measures three feet by four feet at the base and has a height of seven feet. find its volume.

Answers

The volume of the rectangular pyramid is 28 cubic feet.

How to find the volume of the pyramid?

The volume of a pyramid of base B and height H is given by:

[tex]V = (1/3)*B*H[/tex]

Here we know that the height is H = 7ft, and the base is a rectangle of 4ft by 3ft, so the area of the base is:

[tex]B = 4ft*3t = 12ft^2[/tex]

Then the volume of the pyramid is:

[tex]V = (1/3)*7ft*12ft^2 = 28ft^3[/tex]

If you want to learn more about volumes:

https://brainly.com/question/1972490

#SPJ1

Where you able to give words or phrases associated to grammatical signals

Answers

Answer:

1.cause and effect.

2.the Emphasis is the word and phrases is the in grammatical signals

Grammatical Signals are are lieterary devices that helps the author retain coherence in their work. It creates references between different part of the text using reptition, parallelisms, synonyms etc.

What are examples of Grammatical Signals?

in lieterature, the following phrase verbs act as common grammatical signals:

•Argue

•Assert

•Content

•Observe

•Suggest

•Deny etc.

Anyone needs help with any assignments

Answers

nah, im currently grinding a bunch rn and its like 2am

Answer:

what is 9/3-6+81=

and this is for math

How much heat is absorbed when 2.8 mol nh4no3 is dissolved in water? the heat of solution of nh4no3 is 25.4 kj/mol.

Answers

The heat absorbed when 2.8 mol NH₄NO₃  is dissolved in water is 71.96 kJ.

What is heat?

Heat is the transportation of energy to or from a thermodynamic system.

By the formula of heat

[tex]\rm (n) \times (delta\;Hrxn) = (qrxn)[/tex]

Where n = moles

Delta Hrxn is molar heat

q = heat

Putting the values in the equation

[tex]\rm qrxn = (2.8 mol) \times(25.7 kJ/mol) = 71.96 kJ[/tex]

Thus, the heat absorbed when 2.8 mol NH₄NO₃  is dissolved in water is 71.96 kJ.

Learn more about heat

https://brainly.com/question/1429452

#SPJ1

Convert the density of surface sea water to metric tons/cubic meter. use the internet to look for the proper conversion factor, if needed.

Answers

Answer and Explanation: The density of surface seawater is 1.0273gcm3 1.0273 g c m 3 .

Explanation:

Ton Register [ton Reg]Cubic Meter [m^3]0.01 ton reg0.0283168466 m^30.1 ton reg0.2831684659 m^31 ton reg2.8316846592 m^3

Which system of equations models the paths of the two skaters? y = 0.08x2-1.6x+13 and y = 0.08(x-10)2+5 y = 0.08x2-1.6x+13 and y = 1.6(x-10)2+5 y = 0.08x2-1.6x+13 and y = 0.8(x-10)2+5 y = 0.08x2-1.6x+13 and y = 5(x-10)2+5

Answers

The system of equations models the paths of the two skate is y = 0.08x²-1.6x+13 and y = 5(x-10)²+5. The correct option is b.

What is quadratic equation?

The equation with second degree of an unknown variable x, y, m, n, or p is called the quadratic equation.

David starts at (20, 13) and skates along a path that can be modeled by a quadratic equation with a vertex at (10, 5).

Vertex form of quadratic equation is

y =a (x -h)² +k  where (h,k) is the vertex.

We plug in (10,5) for h and k

y= a (x -10)² +5

Now plug in (20,13) in the above equation and find out 'a'

13 = a (x -10)² +5

13 = a(10)² +5

13 = 100a + 5

Solving for a, we get

a = 0.08

Substitute 0.08 for 'a' then the equation becomes

y= 0.08 (x -10)² +5

Thus, the correct option is b.

Learn more about quadratic equations.

https://brainly.com/question/2263981

#SPJ1

Answer:

A. y = 0.08x2-1.6x+13 and y = 0.08(x-10)2+5

Explanation:

What conclusion can be drawn about turner based on his reaction to mr. stonecrop? which detail from the text supports the conclusion?

Answers

Answer: 1.he is afraid of mr.stonecrop     2.he shuddered

Explanation:

Describe the energy conversions that occur as a microwave oven heats a cup of water. give at least two energy conversions. explain how these energy conversions affect the process of heating water particles in a cup using a microwave. enter your answer in the box provided.

Answers

The thermal energy increases the temperature of the oven which results in the heating of the water.

What is an energy conversion?

The conversion of energy means the potential of the energy is changed into the other form.

The energy conversions that occur as a microwave oven heats a cup of water.

First, the electrical energy is converted into microwave energy and this microwave energy increases the temperature of the microwave oven which means the microwave energy is converted into thermal energy.

The thermal energy increases the temperature of the oven which results in the heating of the water.

More about the energy conversion link is given below.

https://brainly.com/question/11234965

#SPJ1

Other Questions
Fill in the blanks to complete a summary of this part of the passage think your password from iready A zoo measured the wingspan, in millimeters, of 9 butterflies.55, 50, 54, 57, 50, 55, 53, 52, 55What is the median length of the wingspans?50 mm54 mm55 mm57 mm see picture 40 points graph of y = x - 2x + 5 using your graphing calculator. What are the x-interceptsa. (2,0) and (-7, 0)There are no x-interceptsb. (2,0) and (-2, 0)d. (9,0) and (-2, 0)C.Please select the best answer from tho ohoin Determine the general solution for sin(x-30) = cos 2 x What is the length of the missing leg? If necessary, round to the nearest tenth. Help with these geometry problems, please! 10th grade geometry The idea that cells are the basic structural and functional units of life is an example of a scientific what Which sentence from the Passage BESTdevelops a portrait of Jane as someone who isnsure whether Mrs. Fairfax is being totally honest?"Did you hear it?" I again inquired."Where are you going now, Mrs. Fairfax?" for shewas moving away."Do the servants sleep in these rooms?" I asked."So I think: you have no ghost, then?" 7/18+5/12-1/4 as a fraction in simplest form How many moles are in 1.24 * 10^25 of carbon? Which fraction and decimal are equivalent to 10^-3 The speaker begins the poem by stating "i come back to your youth, my nana" (line 1), but the primary transformation sought overall is help please What is this expression in simplest form? 4w/w-2 + 3w/w-3 is violence ever justified? argumentative essay what are two social movements in contemporary africa and their relevance and significances. abishek travelled 5km 28m by bus, 2km 265m by car and the rest 1km 30m on foot how much distance did he travel in all? 2. Under the direction of the President, the _____________ is largely responsiblefor U.S. foreign policy.A. Secretary of InteriorB. Secretary of StateC. Secretary of Foreign AffairsD. Central Intelligence Agency (CIA) How has The Tale of Genji had a lasting effect on Japanese culture?People have adopted the religious beliefs described in the text.Women could no longer write novels after the Heian period.Government officials created laws based on parts of the story.People still create art, literature, and drama based on the text. What is one major difference between North Korea and South Korea?A. North Korea has many trade partners, while South Korea has veryfew..B. South Korea is allied with China while North Korea is allied withJapan.C. South Korea is a democracy, while North Korea is a dictatorship.D.North Korea has a small military whilo South Korea is highly militarized