Computers and Technology, 21.07.2020 17:01 dazesreplayy2451
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 24 hours. Use a string formatting expression with conversion specifiers to output the caffeine amount as floating-point numbers.
Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('{:.2f}'.format(your_value))
Ex: If the input is:
100
the output is:
After 6 hours: 50.00 mg
After 12 hours: 25.00 mg
After 24 hours: 6.25 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.
Answers: 3
Computers and Technology, 22.06.2019 11:30
What do character formats do for your document's message? a.set the tone b.provide organization c.provide clarity d.set how texts align with documents
Answers: 2
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
Computers and Technology, 24.06.2019 00:50
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
A half-life is the amount of time it takes for a substance or entity to fall to half its original va...
Mathematics, 19.10.2020 22:01
History, 19.10.2020 22:01
Business, 19.10.2020 22:01
Advanced Placement (AP), 19.10.2020 22:01
Mathematics, 19.10.2020 22:01
Geography, 19.10.2020 22:01
English, 19.10.2020 22:01
Mathematics, 19.10.2020 22:01
Physics, 19.10.2020 22:01
Chemistry, 19.10.2020 22:01
English, 19.10.2020 22:01