subject
Engineering, 19.02.2020 02:57 hamie5124

Suppose you save $100 (double monthlyDeposit) each month into a savings account with an annual interest rate of 5%. Thus the monthly interest rate (double monthlyIntRate) is 0.05/12 = 0.00417 After the first month, the value of the account (double monthlyValue initialzed to 0) becomes (100 + 0)*(1+.000417) which equals 100.417 After the second month, the value in the account becomes (100 + 100.417) *(1+0.00417) which equals 201.252 or (value at the end of first month) *(1+ monthlyIntRate) After the third month the account now contains (100 + 201.252) *(1+0.00417) which equals 302.507 or (value at the end of second month) *(1+ monthlyIntRate) and so on Write a program that prompts the user to enter a monthly savings amount (could contain cents) and prints the value of the account at the end of each month up to and including the 6th month. DO NOT compute the value of the account for each month on paper and then plug it into the program. The program follows the following pattern: monthlyValue = (monthlyDeposit + monthlyValue) * (1 + monthlyIntRate); 2. Using the same code as above, change the monthly deposit to $200.50 and interest rate to 3.75% and run the above program Remember to print the header in the format described in Lab2. Comment your code meaningfully.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
question
Engineering, 04.07.2019 18:10
Hydraulic fluid with a sg. of 0.78 is flowing through a 1.5 in. i.d. pipe at 58 gal/min. the fluid has an absolute viscosity of 11.8 x 105 lbf-sec/ft2. is the flow laminar, turbulent or within the critical range? give both a numerical reynolds number and a term answer.
Answers: 3
question
Engineering, 04.07.2019 19:10
Tom is having a problem with his washing machine. he notices that the machine vibrates violently at a frequency of 1500 rpm due to an unknown rotating unbalance. the machine is mounted on 4 springs each having a stiffness of 10 kn/m. tom wishes to add an undamped vibration absorber attached by a spring under the machine the machine working frequency ranges between 800 rpm to 2000 rpm and its total mass while loaded is assumed to be 80 kg a) what should be the mass of the absorber added to the machine so that the natural frequency falls outside the working range? b) after a first trial of an absorber using a mass of 35 kg, the amplitude of the oscillation was found to be 10 cm. what is the value of the rotating unbalance? c) using me-3.5 kg.m, find the optimal absorber (by minimizing its mass). what would be the amplitude of the oscillation of the absorber?
Answers: 3
You know the right answer?
Suppose you save $100 (double monthlyDeposit) each month into a savings account with an annual inter...
Questions
question
Computers and Technology, 04.07.2019 07:00
question
Mathematics, 04.07.2019 07:00
Questions on the website: 13722363