1. Design a HealthProfile class for a person. The class attributes should include the person's i First Name ii Last Name iii Birth Year iv Height (in inches) v Weight (in pounds) vi Current Year. 2. Your class should have a constructor that receives this data as parameters to initialize the instance variables. 3. For each attribute provide a property with set and get accessors. 4. The class also should include methods that calculate and return the a property that calculates and returns the person's age (in years), a property that calculates and returns the person's maximum heart rate and vi properties that calculate and return the person's minimum and maximum target heart rates. a method that calculate and return the body mass index (BMI) using the following formula: iv V i weightInPounds× 703 heightInInches x beight|nInches BMI = 5. The class HeartRates should have a public method DisplayHealthRecord, that display patient's data in tabular form as shown below, using C# 6 mechanism “String Interpolation" to insert values in string literals to create formatted strings. PATIENT HEALTH RECORD Patient Name LastName, FirstName Patient Birth Year 1971 Patient Age Patient Height Patient Weight 50 70 200 Maximum Heart Rate 170 Targe Heart Rate Range 85-144 BMI Numeric Value 28.69 BMI Text Value Overweight Following table may be used to compute the "BMI Text Value" based on BMI computed numeric value. BMI TEXT VALUES Less than 18.5 Underweight Between 18.5 and 24.9 Normal Between 25 and 29.9 Overweight 30 or greater Obese Write a driver class that prompts for the person's data input, instantiates an object of class HealtProfile and displays the patient's information from that object by calling the DisplayHealthRecord, method.
1. Design a HealthProfile class for a person. The class attributes should include the person's i First Name ii Last Name iii Birth Year iv Height (in inches) v Weight (in pounds) vi Current Year. 2. Your class should have a constructor that receives this data as parameters to initialize the instance variables. 3. For each attribute provide a property with set and get accessors. 4. The class also should include methods that calculate and return the a property that calculates and returns the person's age (in years), a property that calculates and returns the person's maximum heart rate and vi properties that calculate and return the person's minimum and maximum target heart rates. a method that calculate and return the body mass index (BMI) using the following formula: iv V i weightInPounds× 703 heightInInches x beight|nInches BMI = 5. The class HeartRates should have a public method DisplayHealthRecord, that display patient's data in tabular form as shown below, using C# 6 mechanism “String Interpolation" to insert values in string literals to create formatted strings. PATIENT HEALTH RECORD Patient Name LastName, FirstName Patient Birth Year 1971 Patient Age Patient Height Patient Weight 50 70 200 Maximum Heart Rate 170 Targe Heart Rate Range 85-144 BMI Numeric Value 28.69 BMI Text Value Overweight Following table may be used to compute the "BMI Text Value" based on BMI computed numeric value. BMI TEXT VALUES Less than 18.5 Underweight Between 18.5 and 24.9 Normal Between 25 and 29.9 Overweight 30 or greater Obese Write a driver class that prompts for the person's data input, instantiates an object of class HealtProfile and displays the patient's information from that object by calling the DisplayHealthRecord, method.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Please help wih the following .Net C# application
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY