*Step1: Read the requirement of each part; write the pseudo-code in a word document by listing the step by step what you suppose to do in main() and then save it with the name as Lab3_pseudoCode_yourLastName.  *Step2:      -start editor (for example eClipse) create the project with the following project name:                                 Part 1: SU2022_LAB3PART1_yourLastName    -add data type class:                         Part1: SU2022_Adult_yourLastName                                                                                     -add a driver class that contains main()                           Part 1: Class: SU2022_YourWeightManagement_yourLastName                           *Step3: follow step by step in the pseudo-code (or the flowchart) to write the java code in main() or driver class.   FROM THIS LAB3, WE USE OBJECT ORIENTED PROGRAMMING TECHNIQUE TO WRITE THE CODE. IN ONE PROJECT (ONE PART) WE HAVE TWO TYPES OF CLASSES: -DATATYPE CLASS (NEW FORMAT) -DRIVER CLASS (CLASS CONTAINS public static void main(String[] args))   CLICK ON “HOW TO DO LAB” AT LAB3 ON ECAMPUS TO LEARN: -HOW TO WRITE THE CODE OF A DATATYPE CLASS -INSIDE main() OF DRIVER CLASS:  *HOW TO CREATE AN OBJECT  *HOW TO USE THE OBJECT TO ACCESS THE METHODS OF DATATYPE CLASS   FOR ANY QUESTIONS, CONTACT VIA EMAIL LiemLe@dcccd.edu TO GET HELP.   LAB3 PART1 READ THE REQUIREMENT, CREATE UML FOR DATATYPE CLASS AND THE PSEUDO-CODE FOR main() BEFORE WRITING THE CODE   REQUIREMENT You must use Object Oriented Programming to provide this project.   The project has two classes: datatype class: SU2022_Adult_yourLastName (DOWNLOAD CLASS Adult.java FROM ECAMPUS THEN PASTE ITS CONTENT TO YOUR DATATYPE CLASS SU2022_Adult_yourLastNaame) driver class:   DATA TYPE CLASS From now and on, before writing the code of a data type class, you must create the UML of the data type   If you do not have any tool to create UML, you can create in Word one table with 1 column x 3 rows as below.   SU2022_Adult_White -name: String -height: int -expectedBMI: float +SU2022_Adult_White() +SU2022_Adult_White(name:String, height:int, respectedBMI:float) +setName(name:String) +setHeight(height:int) +setBMIExpected(BMI:float) +getName():String +getHeight():int +getBMIExpected():float +calculateWeight(): float +toString(): String     -the first row for class name in the middle -the second row for the list of data members (variables) with the minus sign (-) at the beginning of each one. Minus(-) means private access.               -variableName:dataType -the third row lists all constructors and methods with the plus sign (+) at the beginning of each one. Plus sign (+) means public access       Constructors:               +className()               +className(parameterName:type, …)       Methods:               +methodName():returnType               +methodName(parameterName:type, …): returnType   WRITE THE CODE OF DATATYPE CLASS: To write the code for Datatype class, you should base on the UML above   This is the first time you learn how to write the code of a datatype class. Therefore, to help you to understand how the datatype class looks like, download the class Adult from eCampus, then copy and paste the code of the class Adult to  your datatype class SU2022_Adult_yourLastName.   Compare the code with the UML to learn how to write the code of datatype class to apply for other datatype class in other labs. For any questions, contact your instructor at LiemLe@dcccd.edu to get help.                 DRIVER CLASS Before writing the code, you must create the pseudo-code for the main().   The driver class named SU2022_YourtWeightManagement_yourLastName includes the function public static main(String[] args)   In the function main(), after reading all the information of one adult including name (String), height(int) and expected BMI rate (float), you must create the object of the datatype class above SU2022_Adult_yourLastname by calling parameterized constructor of the datatype class, then use this object to access the method toString() to display the result of the weight.   The syntax to create the object of one datatype class as below:         ClassName objectName = new ClassName(information1, information2, etc. ); The syntax to use the object to access methods of datatype class as below:         objectName.methodName();   To learn more how to create an object with parameterized constructor and how to use object to access methods of datatype class, read topics in HOW TO DO LAB   After using the object to access the method toString() the output should be, for example:   --------------------------------------------- File: SU2022_YourWeightManagement_White.java Your Weight Management – McKINLEY WHITE Standard BMI:            18.5 – 24.9 --------------------------------------------- Name:                          Mary Lane Height:                               82 BMI Expected:                      19.65 --------------------------------------------- Weight:                           187.95

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

*Step1: Read the requirement of each part; write the pseudo-code in a word document by listing the step by step what you suppose to do in main() and then save it with the name as Lab3_pseudoCode_yourLastName.

 *Step2:  

   -start editor (for example eClipse) create the project with the following project name:        

                        Part 1: SU2022_LAB3PART1_yourLastName

   -add data type class:

                        Part1: SU2022_Adult_yourLastName

                                                                                

   -add a driver class that contains main()  

                        Part 1: Class: SU2022_YourWeightManagement_yourLastName

                       

 

*Step3: follow step by step in the pseudo-code (or the flowchart) to write the java code in main() or driver class.

 

FROM THIS LAB3, WE USE OBJECT ORIENTED PROGRAMMING TECHNIQUE TO WRITE THE CODE. IN ONE PROJECT (ONE PART) WE HAVE TWO TYPES OF CLASSES:

-DATATYPE CLASS (NEW FORMAT)

-DRIVER CLASS (CLASS CONTAINS public static void main(String[] args))

 

CLICK ON “HOW TO DO LAB” AT LAB3 ON ECAMPUS TO LEARN:

-HOW TO WRITE THE CODE OF A DATATYPE CLASS

-INSIDE main() OF DRIVER CLASS:

 *HOW TO CREATE AN OBJECT

 *HOW TO USE THE OBJECT TO ACCESS THE METHODS OF DATATYPE CLASS

 

FOR ANY QUESTIONS, CONTACT VIA EMAIL LiemLe@dcccd.edu TO GET HELP.

 

LAB3 PART1

READ THE REQUIREMENT, CREATE UML FOR DATATYPE CLASS AND THE PSEUDO-CODE FOR main() BEFORE WRITING THE CODE

 

REQUIREMENT

You must use Object Oriented Programming to provide this project.

 

The project has two classes:

  • datatype class: SU2022_Adult_yourLastName (DOWNLOAD CLASS Adult.java FROM ECAMPUS THEN PASTE ITS CONTENT TO YOUR DATATYPE CLASS SU2022_Adult_yourLastNaame)
  • driver class:

 

DATA TYPE CLASS

From now and on, before writing the code of a data type class, you must create the UML of the data type

 

If you do not have any tool to create UML, you can create in Word one table with 1 column x 3 rows as below.

 

SU2022_Adult_White

-name: String

-height: int

-expectedBMI: float

+SU2022_Adult_White()

+SU2022_Adult_White(name:String, height:int, respectedBMI:float)

+setName(name:String)

+setHeight(height:int)

+setBMIExpected(BMI:float)

+getName():String

+getHeight():int

+getBMIExpected():float

+calculateWeight(): float

+toString(): String

 

 

-the first row for class name in the middle

-the second row for the list of data members (variables) with the minus sign (-) at the beginning of each one. Minus(-) means private access.

              -variableName:dataType

-the third row lists all constructors and methods with the plus sign (+) at the beginning of each one. Plus sign (+) means public access

      Constructors:

              +className()

              +className(parameterName:type, …)

      Methods:

              +methodName():returnType

              +methodName(parameterName:type, …): returnType

 

WRITE THE CODE OF DATATYPE CLASS:

To write the code for Datatype class, you should base on the UML above

 

This is the first time you learn how to write the code of a datatype class. Therefore, to help you to understand how the datatype class looks like, download the class Adult from eCampus, then copy and paste the code of the class Adult to  your datatype class SU2022_Adult_yourLastName.

 

Compare the code with the UML to learn how to write the code of datatype class to apply for other datatype class in other labs.

For any questions, contact your instructor at LiemLe@dcccd.edu to get help.

               

DRIVER CLASS

Before writing the code, you must create the pseudo-code for the main().

 

The driver class named SU2022_YourtWeightManagement_yourLastName includes the function public static main(String[] args)

 

In the function main(), after reading all the information of one adult including name (String), height(int) and expected BMI rate (float), you must create the object of the datatype class above SU2022_Adult_yourLastname by calling parameterized constructor of the datatype class, then use this object to access the method toString() to display the result of the weight.

 

The syntax to create the object of one datatype class as below:

        ClassName objectName = new ClassName(information1, information2, etc. );

The syntax to use the object to access methods of datatype class as below:

        objectName.methodName();

 

To learn more how to create an object with parameterized constructor and how to use object to access methods of datatype class, read topics in HOW TO DO LAB

 

After using the object to access the method toString() the output should be, for example:

 

---------------------------------------------

File: SU2022_YourWeightManagement_White.java

Your Weight Management – McKINLEY WHITE

Standard BMI:            18.5 – 24.9

---------------------------------------------

Name:                          Mary Lane

Height:                               82

BMI Expected:                      19.65

---------------------------------------------

Weight:                           187.95

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
Header Files
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY