subject
Engineering, 27.02.2020 21:38 mochoa4

Good news However, as in many things in life, there is a catch. Your prize will be paid to you in monthly installments.

The payments will start in the amount of 1 dollar. Obviously that is not too much of a price at the beginning. But here are two rules we can apply every month to increase the installments.

Rule A - Double the installment amount.
Rule B - Triple the installment amount.

You are free to apply Rule A every month, but Rule B can be applied only every other month.

To maximize payments.

1st month's payment 1 dollar.
2nd month's payment 2 dollars. (doubled the amount)
3rd month's payment 6 dollars. (triple it every other months)
4th month's payment 12 dollars. (double the amount)
5th month's payment 36 dollars. (triple it every other month)
6th month's payment 72 dollars. (double the amount)
7th month's payment 216 dollars. (triple it every other month)

and so on ...

Write a program that will compute the monthly payment amounts you will get over a given number of months.

Your program should take the number of months from user and create a loop to compute the payments for each month and output on screen.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
Ajournal bearing has a journal diameter of 3.250 in with a unilateral tolerance of 20.003 in. the bushing bore has a diameter of 3.256 in and a unilateral tolerance of 0.004 in. the bushing is 2.8 in long and supports a 700-lbf load. the journal speed is 900 rev/min. find the minimum oil film thickness and the maximum film pressure for both sae 20 and sae 20w-30 lubricants, for the tightest assembly if the operating film temperature is 160°f. a computer code is appropriate for solving this problem.
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:20
Modern high speed trains do not have perpendicular expansion gaps where rails are joined end-to-end any more they are mostly welded together but what might happen if there was a spell of particularly hot weather that causes inspection of the tracks?
Answers: 1
You know the right answer?
Good news However, as in many things in life, there is a catch. Your prize will be paid to you in mo...
Questions
question
Mathematics, 09.12.2021 01:30
question
Biology, 09.12.2021 01:30
question
Mathematics, 09.12.2021 01:30
Questions on the website: 13722363