Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
9th Edition
ISBN: 9781337669405
Author: FARRELL
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Bartleby Related Questions Icon
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.
SAVE
AI-Generated Solution
info
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
bartleby
Unlock instant AI solutions
Tap the button
to generate a solution
to generate a solution
Click the button to generate
a solution
a solution
Knowledge Booster
Background pattern image
Recommended textbooks for you
- Text book imageProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageText book imageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrText book imageNew Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage Learning
- Text book imageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningText book imageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Text book imageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning