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?
1 answer:
You might be interested in
There it is i found it :)
30 I think because 6 12 18 24 30 and 10 20 30
Since you have an angle and at least one side you can use either sine, cosine or tan. For this question, you would use sine like above. Hope this helps!
3