Placeholder

CIS355A Week 1 Lab Developing an OOP Console Application

$9.99

Description

OBJECTIVES
Create a class in java with appropriate methods.
Process user input with the class using the scanner for keyboard input and console output.
PROBLEM: Health Profile Console Program
GymsRUs has a need to provide fitness/health information to their clients, including BMI and maximum heart rate. Your task is to write a console program to do this.
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.
[table]
Category, BMI Range
Underweight, less than 18.5
Normal, between 18.5 and 24.9
Overweight, between 25 and 29.9
Obese, 30 or more
[/table]
Max heart rate is calculated as 200 minus a person’s age.
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
Create a SEPARATE TEST CLASS, Lab1Main, 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
Your age: 35
Your weight: 200
Your height – feet: 6
Your 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
Your age: 50
Your weight: 120
Your height – feet: 5
Your 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
CODE STYLE REQUIREMENTS
Include meaningful comments throughout your code.
Use meaningful names for variables.
Code must be properly indented.
Include a comment header at beginning of each file, example below.
/****************************************************
Program Name: ProgramName.java
Programmer’s Name: Student Name
Program Description: Describe here what this program will do
***********************************************************/
DELIVERABLES
Submit as a SINGLE zip folder
All java files
Lab report
Follow assignment specification regarding class/method names.
Note that your java filename must match class name (DO NOT rename).
SCREENSHOTS
SOLUTION
PAYMENT
The solution includes a zip file.
Attachments [Move over files to preview content of those files]
CIS355A_Week_1_Lab.zip (178.12 KB)
CIS355A-Lab1-Netbean-ScreenShot.png
CIS355A-Lab1-Report-ScreenShot.png
CIS355A_Lab1_Report.docx
Java code
HealthProfile.java
Lab1Main.java
Netbeans Project
CIS355AWeek1Lab
build
classes
.netbeans_automatic_build
.netbeans_update_resources
HealthProfile.class
Lab1Main.class
build.xml
manifest.mf
nbproject
build-impl.xml
genfiles.properties
private
private.properties
project.properties
project.xml
src
HealthProfile.java
Lab1Main.java
test
Preview HealthProfile.java
xxxxxx xxxxxxxxxxxxx() {
}
xxxxxx xxxxxxxxxxxxx(xxxxxx _xxxx, xxx _xxx, xxxxxx x_xxxxxx, xxxxxx x_xxxxxx,xxxxxx _xxxxxx) {
setName(_name); setAge(_age); setWeight(_weight); setHeight(f_height, i_height); }
public void setName(String _name) { this.name = _name; }
public String getName() { return name;
}
xxxxxx xxxx xxxxxx(xxx _xxx) {
xxxx.xxx = _xxx;
}
Preview Lab1Main.java
xxx xxxxx = 0;
xxxxx (!xxxx) {
xxxxxx.xxx.xxxxx(“xxxxx xxxx xx x xx xxxx: “);
xx (xxxxx > 0) {
xxxxx.xxxxxxxx();
} count++; String name = input.nextLine(); // read name if (name.trim().toUpperCase().equals(“X”)) { stop = true; break; } System.out.print(“Your age: “); int age = input.nextInt(); System.out.print(“Your weight: “); double weight = input.nextDouble(); // read weight System.out.print(“Your height – feet: “);
xxxxxx xxxxxxxxxx = xxxxx.xxxxxxxxxx();
xxxxxx.xxx.xxxxx(“xxxx xxxxxx – xxxxxx: “);
xxxxxx xxxxxxxxxxxx = xxxxx.xxxxxxxxxx();
xxxxxxxxxxxxx xxxxxxx = xxx xxxxxxxxxxxxx(xxxx, xxx, xxxxxxxxxx, xxxxxxxxxxxx, xxxxxx); // xxxxxx xxxxxxxxxxxxx xxxxxx
xxxxxx.xxx.xxxxxxx(“xxxxxx xxxxxxx xxx ” + xxxx);
xxxxxx.xxx.xxxxxxx(“xxx: ” + xxxxxxxx.xxxxxx(xxxxxxx.xxxxxx())); // xxxxxxxxx xxx
Preview HealthProfile.java
xxxxxx xxxxxxxxxxxxx() {
}
xxxxxx xxxxxxxxxxxxx(xxxxxx _xxxx, xxx _xxx, xxxxxx x_xxxxxx, xxxxxx x_xxxxxx,xxxxxx _xxxxxx) {
setName(_name); setAge(_age); setWeight(_weight); setHeight(f_height, i_height); }
public void setName(String _name) { this.name = _name; }
public String getName() { return name;
}
xxxxxx xxxx xxxxxx(xxx _xxx) {
xxxx.xxx = _xxx;
}
Preview Lab1Main.java
xxx xxxxx = 0;
xxxxx (!xxxx) {
xxxxxx.xxx.xxxxx(“xxxxx xxxx xx x xx xxxx: “);
xx (xxxxx > 0) {
xxxxx.xxxxxxxx();
} count++; String name = input.nextLine(); // read name if (name.trim().toUpperCase().equals(“X”)) { stop = true; break; } System.out.print(“Your age: “); int age = input.nextInt(); System.out.print(“Your weight: “); double weight = input.nextDouble(); // read weight System.out.print(“Your height – feet: “);
xxxxxx xxxxxxxxxx = xxxxx.xxxxxxxxxx();
xxxxxx.xxx.xxxxx(“xxxx xxxxxx – xxxxxx: “);
xxxxxx xxxxxxxxxxxx = xxxxx.xxxxxxxxxx();
xxxxxxxxxxxxx xxxxxxx = xxx xxxxxxxxxxxxx(xxxx, xxx, xxxxxxxxxx, xxxxxxxxxxxx, xxxxxx); // xxxxxx xxxxxxxxxxxxx xxxxxx
xxxxxx.xxx.xxxxxxx(“xxxxxx xxxxxxx xxx ” + xxxx);
xxxxxx.xxx.xxxxxxx(“xxx: ” + xxxxxxxx.xxxxxx(xxxxxxx.xxxxxx())); // xxxxxxxxx xxx
Price: $19
Buy Now
Checkout
Added to cart
Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.
CIS355A Week 1 Lab Health Profile Console Program – $19.00
CIS355A Week 2 Lab Health Profile App – $19.00
CIS355A Week 3 Lab BurgersRUs Point of Sale system – $19.00
CIS355A Week 4 Lab Stocks4U Portfolio Management System – $19.00
CIS355A Week 5 Lab File Processing Stocks4U Portfolio Management System – $19.00
CIS355A Week 6 Lab Student Management System – $19.00
CIS355A Week 4 Course Project Flooring Application Analysis and Design – $19.00
CIS355A Week 7 Course Project Flooring Application User Manual and Application Code – $25.00
Add to Cart
Checkout
Added to cart
You May Also Like:
CIS355A Entire Course
CIS355A Week 2 Lab Developing a GUI Application
CIS355A Week 3 Lab BurgersRUs Point of Sale system
CIS355A Week 4 Lab Stocks4U Portfolio Management System
CIS355A Week 4 Course Project Flooring Application Analysis and Design
CIS355A Week 5 Lab File Processing Stocks4U Portfolio Management System
CIS355A Week 6 Lab Student Management System
CIS355A Week 7 Course Project Flooring Application User Manual and Application Code

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.