# Write a function that prompts the user to enter the speed of a vehicle. If speed is less than 20, display too slow; if speed

3 answers

###### Question:

Write a function that prompts the user to enter the speed of a vehicle. If speed is less than 20, display too slow; if speed is greater than 80, display too fast; otherwise, display just right

## Answers

The code of the given problem is given below :

#include<iostream>

using namespace std;

void print( float speed ){

if(speed < 20 )

{

cout<<"too slow\n";

}

else if(speed > 80 )

{

cout<<"too fast\n";

}

else{

cout<<"right\n";

}

}

int main()

{

print( 18.6 );

print( 45 );

print( 100 );

return 0;

}

the answer is d. splog

i think the answer is b.

#### Similar Solved Works

1 answer

### The following information was available for the year ended December 31, 2019:.Earnings before interest

The following information was available for the year ended December 31, 2019:. Earnings before interest and taxes (operating income) = $108,000 net incocme= $ 51,000 interest expense = $26,000 total assets at year-end = $ 360,000 income tax expense = $31,000 total liabilities = $184,0000 Required:...

6 answers

### The graph shows the supply and demand curves for a certain product, which has a current selling price of $500. The laws of supply and demand

The graph shows the supply and demand curves for a certain product, which has a current selling price of $500. The laws of supply and demand most support which conclusion about the product? A. The current selling price for the product is too high. B. The current selling price for the product is to...

3 answers

### How did the policies of the superpowers influence conflicts around the world?

How did the policies of the superpowers influence conflicts around the world?...

4 answers

### En esta parte se escriben sus detalles personales. a. el membrete b. el destinatario c. el texto d. la fecha

En esta parte se escriben sus detalles personales. a. el membrete b. el destinatario c. el texto d. la fecha...

4 answers

### Consider the following binomial probability distribution. p(x)equals=(Start 2 By 1 Matrix 1st Row

Consider the following binomial probability distribution. p(x)equals=(Start 2 By 1 Matrix 1st Row 1st Column 10 2nd Row 1st Column x EndMatrix )10 x (0.8 )Superscript x Baseline (0.2 )Superscript 10 minus x(0.8)x(0.2)10−x (xequals=0, 1, 2, ..., 1010) a. How many trials (n) are...

6 answers

### Which is the most reasonable estimate for the depth of a 6 millimeter 6 centimeters or 6 explain

Which is the most reasonable estimate for the depth of a 6 millimeter 6 centimeters or 6 explain...

6 answers

### The saxena family plans to install a light to illuminate part of their rectangular yard. nikki and dylan

The saxena family plans to install a light to illuminate part of their rectangular yard. nikki and dylan each proposed a different sp to place the light. the proposed placements and the lit area that each es are shown below. how do nikki's and dylan's proposals compare? check all that apply. ...

3 answers

### 7th grade math help me please

7th grade math help me please [tex]7th grade math help me pleaseeee[/tex]...

8 answers

### Which relation graphed below is a function?Please help

Which relation graphed below is a function? Please help [tex]Which relation graphed below is a function? Please help[/tex]...

3 answers

### 15 POINTSRead the passage.Water Efficiency Strategiescourtesy of United States Environmental Protection AgencyDrinking water

15 POINTS Read the passage. Water Efficiency Strategies courtesy of United States Environmental Protection Agency Drinking water systems can implement water efficiency measures and still deliver an unchanged or improved level of service to consumers while reducing overhead costs. Improving water e...

4 answers

### A biology student stated that 'plants only require photosynthesis for growth'. explain why this statement is incorrect.

a biology student stated that "plants only require photosynthesis for growth". explain why this statement is incorrect....

3 answers

### A rectangular garden has perimeter 66 ft and area 216 ft?. Find the dimen-sions of the garden.

A rectangular garden has perimeter 66 ft and area 216 ft?. Find the dimen- sions of the garden....

4 answers

### (is on the line y= 3/7x+5. what is the other half of the coordinate?

(is on the line y= 3/7x+5. what is the other half of the coordinate?...

4 answers

### Bir kasa üzümün 15/4ü satılırsa kasada üzümün kaçta kaçı kalır

Bir kasa üzümün 15/4ü satılırsa kasada üzümün kaçta kaçı kalır...

5 answers

### I need help with this how do you spell 'water'

I need help with this how do you spell "water"...

3 answers

### According to the graph above, which size of seeds have the most likely become the most common in the environment?All sized of seeds are

According to the graph above, which size of seeds have the most likely become the most common in the environment? All sized of seeds are in equal abundance Large seeds Medium seeds Small seeds [tex]According to the graph above, which size of seeds have the most likely become the most comm...

4 answers

### Select ALL points that are solutions to the inequalityrepresented by the graph(Select all that apply(2,5)(0,5)10(

Select ALL points that are solutions to the inequality represented by the graph (Select all that apply (2,5) (0,5) 10 ( 3. 10) (0:0) 10 [tex]Select ALL points that are solutions to the inequality represented by the graph (Select all that[/tex]...

10 answers

### 5. Choose the correct response

5. Choose the correct response [tex]5. Choose the correct response[/tex]...

4 answers

### Abuela invents the zero. What lesson do you think constancia has learned from this incident with her grandmother?

Abuela invents the zero. What lesson do you think constancia has learned from this incident with her grandmother?...