What is the role of a normal constructor? Create the class Student, which must have a normal constructor and at least 5 attributes. Note: The attributes must include all the details mentioned in the scenario and others of your choice. The marks of the student in different modules must be stored using arrays. b. Explain the benefits of encapsulation in Object Oriented Programming. Include proper methods for setting and getting the attributes of the class Student.
What is the role of a normal constructor? Create the class Student, which must have a normal constructor and at least 5 attributes. Note: The attributes must include all the details mentioned in the scenario and others of your choice. The marks of the student in different modules must be stored using arrays. b. Explain the benefits of encapsulation in Object Oriented Programming. Include proper methods for setting and getting the attributes of the class Student. c. In the class Student, create a method for each of the following results using the array concept and any type of loop: i. The total or average mark of the student in each module. ii. Finding the list of modules that the student has passed or failed in that semester. iii. Finding the highest or lowest mark of the student in all assessments. d. Draw the tracing table that shows an example of execution of any of the previous methods. e. Create details and at all the results found in task 2.c by calling the respective methods. a method that will display the transcript of the student, which must include the student f. Create i. Create a new Student object by reading the required details and by applying at least the principal program, which will complete the following tasks : one type of data validation of your choice on the input. ii. Read and save the list of module names and the list of module marks awarded to the student in the two assignments. iii. Display the transcript of the student by calling the adequate method. iv. Repeating the previous tasks until the user decides to exit. Java, answer all please.
Step by step
Solved in 2 steps