Write a Java Program to manage student information of a university. The Javaprogram does the following steps:a) The program must use single-dimensional arrays to store the studentinformation such as Student ID, Name and Major.b) The program asks the user to provide the number of students.c) The program asks the user to enter the Student IDs for the number of studentsand stores them.d) The program asks the user to enter the corresponding names for the numberof students and stores them.e) The program then asks the user to provide the corresponding major for thestudents and stores them.f) The program then should display the following options:1. ID Search2. Major Enrollment3. Exitg) On selecting option 1, the user can search for a student using Student ID. Theprogram asks the user to enter a Student ID. It then should print thecorresponding student’s details such as Name and Major if the user providedStudent ID number is present in the stored data. If the user’s Student IDnumber does not exist, it should display message “Student Not Found”. CPS 2231 Computer Programming Homework Assignment 1h) On selecting option 2, the program asks the user to enter a “Major” and thendisplays the names of students enrolled only in that Major. If the userprovided “Major” does not exist in the stored data, it should display message“No Students are Enrolled in this Major”.i) On selecting option 3, the program displays a message “Program Terminates”and exits.
Write a Java Program to manage student information of a university. The Javaprogram does the following steps:a) The program must use single-dimensional arrays to store the studentinformation such as Student ID, Name and Major.b) The program asks the user to provide the number of students.c) The program asks the user to enter the Student IDs for the number of studentsand stores them.d) The program asks the user to enter the corresponding names for the numberof students and stores them.e) The program then asks the user to provide the corresponding major for thestudents and stores them.f) The program then should display the following options:1. ID Search2. Major Enrollment3. Exitg) On selecting option 1, the user can search for a student using Student ID. Theprogram asks the user to enter a Student ID. It then should print thecorresponding student’s details such as Name and Major if the user providedStudent ID number is present in the stored data. If the user’s Student IDnumber does not exist, it should display message “Student Not Found”. CPS 2231 Computer Programming Homework Assignment 1h) On selecting option 2, the program asks the user to enter a “Major” and thendisplays the names of students enrolled only in that Major. If the userprovided “Major” does not exist in the stored data, it should display message“No Students are Enrolled in this Major”.i) On selecting option 3, the program displays a message “Program Terminates”and exits.
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 12PE
Related questions
Question
Write a Java Program to manage student information of a university. The Java
program does the following steps:
a) The program must use single-dimensional arrays to store the student
information such as Student ID, Name and Major.
b) The program asks the user to provide the number of students.
c) The program asks the user to enter the Student IDs for the number of students
and stores them.
d) The program asks the user to enter the corresponding names for the number
of students and stores them.
e) The program then asks the user to provide the corresponding major for the
students and stores them.
f) The program then should display the following options:
1. ID Search
2. Major Enrollment
3. Exit
g) On selecting option 1, the user can search for a student using Student ID. The
program asks the user to enter a Student ID. It then should print the
corresponding student’s details such as Name and Major if the user provided
Student ID number is present in the stored data. If the user’s Student ID
number does not exist, it should display message “Student Not Found”.
program does the following steps:
a) The program must use single-dimensional arrays to store the student
information such as Student ID, Name and Major.
b) The program asks the user to provide the number of students.
c) The program asks the user to enter the Student IDs for the number of students
and stores them.
d) The program asks the user to enter the corresponding names for the number
of students and stores them.
e) The program then asks the user to provide the corresponding major for the
students and stores them.
f) The program then should display the following options:
1. ID Search
2. Major Enrollment
3. Exit
g) On selecting option 1, the user can search for a student using Student ID. The
program asks the user to enter a Student ID. It then should print the
corresponding student’s details such as Name and Major if the user provided
Student ID number is present in the stored data. If the user’s Student ID
number does not exist, it should display message “Student Not Found”.
CPS 2231 Computer Programming Homework Assignment 1
h) On selecting option 2, the program asks the user to enter a “Major” and then
displays the names of students enrolled only in that Major. If the user
provided “Major” does not exist in the stored data, it should display message
“No Students are Enrolled in this Major”.
i) On selecting option 3, the program displays a message “Program Terminates”
and exits.
h) On selecting option 2, the program asks the user to enter a “Major” and then
displays the names of students enrolled only in that Major. If the user
provided “Major” does not exist in the stored data, it should display message
“No Students are Enrolled in this Major”.
i) On selecting option 3, the program displays a message “Program Terminates”
and exits.
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning