Question: 5. Write a C++ program to determine how far a car has traveled after 10 seconds, assuming the car is initially traveling at 60 miles

 5. Write a C++ program to determine how far a car

5. Write a C++ program to determine how far a car has traveled after 10 seconds, assuming the car is initially traveling at 60 miles per hour and the driver applies the brakes to uniformly decelerate at a rate of 12 miles/sect. Use the fact that distance s (1/2)dt2, where s is the initial speed of the car, d is the deceleration, and t is the elapsed time. a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items. d. Test the algorithm written for part c using the data given in the problem. 6. Consider the following programming problem: In 1627, Manhattan Island was sold to the Dutch settlers for approximately $24. If the proceeds of that sale had been deposited in a Dutch bank paying 5% interest, compounded annually, what would the principal balance be at the end of 2002? A display is reqired as fol- lows: Balance as of December 31,2002 is: xxoox, where xoxoox is the amount calculated by your program. a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items. d. Test the algorithm written for part c using the data given in the problem statement. 7. Write a program that calculates and displays the output voltages of two electri- cal circuits and the sum of the two voltages. The output voltage for the first cir- cuit is given by the equation (150) V/0.38f and the output voltage for the sec- ond circuit is given by the equation 230V 562 +(0.98f) where V is the input voltage to the circuit and f is the frequency in Hertz. a. For this programming problem how many outputs are required b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items. d. Test the algorithm written for part c using the following sample data: The first circuit is operated with an input voltage of 1.2 volts at a frequency of 144 Hertz and the second circuit is operated with an input voltage of 2.3 volts at 100 Hertz. 8. Consider the following programming problem: The formula for the standard normal deviate, z, used in statistical applications is where refers to a mean value and to a standard deviation. Using this formula, write a program that calculates and displays the value of the standard normal deviate when X = 85.3, = 80, and = 4. a. For this programming problem how many b. How many inputs does this problem have? outputs are required

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!