Question
You are working to create an application for helping people reach their ideal body weight. Create a data definition class to model one person. The
You are working to create an application for helping people reach their ideal body weight. Create a data definition class to model one person. The person will have a name, current weight, and ideal weight. When creating a new person, the ideal weight must be specified and set. Instance methods include: accessors for each instance variable, non-validating mutators for each non-numeric instance variable, validating mutators for each numeric instance variable, and a special purpose method called isInShape. The isInShape method does not accept any parameters and returns a value to indicate if the person is in-shape or not. An in-shape person is someone whose current weight is at or under his/her ideal weight. Note: A person's ideal weight cannot be more than 200.0 lbs or less than 120.0 lbs. Remember you are modeling ONE person only! You do not need to create an implementation class. Please use JOptionPane to do the question
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started