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.
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.
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 4E
Related questions
Question
Basic Java, pls use more comment, and show the screenshoot of output
![Criteria
Methods
Main
practice your level, your code must include
luck)
all these
gambatah
Arrays
variables
Menu
Selection
• loop
Add
Show
Declaration
Initialization
Highest and lowest determination
assign highest and lowest student object
Add
Update
Object and Class
Object creation
Object update
Class design:
Attributes
Setter
Setter Validation
● Constructor
cgpa method
toString method](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb1ddeca0-db0c-4fb2-a11d-d0dc67b17cbe%2F321a1fe4-3188-4b58-b4c8-929eb27fc152%2Ffn10e6_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Criteria
Methods
Main
practice your level, your code must include
luck)
all these
gambatah
Arrays
variables
Menu
Selection
• loop
Add
Show
Declaration
Initialization
Highest and lowest determination
assign highest and lowest student object
Add
Update
Object and Class
Object creation
Object update
Class design:
Attributes
Setter
Setter Validation
● Constructor
cgpa method
toString method
![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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb1ddeca0-db0c-4fb2-a11d-d0dc67b17cbe%2F321a1fe4-3188-4b58-b4c8-929eb27fc152%2Fa82eavn_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,