Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

on the opening menu to generate the pay-slips for various Categories of employees working

0 votes
asked Sep 19, 2018 by Susanta Naskar
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.

2 Answers

0 votes
answered Sep 19, 2018 by Shane Such (860 points)
1st off there is no question this is homework 2nd use a switch and cin<< to input data and cout<< to output data
commented Sep 19, 2018 by Susanta Naskar
Question 1: 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
commented Sep 19, 2018 by Susanta Naskar
Program code to be compile in C+
0 votes
answered Apr 18, 2019 by anonymous

 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.

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.
...