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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

i need 3 method which is the main method which is the menu ,and  add student and show highest and lowest score , how can i do that 

***Student Record System***
Function options:
1. Add Student
2. Show highest and lowest
3. Quit
Please choose an option (1-3): 7
Wrong option, please enter a valid option (1-3): 1
Transcribed Image Text:***Student Record System*** Function options: 1. Add Student 2. Show highest and lowest 3. Quit Please choose an option (1-3): 7 Wrong option, please enter a valid option (1-3): 1
Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Array
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.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education