Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 hours

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions