Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i put there 2 time main clas but there is one time only Main dass: The class and file names are both Main. Contains the

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

i put there 2 time main clas but there is one time only

Main dass: The class and file names are both Main. Contains the main method, which creates two Student Objects as follows: Name: Tiger Woods Born: December 30, 1975 Student Number: A00123456 Graduated: true Name: Bill Gates Born: October 28, 1955 Student Number: A00987654 Graduated: false Then print that student's information by calling the appropriate methods so it's in the format of: Tiger Woods (T.W.) (st # A00123456) was born on 1975-12-30. The student has graduated. and Bill Gates (B.G.) (st# A00987654) was born on 1955-10-28. The student has not graduated. Date class: The class and file names are both Date. Properties: Year e. g. 2021 Month e.g. 12 Day e.g. 25 Methods: WW +year + "_" getYyMmDd() e.g. retums "2021-12-25; hint: return + month + accessor and mutator methods (aka getters and setters) e.g. returns 2021, etc + day; Name class: The class and file names are both Name. Properties: First e.g. Tiger Last e.g. Woods Methods: getFullNamel) e.g. returns Tiger Woods" getInitials() e.g. returns "T.W." hint: return first.toUpperCase().charAt(0) + "." ... accessor and mutator methods (aka getters and setters) e.g. returns "Tiger"; returns "Woods" Main dass: The class and file names are both Main. Contains the main method, which creates two Student Objects as follows: Name: Tiger Woods Born: December 30, 1975 Student Number: A00123456 Graduated: true Name: Bill Gates Born: October 28, 1955 Student Number: A00987654 Graduated: false Then print that student's information by calling the appropriate methods so it's in the format of: Tiger Woods (T.W.) (st # A00123456) was born on 1975-12-30. The student has graduated. and Bill Gates (B.G.) (st # 400987654) was born on 1955-10-28. The student has not graduated. Student dass: The class and file names are both Student. Properties: Name Student number Date of birth Graduated (a Name object) (String) (a Date object) (a boolean) Accessor and Mutator (aka Getter and Setter) Methods: getName() (returns the entire Name object) getStudent Number getDateOfBirth() (returns the entire Date object) isGraduated)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

Advance warning and an explanation for the layoff.

Answered: 1 week ago

Question

Assessment of skills and interests.

Answered: 1 week ago