Answered You can hire a professional tutor to get the answer.

QUESTION

Contents 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....

Contents

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. 

  • Set 1 task(s): Create three students using the "Set 1" data shown below. Prefix this output with two lines. On line one, output "Set 1". On line two, output twenty hyphens. Then, display all class variables of each student. After ensuring desired results are present, apply a single-line comment to introduce the logic you wrote as: // Set 1 task(s)...
  • Set 2 task(s): Create three more students using the "Set 2" data shown below. Prefix this output with two lines. On line one, output "Set 2". On line two, output twenty hyphens. Then, find and display the name of the youngest of these three students.  After ensuring desired results are present, apply a single-line comment to introduce the logic you wrote as: // Set 2 task(s)...
  • Set 3 task(s): Create three more students using the "Set 3" data shown below. Prefix this output with two lines. On line one, output "Set 3". On line two, output twenty hyphens. Then, find and display the name of the oldest of these three students. After ensuring desired results are present, apply a single-line comment to introduce the logic you wrote as: // Set 3 task(s)...

By "find" above, I mean using the objects' data and doing calculations instead of you looking at the data and displaying John as the youngest and Fred as the oldest.

Test your solution with the following sets of data:

Set 1Set 2Set 3 John Smith 20

Zack Mills 21

Fred Fonz 44John Smith 33

Zack Mills 22

Fred Fonz 20John Smith 20

Zack Mills 40

Fred Fonz 30

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question