Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE USE OBJECT ORIENTED PROGRAMMING IN C# USING MICROSOFT VISUAL. PLEASE USE C#(C SHARP). thanks it's really appreciated. Create a class called HeartRates. The class

PLEASE USE OBJECT ORIENTED PROGRAMMING IN C# USING MICROSOFT VISUAL.

PLEASE USE C#(C SHARP).

thanks it's really appreciated.

image text in transcribed

image text in transcribed

Create a class called HeartRates. The class attributes should include the person's i first name ii last name ii year of birth iv current year 1. 2. Your class should have a constructor that receives this data as parameters 3. For each attribute provide a property with set and get accessors 4. The class also should include i a property that calculates and returns the person's age (in years). ii a property that calculates and returns the person's maximum heart rate and ii properties that calculate and return the person's minimum and maximum target heart rates Write an app that prompts for the person's information, instantiates an object of class HeartRates and displays the information from that object-including the person's i first name, last name ii year of birth ii person's age in (years) iv maximum heart rate v target-heart-rate range [Note: Please use C# 6 mechanismString Interpolation to insert values in string literals to create formatted strings of your app output] Average Maximum Heart Rate, 100% Age Target HR Zone 50-85% 200 bpm 100-170 beats per minute (bpm) 95-162 bpm 93-157 bpm 90-153 bpm 88-149 bpm 85-145 bpm 83-140 bpm 80-136 bpm 78-132 bpm 75-128 bpm 20 years 30 years 35 years 40 years 45 years 50 years 55 years 60 years 65 years 70 years 190 bpm 185 bpm 180 bpm 175 bpm 170 bpm 65 bpm 160 bpm 155 bpm 150 bpmm

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 Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions

Question

Prepare and properly label figures and tables for written reports.

Answered: 1 week ago