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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started