Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Python Programming A company agrees to pay one of its employees in grains of rice instead of money.

Python Programming

A company agrees to pay one of its employees in grains of rice instead of money. The employee receives one grain on the first day, two grains on the second day, four grains on the third day, eight grains on the fourth day, and so forth. In other words, each succeeding day the employee receives twice as many grains of rice as the previous day. The employee works for the company for 18 days. Write a program to determine the number of grains of rice that the employee receives on each day he or she works. Also, accumulate the total rice earnings. There is no input for this program. Output should consist of (at least) 18 lines, each with the day number, the number of grains received that day, and the accumulated number of grains received to date.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question