Uncategorized

How to Answer Gymsrus Needs Provide Questions (Complete Guide)

This question focuses on applying theory to practical scenarios.

What This Question Is About

This question relates to gymsrus needs provide and requires a structured academic response.

How to Approach This Question

Focus on explaining concepts clearly and supporting them with examples.

Key Explanation

This topic involves gymsrus needs provide. A strong answer should include explanation, application, and examples.

Original Question

GymsRUs needs to provide fitness information to their clients, including BMI and maximum heart rate. Your task is to write a console program to analyze the user’s input and provide the BMI index, BMI category, and maximum heart rate. Maximum heart rate is calculated as 220 minus the person’s age. Body mass index (BMI) is a measure of body fat based on a person’s height and weight. BMI can be used to indicate if you are overweight, obese, underweight, or normal. The formula to calculate BMI is The following BMI categories are based on this calculation. Category BMI Range Underweight less than 18.5 Normal from 18.5 and under 25 Overweight from 25 and under 30 Obese 30 or more Functional Requirements Design and code a class called HealthProfile to store information about clients and their fitness data. The attributes (name, age, weight, and height) are private instance variables. The class must include the following methods. method description calculateBMI Calculates and returns BMI calculateCategory Returns category based on BMI calculateMaxHR Calculates and returns maximum heart rate getName Returns private instance variable value setName Receives a value to assign to private instance variable getAge Returns private instance variable value setAge Receives a value to assign to private instance variable getWeight Returns private instance variable setWeight Receives a value to assign to private instance variable getHeight Returns private instance variable value in inches setHeight Receives two inputs (height in feet, inches) and converts and stores the total inches in private instance variable Use the separate test class, Main, to prompt for user input and display output using the HealthProfile class. Process multiple inputs using a loop. You can assume all user input is valid. Sample Output Enter name or X to quit: John Smith Enter age: 35 Enter weight: 200 Enter height – feet: 6 Enter height – inches: 0 Health Profile for John Smith BMI: 27.1 BMI Category: Overweight Max heart rate: 185 Enter name or X to quit: Ann Jones Enter age: 50 Enter weight: 120 Enter height – feet: 5 Enter height – inches: 2 Health Profile for Ann Jones BMI: 21.9 BMI Category: Normal Max heart rate: 170 Enter name or X to quit: X

 
******CLICK ORDER NOW BELOW AND OUR WRITERS WILL WRITE AN ANSWER TO THIS ASSIGNMENT OR ANY OTHER ASSIGNMENT, DISCUSSION, ESSAY, HOMEWORK OR QUESTION YOU MAY HAVE. OUR PAPERS ARE PLAGIARISM FREE*******."