- Home /
- Python /
- PRG211 Algorithms And Logic For Computer Programming /
- PRG/211 Week 1 Lab 3.4: Caffeine levels
Details
PRG/211 Week 1 Lab 3.4.1: Caffeine levels
A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-life of about 6 hours in humans. Given caffeine amount (in mg) as input, output the caffeine level after 6, 12, and 18 hours.
Ex: If the input is 100, the output is:
After 6 hours: 50.0 mg
After 12 hours: 25.0 mg
After 18 hours: 12.5 mg
Note: A cup of coffee has about 100 mg. A soda has about 40 mg. An "energy" drink (a misnomer) has between 100 mg and 200 mg.
Additional Information
Special Price | $3.00 |
---|
Product Tags
Use spaces to separate tags. Use single quotes (') for phrases.
Check items to add to the cart or select all
-
PRG/211 Week 1 Lab 3.1 Formatted Output Hello World!
Regular Price: $5.00
Special Price $3.00
-
PRG/211 Week 1 Lab 3.2: Formatted output: No parking sign
Regular Price: $5.00
Special Price $3.00
-
PRG/211 Week 1 Lab 3.3: House real estate summary
Regular Price: $8.00
Special Price $3.00
-
PRG/211 Week 1 Lab 3.8: Using math functions
Regular Price: $8.00
Special Price $3.00
You have no items in your shopping cart.