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
miss Akunina [59]
2 years ago
11

b. Write a complete program for the following situation related to setting the speed of a car to preset values before starting a

journey: • If speed is less than lower_ set_ speed, display the message "accelerate" to the screen, increase the car's speed to the lower set speed, and output the new speed to the screen. • If speed is greater than upper_set_speed, print the message "apply brake" to the screen, decrease the car's speed to the upper set speed, and output the new speed to the screen. • Give all necessary documentation in the comments, including the file name. • Allow the program to exit at the end. • Output the speed to the screen. • How many different initial speeds will you need to test this code?
Mathematics
1 answer:
Oksi-84 [34.3K]2 years ago
4 0
Answer:4

Explanation:
You might be interested in
Help plz imagine attached
polet [3.4K]

Answer:

Angle of elevation = 21.167°

Step-by-step explanation:

Given:

Horizontal distance cover by rover = 180 m

Vertical distance cover by rover = 65 m

Find:

Angle of elevation

Computation:

Using trigonometry function;

Sin θ = Perpendicular / Hypotenuse

⇒ Sin θ = Vertical distance cover by rover / Horizontal distance cover by rover

⇒ Sin θ = 65 / 180

⇒ Sin θ = 0.3611

⇒ Sin⁻¹ (0.3611) = 21.167°

Angle of elevation = 21.167°

5 0
3 years ago
A flagpole casts a shadow that is 12 ft long. A 6-ft tall man casts a shadow
Vikentia [17]

Answer:

9ft

Step-by-step explanation:

Since the triangles are similar, the corresponding sides are proportional.

Let the height of the flag pole be x feet.

\frac{x}{6}  =  \frac{12}{8}

We multiply both sides by 6 to get:

x =  \frac{12}{8}  \times 6

We reduce the fraction to get:

x =  \frac{3}{2}  \times 6

We now simplify

x = 3 \times 3

x = 9ft

4 0
2 years ago
At the market, Meyer buys a
ZanzabumX [31]

Answer:

Pounds of bananas purchased is  3.

Step-by-step explanation:

Purchased price of bananas is  6.04  −  4.99  =  $ 1.05

Pounds of bananas purchased is  1.05  0.35  =  3  pounds

Hope this helps!!!

6 0
3 years ago
Mr. Cruz bought 9 3/5 kg of meat. He used 2 3/5 kg for adobo, 4 3/5 kg for menudo and the rest for afritada. How many kilograms
Ray Of Light [21]

Answer:

3 3/5

Step-by-step explanation:

5 0
2 years ago
Sandra normally takes 2 hours to drive from her house to her grandparents' house driving her usual speed. However, on one partic
Rudiy27

Answer:

Her usual driving speed is 38 miles per hour.

Step-by-step explanation:

We know that:

s = \frac{d}{t}

In which s is the speed, in miles per hour, d is the distance, in miles, and t is the time, in hours.

We have that:

At speed s, she takes two hours to drive. So

s = \frac{d}{2}

d = 2s

However, on one particular trip, after 40% of the drive, she had to reduce her speed by 30 miles per hour, driving at this slower speed for the rest of the trip. This particular trip took her 228 minutes.

228 minutes is 3.8 hours. So

0.4s + 0.6(s - 30) = \frac{d}{3.8}

So

3.8(0.4s + 0.6s - 18) = d

3.8s - 68.4 = 2s

1.8s = 68.4

s = 38

Her usual driving speed is 38 miles per hour.

3 0
3 years ago
Other questions:
  • A pet has 18 hamsters.They sold 10 and put the remaining hamsters into 8 cages.Hownany hamsters are in each cage
    6·1 answer
  • A theorem states that if f is continuous on an interval I that contains one local extremum at c and if a local minimum occurs at
    11·1 answer
  • Samantha has a shelf that is 95 over 4 inches wide. How many books can Samantha arrange on the shelf if each book is 5 over 4 in
    14·2 answers
  • What is the factored form of these expressions?
    8·2 answers
  • What would the total bill be of painting the costs $44.80 with the tax rate of 6%?
    10·2 answers
  • The average age three people running for election is 42. A fourth person joins the race and the average drops to 40. What is the
    15·1 answer
  • Srry here are the answers choices for the question i was asking early
    8·1 answer
  • Caleb started with 50 bacteria for his science experiment and they doubled in one day. Jenna also started with 50 bacteria for h
    14·1 answer
  • "Five divded by the sum of a and b" written as a fraction would be
    10·1 answer
  • How to solve 3x - y = -1 and -3x - y= 5
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!