Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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: a. ID Search 2 . b. Major Enrollment 3. c. 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". 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. The program should repeatedly display the three options in Step ( f ) after completing ID Search or Major Enrollment operations (in Step (g) and Step (h)). Only when the user has selected option 3, the program must terminate and stop displaying the options. (5 Points) our Java program should implement the following concepts. - Passing Array to a Method - Returning an Array from a Method
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started