PROBLEM 1 You are tasked to write a program that outputs the following amplifier system specifications:
Voltage amplification: 25
Input voltage: 50 mV
Power output: 2.5 W
Bandwidth: 15 kHz
Type: Class A
a. For this programming problem, how many lines of output are required?
b. How many inputs does this problem have?
c. Determine a formula for converting input items into output items.
PROBLEM 2
You've been asked to write a C/C++ program to determine how far a car has traveled after 10 seconds, assuming the car is initially traveling at 65 mph and the driver applies the brakes to decelerate at a uniform rate of 0.0015 miles/sec2. Use the following formula:
distance = st - ½ ????2,
where s is the initial speed of the car (in miles/sec), d is the deceleration (in miles/sec2), and t is the elapsed time in seconds.
a. For this programming problem, how many outputs are required?
b. How many inputs does this problem have?
c. Determine a formula for converting input items into output items.
d. Test the formula for conversion, using the data given in the problem.
e. Write an assignment statement in C++ for the formula in part c above.
PROBLEM 3
Write a set of detailed, step-by-step instructions in English to find the largest number in a group of three integer numbers.
PROBLEM 4
The volume of a sphere can be calculated using the formula: ?? = (4/3)πr3, where V is the volume of the sphere, π = 3.1416, and r is the radius (in cm) of the sphere.
a. Determine the units of V by calculating the units resulting from the right side of the formula. Check that your answer corresponds to the SI unit of volume, namely, cubic meters.
b. Determine the volume of a sphere having a radius of 50 cm.
c. If you were required to write a C/C++ program to determine the volume of a sphere, what inputs, outputs, and algorithm would you use?
PROGRAMMING PROBLEM 1
a. Using the cout object and four steps of development and design, write a C++ program that displays your name on one line, your street address on a second line, and your city, state (two upper case characters), and five-digit zip code on a third line.
b. Run the program you have written on Microsoft Visual Studio. Make sure to include the program listing and the program output in your solution.