result = Get_Room_Number(&room_num); // syntactic errors? if (result != 1) { Display_Error(result); break; } result = Search_Room(room_num); // Room number already exist? if (result != 0) { Display_Error(some_code); } result = Get_Room_Type(&room_type); // syntactic errors? if (result != 1) { Display_Error(result); break; } result = Search_Room_Type(room_type); // room type should exist. if (result != 1) { Display_Error(some_code); } Add_Room_Data_Store(room_num, room_type);
result = Get_Room_Number(&room_num); // syntactic error on room num If (result != 1) { Display_Error(result); break; } result = Search_Room_Number(room_num); // room num must exist first if (result != 1) { Display_Error(some_code) } Result = Check_For_Guest(room_num, current_date); // somebody in room! if (result != 1) { Display_Error(some_code); } Delete_Room_Data_Store(room_num);
result = Get_Room_Number(&room_number); // syntax checking if (result != 1) { Display_Error(result); } result = Search_Room_Number(room_number); // exists? if (result != 1) { Display_Error(some_code); } result = Get_Room_Type(&room_type); // syntax checking if (result != 1) { Display_Error(some_code); } result = Search_Room_Type(room_type); // exists? if (result != 1) { Display_Error(some_code); } Modify_Room_Data_Store(room_number, room_type);
result = Get_Room_Type(&room_type); // syntax of room type if (result != 1) { Display_Error(result); } result = Search_Room_Type(room_type); // already exist? if (result != 0) { Display_Error(some_code); } result = Get_Room_Rate(&room_rate); // syntax of room rate if (result != 1) { Display_Error(result); } Add_Room_Type_Data_Store(room_type, room_rate);
result = Get_Room_Type(&room_type); // syntax checking if (result != 1) { Display_Error(result); } result = Search_Room_Type(room_type, &rooms); // room type exists? if (result != 1) { Display_Error(some_code); } Display(&rooms); Delete_Room_Type(room_type);
result = Get_Room_Type(&room_type); // syntax checking if (result != 1) { Display_Error(result); } result = Search_Room_Type(room_type, &rooms); // room type exists? if (result != 1) { Display_Error(some_code); } result = Get_Room_Rate(&room_rate); // syntax checking if (result != 1) { Display_Error(result); } Display(&rooms); Modify_Room_Rate(room_type, room_rate);
Display dialog box Wait for OnClick message Get string from dialog box Check for duplicate string if( not duplicate ) { add string to database } Exit funciton
Display dialog box Wait for OnClick message Get string from dialog box Check for duplicate string if( duplicate ) { remove string from database. } Exit funciton
Display a dialog box and ask the user for a tax rate if the user hit cancel return to main menu else Call Take_Floating_input if tax is valid Call Modify rate if tax rate is successfully modified in data base it will just return to main menu else return an error message said fail to modify tax rate in data base end_if else /* tax rate is negative number */ the dialoge box will be re-prompt and ask the user re-enter or cancel end_if end_if
Display a dialog box and ask the user for a GST if the user hit cancel return to main menu else Call Take_Floating_input if GST is valid Call Modify rate if GST is successfully modified in data base it will just return to main menu else return an error message said fail to modify GST in data base end_if else /* tax rate is negative number */ the dialoge box will be re-prompt and ask the user re-enter or cancel end_if end_if
Display a dialoge box and ask the user input item number, fee description and fee call Get_item_Number to get the item number if item number is valid Call Search_item_number if item_number exist Call_Fee_Description if correct syntax Call Take_Floating_input if fee is valid Call Add_Fee if fee is successfully add to data base retun to main menu else return an error message "Falie to add in Data base" end_if else /* fee is not valid */ return an error message "Invalid Fee" end_if else /* incoorect syntax for fee description */ return an error message "Incorrect syntax for Fee description" end_if else return an error message "Item number doesn't exist" end_if else return an error message "Invalid item number" end_if
Display a dialoge box and ask the user input item number, fee description and fee call Get_item_Number to get the item number if item number is valid Call Search_item_number if item_number exist Call Dele_Fee if delete fee from the data base is succes return to main menu else return an error message "Fail to delete fee from the data base" end_if else return an error message "Item number doesn't exist" end_if else return an error message "Invalid item number" end_if
Display a dialoge box and ask the user input item number, fee description and fee call Get_item_Number to get the item number if item number is valid Call Search_item_number if item_number exist Call Take_Floating_input if fee is valid Call Modify_Fee if attemp success to modify fee in data base retun to main menu else return an error message "Falie to make modification in Data base" end_if else /* fee is not valid */ return an error message "Invalid Fee" end_if else return an error message "Item number does not exist" end_if else return an error message "Invalid item number" end_if
Display new employee ID in corresponding ID text box (auto generated by the program) if the input Employee found in data store "Employees" report "ID already exists" in pop up mesg box go back to the text box and re-enter the ID endif Get new employee First name into First Name text box Get new employee Last name into Last Name text box Select one of the security type form the Security Type's list box Get new password into password text box Varify the password by asking user to re-enter it in a InputBox if (new_password != old_password) Display "Wrong Password" in mesg box Attemp to re-enter new password endif If Click_Cancel cancel the process at anytime. endif If Click_Add confirm add
Pop Up an Input Box and ask user to input Employee ID number If the input from the manager is syntactically incorrect report this problem else if the input Employee ID is not found in "Employees" report "record not found" re-enter the Employee ID or cancel the process endif Change employee ID text box if needed Change employee First Name if needed Change employee Last Name if needed Change employee security type if needed Change password if necessary If Click_Cancel cancel the process Endif If Click_Modify confirm modify Endif
Pop Up an Input Box and ask user to input Employee ID number If the input from the manager is syntactically incorrect report this problem else if the input Employee ID is not found in "Employees" report "record not found" re-enter the Employee ID or cancel the process endif Display Employee ID in the corresponding text box Display Employee Last name in the corresponding text box Display Employee First Name in the corresponding text box Display Security type in he corresponding list box If Click_Cancel cancel the process if needed endif If Click_Delete confirm delete Endif
Get new security type in corresponding text box If input are syntactically incorrect report this problem by error mesg box re-enter to get new security type endif Get new security name in corresponding text box If Click_Cancel Stop process Endif If Click_Add Confirm process Endif
Get security type from input box If security type not in data store "Security" report this problem in mesg box re-enter the security type Display security type in corresponding text box Display security name in corresponding text box Change security name if needed If Click_Cancel stop the process Endif If Click_Modify confirm the process Endif
Get security type from input box If security type not in data store "Security" report this problem in mesg box re-enter the security type Display security type in corresponding text box Display security name in corresponding text box If Click_Cancel stop the process If Click_Delete If (security_type in "Employee") report this problem in mesg box cancel the process Else confirm the process Endif Endif