
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Please help with the following IN C#
Use "$String Interpolation” to insert values in string literals to create formatted strings of your app output
Ouput should look like this

Transcribed Image Text: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)
Weight (in pounds)
vi Current Year.
2. Your class should have a constructor that receives this data as parameters to initialize the instance
variables.
V
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 heightInInches
ВМI —
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.

Transcribed Image Text: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
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Module main() // Local variables Constant Integer SIZE = 18 Declare Integer numbers[SIZE] = 5658845, 4520125, 7895122, 8777541, 8451277, 1302850, 8080152, 4562555, 5552012, 5050552, 7825877, 1250255, 1005231, 6545231, 3852085, 7576651, 7881200, 4581002 Declare Integer inputNumber, found = 0 // Get number Display “Enter number to validate: “ Input inputNumber // Validate number For index = 0 to SIZE – 1 If inputNumber == numbers[index] Then Set found = 1 Set index = SIZE End If End For // Show if valid If found == 1 Then Display “Number is valid.” Else Display “Number is not valid.” End If End Module Flowchart pleasearrow_forwardTrue or False In C#, there are three types of comments: line comments, block comments, and documentation comments.arrow_forwardIn Python, you can use ______ to create Strings. single quotes (') double quotes (") three single quotes (''') All of the above A and B only None of the abovearrow_forward
- C++ programmingarrow_forwardCassignm222 Assignment 2 features designing a program using pseudocode and then completing the program in Python using a list. M4Lab2 asks you to write a Drawing app in Python and Pygame using a list for the colors. Each lab asks you to write pseudocode that plans the program's logic before you write the program in Python and to turn in three things: 1) the pseudocode, 2) a screenshot of the output, and 3) the Python program. # Step 1: Define a colors list to describe 3 colors.# Hint, use their RGB number values Step 2: define a radius variable for your pen at 5, 10 or 15# Test them to see which radius you prefer and use it # Step 3: write the elif for pressing button 2, similar to button 1 # Step 4: write the statement for button 2's color # Step 5: write the else statement for button 3 # Step 6: choose a color from the list??arrow_forwardExplain how to add functionality to a Button on a Form in C#arrow_forward
- True or False _(1) The expression n/3*(8+4) evaluates to 16 if n=4 ___(2) x is greater than both y and z can be written as the statement x>y&&z ; in Java. ___(3) In Java a string is automatically an object.arrow_forwardCompatible with visual studios - c# Word SeparatorCreate an application that accepts as input a sentence in which all the words are runtogether but the first character of each word is uppercase. Convert the sentence to astring in which the words are separated by spaces and only the first word starts withan uppercase letter. For example, the string "StopAndSmellTheRoses." would beconverted to "Stop and smell the roses."arrow_forwardIn Python represents: Empty string Space Nothing Will give an error.arrow_forward
- language javaarrow_forwardHow is a String different from a basic data type (such an int, double, or boolean)?arrow_forwardC++. Please do not change the existing code. The instructions are in the image that is provided. Please zoom in or you can download the png file. Thank you! Time.cpp #include "Time.h" //Default Constructor //Constructor with parameters int Time::getHour() const { return hour; }int Time::getMinute() const { return minute; }int Time::getSecond() const { return second; }void Time::setHour(int h) { hour = h; }void Time::setMinute(int m) { minute = m; }void Time::setSecond(int s) { second = s; } int Time::timeToSeconds() const{ return (getSecond() + getMinute() * 60 + getHour() * 3600);} const Time Time::secondsToTime(int s) const{ int resultS = s % 60; s /= 60; int resultM = s % 60; s /= 60; int resultH = s % 24; return Time(resultH, resultM, resultS);} //toString // + // - // < // > // == ------ Time.h #ifndef TIME#define TIME #include <string> using namespace std; class Time{private: int hour; int minute; int second; int timeToSeconds() const;…arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education