ADVANCED ENGNEERING PROGRAMING HOMEWORK READ THE FILE AND LET ME KNOW IF YOU COULD DO IT

profilem.wucoud
hw_set_1_fa_16.pdf

ENGR3200 HW Set #1 Mondal

Fall 2016 GHSCSE - FDU 1

ENGR3200 HW Set #1 PROBLEM 1 [15 points] 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 [25 points] 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:

𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑 = 𝑑𝑑 − � 1 2 �𝑑𝑑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 [10 points] 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 [15 points]

The volume of a sphere can be calculated using the formula: 𝑉 = (4 3 )𝜋𝑟3, 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.

ENGR3200 HW Set #1 Mondal

Fall 2016 GHSCSE - FDU 2

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 [35 points]

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.