Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Target Heart Rate Calculator (Windows Application) c# inment #1_ForC#2_WinApp.docx - Protected View - Saved Search Mailings Review View Help iruses. Unless you need to edit,

Target Heart Rate Calculator (Windows Application) c#

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

inment #1_ForC#2_WinApp.docx - Protected View - Saved Search Mailings Review View Help iruses. Unless you need to edit, it's safer to stay in Protected View Enable Editing Programming Assignment #1 - 40 points Target Heart Rate Calculator (Windows Application) Program specifications (business requirements): Target Heart Rate Calculator In order for exercise to be beneficial to the cardiovascular system, the heart rate (number of heart beats per minute) must exceed a value called the training heart rate, THR. Create a program that requests a person's age and the type of activity they want to perform. Based on this information, display the user's age, activity and the THR beats per minute for both the low and high ranges. Remember to think about the programming process when developing your solution: INPUT PROCESS/LOGIC/COMPUTATION/ALGORITHM OUTPUT Program specification constraints (requirements) The application must perform some basic UI validation to prevent potential unexpected errors when doing the calculations. The use of .Net Exception handling will not be used in this assignment. The user must enter their age. The user must select one of the valid activities (moderate or vigorous) to calculate their THR. Display THR button calculates the THR value and displays the required information in the list (see attachment) Clear button clears the age text box, resets the activity combo box to the default value of "- Select an Activity ---" and clear the listview details. Exit button closes the application Design constraints: The moderate range for physical activity is from 50% (low end) to 70% (high end) of your tarostadsou boot cata Ibaste camisutal ssignment #1_ForC#2_WinApp.docx - Protected View - Saved Search es Mailings Review View Help in viruses. Unless you need to edit, it's safer to stay in Protected View . Enable Editing The moderate range for physical activity is from 50% (low end) to 70% (high end) of your targeted max heart rate (beats per minute). The vigorous range for physical activity is from 70% (low end) to 85% (high end) of your targeted max heart rate (beats per minutes). Display a message box including an appropriate message of your choice if one of the following conditions have not been met. An age value of 1 to 100 are the acceptable range values o Age field must not be blank or null o Activity combo box selection has to be either moderate or vigorous Revised 1/24/2019 Use the static Math class round method to round both the low end and high end bpm calculations to the next higher value using the 1" default overloaded method You are using text boxes, labels, combo list box and a list view control for the UI Logic/Algorithm: A person's THR can be calculated from their age and resting heart rate (pulse rate when first awakening) as follows (Formula): a) Calculate the maximum heart rate as 220-age. b) Formula for calculating the beats per minute (bpm) for the Moderate activity low end range as: max heart rate multiplied by the low end percentage (Change the %to a decimal value. i.e. 50% becomes .50) c) Formula for calculating the beats per minute (bpm) for the Moderate activity high end as: max heart rate multiplied by the high end percentage (Change the % to a decimal value. i.e 70% becomes .70) d) Formula for calculating the beats per minute (bpm) for the vigorous activity low end range as: max heart rate multiplied by the low end percentage (Change the % to a decimal value. i.e. 700 bocomoc 701 signment #1_ForC#2_WinApp.docx - Protected View - Saved Search s Mailings Review View Help viruses. Unless you need to edit, it's safer to stay in Protected View Enable Editing A person's THR can be calculated from their age and resting heart rate (pulse rate when first awakening) as follows (Formula): a) Calculate the maximum heart rate as 220-age. b) Formula for calculating the beats per minute (bpm) for the Moderate activity low end range as: max heart rate multiplied by the low end percentage (Change the % to a decimal value. i.e. 50% becomes .50) c) Formula for calculating the beats per minute (bpm) for the Moderate activity high end as: max heart rate multiplied by the high end percentage (Change the % to a decimal value. i.e 70% becomes .70) d) Formula for calculating the beats per minute (bpm) for the vigorous activity low end range as: max heart rate multiplied by the low end percentage (Change the % to a decimal value. i.e. 70% becomes .70) Formula for calculating the beats per minute (bpm) for the Vigorous activity high end as: max heart rate multiplied by the high end percentage (Change the % to a decimal value. i.e 85% becomes.85) Test Data Age 20 45 | 65 Activity Moderate Vigorous Moderate Sample UI Layout . Personal Target Heart Rate (THR) Calculator - O X Enter your age 1 Activity Type - Select an Activity- v Display THR Clear Exit Age Max Heart Rate Activity Type Target Heart Rate Zone ssignment #1_ForC#2_WinApp.docx - Protected View - Saved Search es Mailings Review View Help n viruses. Unless you need to edit, it's safer to stay in Protected View Enable Editing - O X . Personal Target Heart Rate (THR) Calculator Enter your age: D . Activity Type --Select an Activity v Display THR Clear Exit Age Max Heart Rate Activity Type Target Heart Rate Zone Revised 1/24/2019 The Max Heart Rate column in the list should display the following data format: xx (bpm) The Target Heart Rate Zone column in the list should display the following data format: xxx to xxx (beats per minute) Always add documentation in the beginning of your program using the //Enter your comments. See example below. //Your name: Enter your name //Description: Briefly describe what the program does //Date Created: Enter the date when the program was created

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_2

Step: 3

blur-text-image_3

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

=+d. Is there another print vehicle you would suggest?

Answered: 1 week ago

Question

How can you defend against SQL injection attacks?

Answered: 1 week ago