Question: (Python) After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume an 8-oz cup of brewed coffee contains 130

(Python) After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume an 8-oz cup of brewed coffee contains 130 mg of caffeine and the caffeine is absorbed immediately into the body. Write a program that allows the user to enter the number of cups of coffee consumed. Write an indefinite loop (while) that calculates the caffeine amounts in the body until the number drops to less than 65 mg

The output of the program should look as follows:

https://docs.google.com/document/d/1RWXVWL6HAunbeSV_AffQyj1OieiyAV5jd4eUj1GiKfU/edit?usp=sharing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!