Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Visual Basic Project 6 Topics: Arithmetic Operations, Variables, Parentheses-Order of Precedence, If Blocks, Nested If Blocks, Elself Clauses, Functions, Sub Procedures, Do Loops, and For...Next
Visual Basic Project 6
Topics: Arithmetic Operations, Variables, Parentheses-Order of Precedence, If Blocks, Nested If Blocks, Elself Clauses, Functions, Sub Procedures, Do Loops, and For...Next Loops Objective The objective of this assignment is to practice previous concepts reviewed mainly in Chapters 3 and 6, although Chapter 2 remains as a foundation Instructions 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 the following values. See figure below 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? Caffeine Calculate Values One cup: When will 65 mg. remain?5 hours Quantity 4.60 mg after 24 hours Hour?y cups: Quanty 96924 mg after 24 hours Topics: Arithmetic Operations, Variables, Parentheses-Order of Precedence, If Blocks, Nested If Blocks, Elself Clauses, Functions, Sub Procedures, Do Loops, and For...Next Loops Objective The objective of this assignment is to practice previous concepts reviewed mainly in Chapters 3 and 6, although Chapter 2 remains as a foundation Instructions 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 the following values. See figure below 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? Caffeine Calculate Values One cup: When will 65 mg. remain?5 hours Quantity 4.60 mg after 24 hours Hour?y cups: Quanty 96924 mg after 24 hoursStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started