anonymous
  • anonymous
C HELP PLEASE ='[
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
this is my code so far:
1 Attachment
anonymous
  • anonymous
my output should look something like this DAY PAY TOTAL 1 0.01 0.01 2 0.02 0.03 3 0.04 0.07 4 0.08 0.15 5 0.16 0.31 6 0.32 0.63 7 0.64 1.27 8 1.28 2.55 9 2.56 5.11 10 5.12 10.23 i need help with the total please =/ if pay is pay*=2 oh would i type something like that for total_pay
anonymous
  • anonymous
There are a few differences from my suggested solution and your example. This includes using a zero based index and the use of the += operator for your total pay variable.
1 Attachment

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
for clarity you might have wanted to use several loops but if this is necessary then use total_pay +=pay instead of total_pay*=2
anonymous
  • anonymous
i spotted another little problem with the code, what if the date is larger than 31 days? the program will simply exit, should it at least say why or preferably loop back for a better answer perhaps? (of course this is not to initiate feature creep)
anonymous
  • anonymous
thank you guys so much =] very helpful

Looking for something else?

Not the answer you are looking for? Search for more explanations.