Question

In: Computer Science

An IT organization decides to collect details of an employee and process the details to decide...

An IT organization decides to collect details of an employee and process the details to decide on whether the employee :

• Employee has any meritorious achievement

• Is he eligible for promotion

• Does he need additional technical training support for performing tasks assigned

The following details need to be collected, namely his name, contact details, skills and qualification, service, awards, etc

• The employee would be often incentives if he has received awards for any IT skill and has completed 6 years service

• The employee would be offered promotion if he has contributed to improve business by way of designing new software and patented the same

Solutions

Expert Solution

Here we are given the details we need collect from the employees and then we need to decide :

1. If the employee is eligible for incentives or not.

2. If the employee is eligible for promotion or not.

For this let us write a program in c++ to collect details and decide upon the above two points.

Below is the code snippet of the required program.

#include<iostream>
using namespace std;
#include<string>

//lets first create the structure which will contain the details of the employees separately
struct employee
{
    string Employee_name;   //variable to contain employee name
    string contact_number;  //variable to contain employee contact number
    char Awards;                    //variable to contain employee has received any award for IT skill or not
    int Service_year;           //variable to contain employee service years
    char Software_designed_patented;        //variable to contain employee has designed and patented new software or not
};
//end of the structure

// main() driver function starts here
int main()
{

cout<<"Enter the number of employees :"<<endl;  //prompt to enter the number of employee
int emp;
cin>>emp;

//start of for loop
for(int i=0;i<emp;i++)
{
    struct employee Employee_1;
    cout<<"Enter employee "<<i+1<<" Name :  ";      //prompt to enter the name of the employee
    cin>>Employee_1.Employee_name;
    cout<<endl;
    cout<<"Enter employee "<<i+1<<" Contact Number :  ";        //prompt to enter the employee contact details
    cin>>Employee_1.contact_number;
    cout<<endl;
    cout<<"Has the employee "<<i+1<<" received any award for IT skill(Y/N) :   "; //prompt to enter if the employee has received any award for it skills or not
    cin>>Employee_1.Awards;
    cout<<endl;
    cout<<"Enter employee "<<i+1<<" Service year :   ";         //prompt to enter the number of service years of the employee
    cin>>Employee_1.Service_year;
    cout<<endl;
    cout<<"Has the employee "<<i+1<<" designed and patented any new software(Y/N) :  "; //prompt to enter if the employee has designed and patented new software or not
    cin>>Employee_1.Software_designed_patented;
    cout<<endl;
    cout<<"According to the details provided the employee"<<i+1<<endl; // prompt for output
    if(Employee_1.Awards=='Y' && Employee_1.Service_year>=6)//Checking for the conditions to receive incentives
        cout<<"1. Is eligible for incentives and"<<endl;
    else
        cout<<"1. Is not eligible for incentives and"<<endl;
    if(Employee_1.Software_designed_patented=='Y')  //Checking for the conditions to get promoted.
        cout<<"2. Is eligible for promotion"<<endl;
    else
        cout<<"2. Is not eligible for promotions"<<endl;
    cout<<endl;
    //printed the result for the given employee

}
//end of for loop
}
//end of the driver function

please refer to the below code snapshots for help :

below is the OUTPUT :


Related Solutions

Write a program in C to process weekly employee timecards for all employees of an organization...
Write a program in C to process weekly employee timecards for all employees of an organization (ask the user number of employees in the start of the program). Each employee will have three data items: an identification number, the hourly wage rate, and the number of hours worked during a given week.A tax amount of 3.625% of gross salary will be deducted. The program output should show the identification number and net pay. Display the total payroll and the average...
please use details and examples it can be any organization Describe your process of selecting the...
please use details and examples it can be any organization Describe your process of selecting the current trend or solution that you would like to implement within your organization. Share at least 3 of the most useful resources that you have found for identifying current trends in the health care management industry. Identify at least 2 resources that you reviewed but chose not to use. Indicate how you decided what was a good resource and what was not.
Write a program to process weekly employee time cards for all employees of an organization. Each...
Write a program to process weekly employee time cards for all employees of an organization. Each employee will have three data items: an identification number, the hourly wage rate, and the number of hours worked during a given week. Each employee is to be paid time and a half for all hours worked over 40. A tax amount of 3.625% of gross salary will be deducted. The program output should show the employee’s number and net pay. Display the total...
Your organization is transferring an employee to your Québec office. This employee is not familiar with...
Your organization is transferring an employee to your Québec office. This employee is not familiar with the Québec Parental Insurance Plan and has several questions about it. You have been asked to explain the differences between Employment Insurance and the Québec Parental Insurance Plan and what it means to the employee.
Q.Consider an organization that maintains a table of employee information. If the organization decided to fragment...
Q.Consider an organization that maintains a table of employee information. If the organization decided to fragment the employee tables, which of the tables will probably also need to be fragmented? a) Employee-Department links b) Department budgets c) Department-Project ownership d) Insurance policy data
EMPLOYEE HEALTH AND SAFETY IN THE ORGANIZATION Organization officials have a legal and moral responsibility to...
EMPLOYEE HEALTH AND SAFETY IN THE ORGANIZATION Organization officials have a legal and moral responsibility to ensure that the workplace is free from unnecessary hazards. Employers hold responsibility for understanding what is necessary to keep workers safe from harm. Conditions surrounding the workplace must be secure for employee’s physical and mental health. As many organizations have implemented wellness program, that focus on smoking cessation, weight control, stress management, early diagnosis of health problems, prevention and education about life-style related and...
            TOPIC:   EMPLOYEE HEALTH AND SAFETY IN THE ORGANIZATION Organization officials have a legal and moral...
            TOPIC:   EMPLOYEE HEALTH AND SAFETY IN THE ORGANIZATION Organization officials have a legal and moral responsibility to ensure that the workplace is free from unnecessary hazards. Employers hold responsibility for understanding what is necessary to keep workers safe from harm. Conditions surrounding the workplace must be secure for employee’s physical and mental health. As many organizations have implemented wellness program, that focus on smoking cessation, weight control, stress management, early diagnosis of health problems, prevention and education about life-style...
An organization uses SSO authentication for employee access to network resources. When an employee resigns, as...
An organization uses SSO authentication for employee access to network resources. When an employee resigns, as per the organization’s security policy, the employee’s access to all network resources is terminated immediately. Two weeks later, the former employee sends an email to the help desk for a password reset to access payroll information from the human resources server. Which of the following represents the BEST course of action? Approve the former employee’s request, as a password reset would give the former...
About the organization: This fictional organization has a small, but growing, employee base, with 50 employees...
About the organization: This fictional organization has a small, but growing, employee base, with 50 employees in one small office. The company is an online retailer of the world's finest artisanal, hand-crafted widgets. They've hired you on as a security consultant to help bring their operations into better shape. Organization requirements: As the security consultant, the company needs you to add security measures to the following systems: An external website permitting users to browse and purchase widgets An internal intranet...
            TOPIC:   EMPLOYEE HEALTH AND SAFETY IN THE ORGANIZATION Organization officials have a legal and moral responsibility to...
            TOPIC:   EMPLOYEE HEALTH AND SAFETY IN THE ORGANIZATION Organization officials have a legal and moral responsibility to ensure that the workplace is free from unnecessary hazards. Employers hold responsibility for understanding what is necessary to keep workers safe from harm. Conditions surrounding the workplace must be secure for employee’s physical and mental health. As many organizations have implemented wellness program, that focus on smoking cessation, weight control, stress management, early diagnosis of health problems, prevention and education about life-style related and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT