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 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Aturning operation is performed with following conditions: rake angle of 12°, a feed of 0.35 mm/rev, and a depth of cut of 1.1 mm. the work piece is aluminum alloy 6061 with t6 heat treatment (a16061-t6). the resultant chip thickness was measured to be 1.0 mm. estimate the cutting force, fc. use shear stress of 207 mpa and coefficient of friction on the tool face of 0.6.
Answers: 1
question
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
question
Engineering, 04.07.2019 18:20
Air flows over a heated plate àt a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point.the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
You know the right answer?
Suppose you save $100 (double monthlyDeposit) each month into a savings account with an annual inter...
Questions
question
Mathematics, 30.03.2021 05:10
question
Business, 30.03.2021 05:10
question
Social Studies, 30.03.2021 05:10
question
Mathematics, 30.03.2021 05:10