C Language question

0 votes
asked May 14, 2019 by Om Parkash
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.

1 Answer

0 votes
answered May 20, 2019 by anonymous

XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...