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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY