Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Java program to display the following menu until the user types 5 to exit. Please make sure to test the program before posting.

Write a Java program to display the following menu until the user types 5 to exit. Please make sure to test the program before posting.

1. Add student

2. Add Course

3. Display Student

4. Display Course.

5. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions