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, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 03.07.2019 14:10
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
question
Engineering, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
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
You know the right answer?
Suppose you save $100 (double monthlyDeposit) each month into a savings account with an annual inter...
Questions
question
Spanish, 18.01.2021 19:10
Questions on the website: 13722360