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 calculate how caffeine impacts the body.
⦁ A quit button is displayed on the form which exits the application when selected
⦁ A button should appear on the form that, when clicked, calculates the results of the how caffeine impacts the body and displays the results in a listbox as shown below.
⦁ Using and inputbox, the user is prompted with a question of the total number of hours the user will continue to drink coffee
⦁ Calculate the number of hours required until 65 mg. (one-half the original amount) of caffeine remains in the body
⦁ Calculate the amount of caffeine in the body 24 hours after the person drinks the coffee
⦁ Calculate how much coffee will be in the body at the end of the number of hours that the user enters. Assume a cup of coffee is drunk at the end of each hour.
⦁ Present the user with the total calculations for the three calculations
⦁ Make sure you use good software design principles, such as clearing the listbox after a user clicks a button but before new results are displayed.
My tutorial contains Visual Basic Project (using Visual Studio 2013).
If you have more questions, please contact me via email firstname.lastname@example.org
I will help you any time
Thank you !