Question: Using only control flow statements, loops, and files, in java write the program below. Do not use IO Exception statements. Write a program to display
Using only control flow statements, loops, and files, in java write the program below. Do not use IO Exception statements. Write a program to display the following menu until the user types to exit.
Add student
Add Course
Display Student
Display Course.
Exit
When the user wants to Add student collect student information, such as ID first name, last name, address, city, state, zip. Store it in the student file. If the file already exists, append the record to the end of the file. Also, verify that the student with the ID does not already exist in the file.
When a user wants to Add course i collect course information such as Course id Course name, and Course description. Store it in the course file. If the file already exists, append the record to the end of the file. Also, verify that the course with the ID does not already exist in the file.
When the user wants to Display a student, ask the user to enter the student id open the student file, search the student file, and display the record if found.
When the user wants to Display the course, is selected, ask the user to enter the course id open the course file, search the student file, and display the record if found.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
