Menu

(Solved) : Received Programming Job Offer Local Start Company Guaranteed One Year Position 52 Weeks P Q44039307 . . .

You just received a programming job offer from a local start-upcompany. It is a guaranteed one-year position (52 weeks) but it hasa peculiar wage offer. They have been having a difficult time withemployees leaving before they complete the year, so they havedecided to pay less at the beginning and more at the end. Thecompany pays its employees every week. For the first pay-period,you will be paid one cent. For the second pay-period, you will bepaid 2 cents; 4 cents for week 3; 8 cents for week 4 after that –and the pay keeps doubling every week until the end of thecontract. At the end of the first pay period you will have beenpaid 1 cent; at the end of the second pay period, 3 cents (2 + 1cents) total has been paid; at the end of the next pay period, thetotal will be 7 cents (4 + 3 + 1) and so on.
Write a program that implements two recursive methods:
a) given the week number, the first recursive method will reportthe amount to be paid for that week (i.e. week 10 [end of 10th payperiod] pays $5.12); and
b) the second method will report the total amount paid to dategiven the week number (i.e. by the end of the sixteenth week [16thpay period], $655.35 has been paid in total).

programing language java

Expert Answer


Answer to You just received a programming job offer from a local start-up company. It is a guaranteed one-year position (52 weeks)…

OR