This my Project Requirement – STIA 1013
Course Information System
1. Course information:
a. Course code, course name, credit, time, venue, day, lecturer name
2. Functions that need to be developed:
a. Add course
b. Display all courses
c. Search – Search by course code and also lecturer name. Then, display only one record
d. Delete – delete through course code
e. Edit the course information
3. Use an array of object
4. Your system must be user friendly. It means that if record is not found, please display an appropriate message
5. Use a menu concept like ATM machine
import java.util.Scanner;
public class projek
{
public static void main (String [] args)
{
Scanner keyboard = new Scanner(System.in);
int coursecode;
String coursename;
int coursekrdt;
double coursetime;
String venue,day,name;
char displaycourse;
{
System.out.println("****************************** *********");
System.out.println(" WELCOME ");
System.out.println("****************************** *********");
int menu;
do
{
System.out.println("1: ADD COURSE");
System.out.println("2: DISPLAY ALL COURSE");
System.out.println("3: SEARCH");
System.out.println("4: DELETE");
System.out.println("5: EDIT");
System.out.print("PLEASE CHOOSE A NUMBER STATED ABOVE : ");
menu = keyboard.nextInt();
if (menu == 1)
System.out.println("YOU ARE EXECUTING ADD OPERATION");
else if (menu == 2)
System.out.println("YOU ARE EXECUTING DISPLAY OPERATION");
else if (menu == 3)
System.out.println("YOU ARE EXECUTING SEARCH OPERATION");
else if (menu ==4)
System.out.println("YOU ARE EXECUTING DELETE OPERATION");
else if (menu ==5)
System.out.println("YOU ARE EXECUTING EDIT OPERATION");
else if (menu == 6)
System.out.println("EXIT FOR MENU..");
}while ( menu <= 0);
switch (menu)
{
case 1:
int course []=new int[7];
System.out.print("ENTER THE COURSE CODE:");
coursecode=keyboard.nextInt();
System.out.print("ENTER THE COURSE NAME:");
coursename=keyboard.next();
System.out.print("ENTER THE COURSE CREDIT:");
coursekrdt=keyboard.nextInt();
System.out.print("ENTER THE COURSE TIME:");
coursetime=keyboard.nextDouble();
System.out.print("ENTER THE VENUE:");
venue=keyboard.next();
System.out.print("ENTER THE DAY:");
day=keyboard.next();
System.out.print("ENTER THE LECTURE NAME:");
name=keyboard.next();
break;
case 2:
System.out.print("DISPLAY COURSE :" );
String display = keyboard.next();
break;
case 3:
System.out.print("SEARCH COURSE :" );
String search = keyboard.next();
break;
case 4:
System.out.print("DELETE COURSE :" );
String delete = keyboard.next();
break;
case 5:
System.out.print("EDIT COURSE :" );
String edit = keyboard.next();
break;
}
}
System.out.println("\n **********");
System.out.println("\n thank you... (: ");
System.out.println("\n **********");
}
}
so now i want to display all that item, i don know how to write a code....