Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will make a course registration system for course management actions (register, withdraw, display, etc.) First, you are going to make a login screen with

You will make a course registration system for course management

actions (register, withdraw, display, etc.)

First, you are going to make a login screen with default username and

password (admin, admin)

Welcome to Course Registration System

Login

Username: admin

Password: admin

If username and password are incorrect you must display an error

message

Wrong username or password!

If they are correct, display the following option

Choose your role

1. Registrar

2. Student

Here you will choose 1 (Registrar) and display this menu

Registrar Menu

1. Add Course

2. Update Course

3. Delete Course

4. Display Specific Course

5. Display All Courses

6. Exit

Now youre going to make methods for each operation with the following method naming:

o public static String addCourse(){}

o public static String updateCourse(int id){}

o public static String deleteCourse(int id){}

o public static void displayCourse(int id){}

o public static void displayAllCourses(){}

Each course contains the following info (number - name - hours)

Before adding any course, you will create some arrays for each course info, the default size of the arrays is 3 and the first element (position 0) will be filled with the following course info:

CSCI1104 - Programming 1 - 1

When you are adding a course, you will save course information in the arrays.

After each operation: add, update or delete a course you will return and display a successful message

Course added/updated/deleted successfully

If theres an error in some operation like that you cannot add a new course because the array already has 3 elements or that you cannot delete a course because the array is empty you should display an appropriate message

o You cannot add new course! (array is full 3/3)

o You cannot update/delete course (array is empty)

When deleting a course, you will adjust the array size

Displaying courses should be in the following format:

All available courses

CSCI1104 - Programming 1 - 1

CSCI1106 - Web Development - 2

Here you will choose 2 (Student) and then ask for his info

Enter your name: Ali

Enter your id: 123

Enter your age: 20

Enter your email: ali@gnail.com

Each student contains the following info (name - id - age - email - cid)

You will store the student info in an array

Then display this menu

Student Menu

1. Update Student

2. Delete Student

3. Display Student

4. Register Course

5. Withdraw Course

6. Exit

Each student contains the following info (name - id - age - email - cid)

You will store the student info in an array

Then display this menu

public static String updateStudent (int id){}

public static String deleteStudent (int id){}

public static void displayStudent (int id) {}

public static String registerCourse (int id , int cid) {}

public static String withdrawCourse (int id , int cid) {}

Before registering any course, you will create some arrays to store the courses info

Each course will have (id, name, hours)

100 - Programming 1 - 1

101 - Web Development 2

After each operation: update, delete, register or withdraw you will return and display a successful message

Student updated/deleted successfully

Course registered/unregistered successfully

If theres an error in some operation like that you cannot register a new course because the student already has registered course or that you cannot delete a student because the array is empty you should display an appropriate message

You cannot register a new course! (a course is already registered)

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

1. What are your creative strengths?

Answered: 1 week ago