Question: Lab Objectives Create multiple instances of a class. Use if statements. Student object should consist of 4 attributes (firstName, lastName, age, and GPA). Additional Reading
Lab Objectives
Create multiple instances of a class. Use if statements. Student object should consist of 4 attributes (firstName, lastName, age, and GPA).
Additional Reading
See the Textbook, Chapter 3 Decisions.
Java Example
You might use one of these examples to start your lab:
Lab01_starter.zip
Lesson01_constructors_example.zip
Deliverables
Please refer to Submissions and Standards for Lab Assignments
app.java and student.java as requested below.
On NetBeans
File
Export to Zip
You will submit the zip file
Contents
Create the student class with 4 attributes
First name
Last name
Age
GPA
Create 3 student objects in app
Find and display the student with the highest GPA
Find and display the student with the lowest GPA
There are many ways of doing this lab. Go for the solution closer to your Java skills. The most basic way is a series of if statements.
By "find" above, I mean using the objects' data and doing calculations instead of you looking at the data and displaying one as having the highest GPA and another as having the lowest.
app 1-Creates 3 students student First name Last name Age GPA 2-Using the student objects/variables, find and and display the student with the lowest GPA 3-Using the student objects/variables, find and and display the student with the highest GPA getlnfol)Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
