Write an interactive program which prompts the user with the following options on the opening menu to generate the pay-slips for various categories of employees working in a University:

, , No Comments
Write an interactive program which prompts the user with the following options on the opening menu to generate the pay-slips for various categories of employees working in a University:

PAY SLIP GENERATION 

1) Faculty (Asst. Professor, Associate Professor, Professor)
2) Non-Academic Staff
3) Consultants
4) Daily-Wagers / Skilled Workers
5) Security Personals
6) Quit

 Enter your choice: If an “1” is entered, prompt the user to take the inputs for calculating the salary for Faculty (Asst. Professor, Associate Professor, Professor) and generating the pay-slip. If “2” is entered prompt the user to take the inputs for calculating the salary for Non-Academic Staff and generating the pay-slip. If “3” is entered prompt the user to take the inputs for calculating the salary for Consultants and generating the pay-slip. If “4” is entered prompt the user to take the inputs for calculating the salary for Daily- Wagers /Skilled Workers and generating the pay-slip. If “5” is entered, prompt the user to take the inputs for calculating the salary for Security Personals. If “6” is entered, it should exit from the program. If the user enters any letters or numbers other than the choice, redisplay the prompt. All outputs should go to the terminal and all input should come from the keyboard.

 Note:(i) Give appropriate pay-scales as per 7th Pay Commission for Faculty and Non- Academic                     Staff of the University. Assumptions can be made for others wherever necessary.
(ii) You must execute the program and submit the program logic, sample input and output along with         the necessary documentation for this question. 

0 टिप्पणियाँ:

Post a Comment