Need to create a program in Visual Basic for the problem below. Needs to utilize
ID: 3548829 • Letter: N
Question
Need to create a program in Visual Basic for the problem below. Needs to utilize/be similar the form in the picture of output.
After caffeine is absorbed into the body, 13% is eliminated from the body each hour. Assume a person drinks an 8-oz cup of brewed coffee containing 130 mg of caffeine, and the caffeine is absorbed immediately into the body. Write a program to compute the followiing values.
(a) The number of hours required until 65 mg (one-half the original amount) remain in the body.
(b) The amount of caffeine in the body 24 hours after the person drinks the coffee.
(c) Suppose the person drinks a cup of coffee at 7 a.m. and then drinks a cup of coffee at the end of each hour until 7 a.m. the next day. How much caffeine will be in the body at the end of the 24 hours?
I've come up with following equations; I believe they are correct.
(a & b) (X) x (0.87) = Caffeine after one hour.
(c) [(X) x (0.87)] + (X) = Caffeine after one hour and drinking another cup [Needs to be computed 24 times]
Explanation / Answer
Need to create a program in Visual Basic for the problem below. Needs to utilize
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.