Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm Just stumped on these problems. Write a Visual Basic Program Program 2: Weight Loss from Triathlon Participants in a triathlon complete a series of

I'm Just stumped on these problems.

Write a Visual Basic Program

Program 2: Weight Loss from Triathlon

Participants in a triathlon complete a series of three events. The first to finish all three is the winner. The events are:

  1. Running
  2. Swimming
  3. Biking

Suppose a person burns 475 calories per hour or running, 275 calories per hour swimming and 200 calories per hour of biking.

Design a form that allows inputs (text boxes) for the amount of time spent on each activity and then computes the total weight loss in pounds. (One pound of weight is lost for 3500 calories expended.) Add up the total calories burned by all three events then divide the sum by 3500 to get pounds lost.

You may use text boxes for program inputs, a button to execute the calculations and a list box, label or text box to show the results. Your form should also have Quit button as shown in class to terminate the form.

Program 3: Training Heart Rate

The American College of Sports Medicine recommends that you maintain a training heart rate (THR) during an aerobic workout. Your training heart rate is computed as:

(220 your age) times 0.7 plus resting heart rate (RHR) times 0.3

Design a form that allows inputs for age and RHR then computes and outputs the recommended THR. You may use text boxes for program inputs, a button to execute the calculations and a list box, label or text box to show the results. Your form should also have the Quit button to terminate the form.

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

ISBN: B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions