Question: Exercise 1 : Implement the class Student as presented by the following UML diagram: Exercise 2 : Write a driver class to test the Student
Exercise 1 : Implement the class Student as presented by the following UML diagram:
Exercise 2 : Write a driver class to test the Student class as follow:

Excrcise L(60 pts) Implement the class Student as presented by the following UML. diagram: Student -name: String could be formed of more than two words -id: int -gender: char -address: String +Student(--All Attributes--) (10 pts) +getters'setters (20 pts) +formatName(): void (20 pts) capitalize the first letter of every word in name *printDesrciption(): void (10 pts) Excrcise 2. (40 pts) Write a driver class to test the Student class as follows: a. Create a student object s by reading his her name, id, gender and address from the user, (10 pts) b. Change its id with any other id. (6 pts) c. Display the name of s. (6 pts) d. Format his her name and then display it. (6 pts) e Print the description of s. (6 pts) Display either the word Male or the word Female according to the gender of s. (6 pts) Sample Run: Enter name: ali abdel Karim el masri Enter the atudent id: 1111 Enter M for male and r for female: m Enter address: Hamra ali abdel Karin el manri After formatting the name: Ali Abdel Karin El Manri Student (name - Ali Abdel Karim El Masri, id 3333, gender H, addreas - Hamra) The gender of a in Male
Step by Step Solution
3.44 Rating (151 Votes )
There are 3 Steps involved in it
Studentjava public class Student private String name private int id private char gender private Stri... View full answer
Get step-by-step solutions from verified subject matter experts
