Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions