Question: Write in C++ please! Thanks! Write a program to prompt the user and input the number of cups of coffee consumed. Given that each cup

Write in C++ please! Thanks!  Write in C++ please! Thanks! Write a program to prompt the

Write a program to prompt the user and input the number of cups of coffee consumed. Given that each cup contains 130 mg of caffeine, compute and output the amount of caffeine consumed. Being that 13% of the caffeine is eliminated each hour (in other words, 87% is retained) calculate and output the amount of caffeine in the body at the end of each hour for 24 hours. Sample Output: Enter number of cups: 2 Caffeine consumed (mg): 260 After Hour mg caffeine 226.2 196.8 2 149.0 129.6 112.7 98.1 85.3 74.2 64.6 56.2 48.9 42.5 37.0 32.2 28.0 4 5 7 8 9 1e 12 13 14 15 16

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!