This coursework focuses on method, array and object class. You are required to design and develop a system that can add students' data into arrays. The information of a student includes id (unique), name, program and accumulated total. Design 4 different arrays to store the 4 information of student: ID, name, program and accumulated total. Each array can store 20 elements. Initialize the arrays with 10 data each. Align the element so that same element index in 4 arrays is keeping data for a particular student. You are not allowed to use data structure like List, ArrayList, Object or HashMap other than array to store the student data. The program has two student objects: one stores the student with highest accumulated total and the other stores the student with lowest accumulated total. Create a loop that finds the highest total and lowest total from the initialized arrays. Create two student objects and store the data into them. The program provides 2 main functions: Add student - The function allows the user to add more student to the arrays. Each time when a new student is added, it checks and updates the student objects (highest and lowest) if required. Show highest and lowest score - When this function is called, it displays the data of two

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

Jara, need to use array and method c

Question
This coursework focuses on method, array and object class.
You are required to design and develop a system that can add students' data into arrays. The
information of a student includes id (unique), name, program and accumulated total.
Design 4 different arrays to store the 4 information of student: ID, name, program and
accumulated total. Each array can store 20 elements. Initialize the arrays with 10 data each.
Align the element so that same element index in 4 arrays is keeping data for a particular
student. You are not allowed to use data structure like List, ArrayList, Object or HashMap
other than array to store the student data.
The program has two student objects: one stores the student with highest accumulated total
and the other stores the student with lowest accumulated total. Create a loop that finds the
highest total and lowest total from the initialized arrays. Create two student objects and store
the data into them.
The program provides 2 main functions:
●
Add student - The function allows the user to add more student to the arrays. Each
time when a new student is added, it checks and updates the student objects (highest
and lowest) if required.
Show highest and lowest score - When this function is called, it displays the data of two
student objects by calling object toString method.
Program requirements:
● Include 3 methods: main, add Student and show score in the program
Repeat the function activities until user chooses to quit the program
Design a student class for student objects
Design the student class with the following members:
private attributes to store student information.
Setters with proper validation for total where total should be within 0 and 100
●
a constructor that initialization the attributes
●
a cgpa method that returns the cgpa of a student based on the accumulated total using
the formula cgpa=total/25.
●
a toString method that returns all the information of a student including cgpa. Round
the cgpa value to one decimal point.
JL
1r
Transcribed Image Text:Question This coursework focuses on method, array and object class. You are required to design and develop a system that can add students' data into arrays. The information of a student includes id (unique), name, program and accumulated total. Design 4 different arrays to store the 4 information of student: ID, name, program and accumulated total. Each array can store 20 elements. Initialize the arrays with 10 data each. Align the element so that same element index in 4 arrays is keeping data for a particular student. You are not allowed to use data structure like List, ArrayList, Object or HashMap other than array to store the student data. The program has two student objects: one stores the student with highest accumulated total and the other stores the student with lowest accumulated total. Create a loop that finds the highest total and lowest total from the initialized arrays. Create two student objects and store the data into them. The program provides 2 main functions: ● Add student - The function allows the user to add more student to the arrays. Each time when a new student is added, it checks and updates the student objects (highest and lowest) if required. Show highest and lowest score - When this function is called, it displays the data of two student objects by calling object toString method. Program requirements: ● Include 3 methods: main, add Student and show score in the program Repeat the function activities until user chooses to quit the program Design a student class for student objects Design the student class with the following members: private attributes to store student information. Setters with proper validation for total where total should be within 0 and 100 ● a constructor that initialization the attributes ● a cgpa method that returns the cgpa of a student based on the accumulated total using the formula cgpa=total/25. ● a toString method that returns all the information of a student including cgpa. Round the cgpa value to one decimal point. JL 1r
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

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