Sie sind auf Seite 1von 6

Pseudo code START

SET PROGRAM TITLE as created by sahan shahika

Password Function DISPLAY welcome to the XYZ university student registration system THEN GET username (usrName) THEN GET password (passWord) WHILE username sahan and password xyz DISPLAY Access Denied! Please try again END WHILE IF username = sahan and password = xyz DISPLAY main menu (main_menu) END IF

Main Menu Function DO CASE CHOISE 1 DISPLAY add new student details menu (add) CHOISE 2 DISPLAY display student details menu (display_std_details) CHOISE 3 DISPLAY delete records menu (delete_rec) CHOISE 4 DISPLAY edit student details menu (edit_details) CHOISE 5 DISPLAY password menu (password) CHOISE 6 EXIT program DEFAULT DISPLAY Invalid Input, Please try again!!!, THEN DISPLAY main menu (main_menu) END CASE

Add Function DISPLAY Note :Don't use spaces between characters THEN GET student registration number (std_no) THEN GET student first name (f_name) THEN GET student middle name (m_name) THEN GET student last name (l_name) THEN GET date of birth (b_date) THEN GET address (add_l1, add_l2, city, country) THEN GET contact number (cnt_no) THEN GET national identity card number (id_no) THEN GET e-mail address (e_mail) THEN GET course number (course)

WHILE course < 1 or course >4 DISPLAY Invalid Input!, Please Re-Enter!! END WHILE IF course number = 1 DISPLAY information technology subjects ELSE IF course number = 2 DISPLAY business management subjects ELSE IF course number = 3 DISPLAY engineering streams ELSE IF course number = 4 DISPLAY quantity surveying subjects THEN GET subject 1 (first) THEN GET subject 2 (second) THEN GET subject 3 (third) THEN GET subject 4 (fourth) THEN SAVE details to a file and DISPLAY New Record Added Successfully......! DISPLAY do you want to continue ... (Y/N) THEN GET choice (choice) IF choice = Y or y DISPLAY add new student details menu (add)

IF choice = N or n DISPLAY main menu (main_menu) ELSE DISPLAY Invalid Input Attempted!!, Please Verify Your Authentication THEN DISPLAY password menu (password)

Display Student Details Function GET student registration number (std_no)

WHILE student registration number = file name = NULL DISPLAY Incorrect Registration Number, Please Try Again THEN GET student registration number (std_no) END WHILE IF student registration number = file name (AVAILABLE) DISPLAY student registration number (std_no) THEN DISPLAY student first name (f_name), middle name (m_name), last name (l_name) THEN DISPLAY date of birth (b_date) THEN DISPLAY address (add_l1, add_l2, city, country) THEN DISPLAY contact number (cnt_no) THEN DISPLAY national identity card number (id_no) THEN DISPLAY e-mail address (e_mail) THEN DISPLAY Subject 1 (first) THEN DISPLAY Subject 2 (second) THEN DISPLAY Subject 3 (third) THEN DISPLAY Subject 4 (fourth) THEN DISPLAY do you want to continue ... (Y/N) THEN GET choice IF choice = Y or y DISPLAY display student details menu (display_std_details) IF choice = N or n DISPLAY main menu (main_menu)

ELSE DISPLAY Invalid Input Attempted!!, Please Verify Your Authentication THEN DISPLAY password menu (password)

Delete Function GET student registration number (std_no)

IF student registration number = file name = NULL DISPLAY Incorrect Registration Number, Please Try Again GET student registration number IF student registration number = file name = NULL DISPLAY do you want to continue ... (Y/N) THEN GET choice (choice) IF choice = Y or y DISPLAY delete records menu IF choice = N or n DISPLAY main menu ELSE DISPLAY Invalid Input Attempted!!, Please Verify Your Authentication THEN DISPLAY password menu (password) ELSE DISPLAY File successfully deleted DISPLAY do you want to continue ... (Y/N) THEN GET choice (choice) IF choice = Y or y DISPLAY delete records menu IF choice = N or n DISPLAY main menu ELSE DISPLAY Invalid Input Attempted!!, Please Verify Your Authentication THEN DISPLAY password menu (password)

Edit Details Function

GET student registration number (std_no)

WHILE student registration number = file name = NULL DISPLAY Incorrect Registration Number, Please Try Again THEN GET student registration number (std_no) END WHILE IF student registration number = file name (AVAILABLE) DISPLAY Note :Don't use spaces between characters THEN GET student registration number (std_no) THEN GET student first name (f_name) THEN GET student middle name (m_name) THEN GET student last name (l_name) THEN GET date of birth (b_date) THEN GET address (add_l1, add_l2, city, country) THEN GET contact number (cnt_no) THEN GET national identity card number (id_no) THEN GET e-mail address (e_mail) THEN GET course number (course) WHILE course < 1 or course >4 DISPLAY Invalid Input!, Please Re-Enter!! END WHILE IF course number = 1 DISPLAY information technology subjects ELSE IF course number = 2 DISPLAY business management subjects ELSE IF course number = 3 DISPLAY engineering streams ELSE IF course number = 4 DISPLAY quantity surveying subjects THEN GET subject 1 (first) THEN GET subject 2 (second) THEN GET subject 3 (third) THEN GET subject 4 (fourth) THEN

SAVE details to a file and DISPLAY Record Editing Successful......! DISPLAY do you want to continue ... (Y/N) THEN GET choice IF choice = Y or y DISPLAY edit student details menu IF choice = N or n DISPLAY main menu ELSE DISPLAY Invalid Input Attempted!!, Please Verify Your Authentication THEN DISPLAY password menu (password)

END