Question: 2 . 2 6 LAB: Caffeine levels A halfilife is the amount of time it takes for a substance of entify to fall to half
LAB: Caffeine levels
A halfilife is the amount of time it takes for a substance of entify to fall to half its original value Caffeine has a half life of about hours in humans Given cafferne amount in as input, output the caffeine level after and hours
Output each foating point vatue with two digits after the decimal point, wh ch can be acheved as follows: printe f yourvalue;
Ex: If the input is:
the output is
Arter hours:
After hours:
After hours:
Note A cup of coffee has about A soda has about An 'energy' drink a misnomet has between and
un
activir
: LAB Caffeine levels
main.c
Losd default template.
Finclude estdio. h
int mainvoid f
double caffeinelg; "double" supports floatingpoint like versus int for integers like
scanfsifcaffeine :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
