Question: i need the codes for this visual basic program. 2. (3 points) Write a program that produces a table of Training Heart Rates (THR) where

 i need the codes for this visual basic program. 2. (3

i need the codes for this visual basic program.

2. (3 points) Write a program that produces a table of Training Heart Rates (THR) where THR is computed as follows: THR-0.7 (220 age0.3* RHR RHR is the Resting Heart Rate (RHR) The table should have two columns showing "Resting Heart Rate" on the left and corresponding "Training Heart Rate" on the right. Prompt the user to enter their age with an Input Box. Test the user's input to make sure they enter an age between 10 and 90. If they enter an invalid value inform them with a Message Box. Calculate THR for RHR values between 60 and 80 (21 rows). Use the Do-While Do-Until and For-Next loops to solve this problem The form should have a list box for output and three buttons for each of the loops Sample Output Heart Rate Calculate your Training Heart Rate with: Do While Resting Heart Rate Training Heart Rate 60 Do Until 156.6 156.9 157.2 157.5 157.8 158.1 158.4 158.7 159 159.3 159.6 159.9 160.2 160.5 160.8 161.1 161.4 161.7 162 162.3 162.6 For Next 64 Problem_2 Enter your age: Must be between 10 and 90 OK 70 72 73 74 75 76 78 79 80

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!