subject

In coral programming: 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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
question
Computers and Technology, 23.06.2019 23:30
What can you prevent issues related to downloading content form the internet
Answers: 1
question
Computers and Technology, 24.06.2019 18:10
Most information security incidents will occur because of select one: a. users who do not follow secure computing practices and procedures b. increases in hacker skills and capabilities c. poorly designed network protection software d. increasing sophistication of computer viruses and worms
Answers: 1
You know the right answer?
In coral programming: a half-life is the amount of time it takes for a substance or entity to fall...
Questions
question
Mathematics, 19.02.2021 21:30
question
Mathematics, 19.02.2021 21:30
question
Business, 19.02.2021 21:30
question
English, 19.02.2021 21:30
Questions on the website: 13722367