Q19 In a company, worker efficiency is determined on the basis of time required for a worker to complete a particular job. If time taken by the worker is between 2-3 hours, then the worker is said to be highly efficient. If time required by the worker is between 3-4 hours, then the worker is ordered to improve speed. If time taken is between 4-5 hours, the worker is given training to improve his speed, and if time taken by the worker is more than 5 hours, then the worker is terminated. If the time taken by the worker is input through the keyboard, write a program to find the efficiency of the worker.

In a company, worker efficiency is determined on the basis of time required for a worker to complete a particular job. If time taken by the worker is between 2-3 hours, then the worker is said to be highly efficient. If time required by the worker is between 3-4 hours, then the worker is ordered to improve speed. If time taken is between 4-5 hours, the worker is given training to improve his speed, and if time taken by the worker is more than 5 hours, then the worker is terminated. If the time taken by the worker is input through the keyboard, write a program to find the efficiency of the worker.

Program: 87

In a company, worker efficiency is determined on the basis of time required for a worker to complete a particular job. If time taken by the worker is between 2-3 hours, then the worker is said to be highly efficient. If time required by the worker is between 3-4 hours, then the worker is ordered to improve speed. If time taken is between 4-5 hours, the worker is given training to improve his speed, and if time taken by the worker is more than 5 hours, then the worker is terminated. If the time taken by the worker is input through the keyboard, write a c program to find the efficiency of the worker.

#include<stdio.h>
#include<conio.h>
int main()
{
    float hours;
    printf("Input the time taken by worker: ");
    scanf("%f", &hours);

    if(hours>=2 && hours<=3)
        printf("Worker is highly efficient");
    if(hours>3 && hours <=4)
        printf("Worker needs to improve speed");
    if(hours>4 && hours <=5)
        printf("Give training to worker");
    if(hours>5)
        printf("Worker is terminated");

    return(0);
}

Output:

 Input the time taken by worker: 3
 Worker is highly efficient
 
 Input the time taken by worker: 4
 Worker needs to improve speed

 Input the time taken by worker: 5
 Give training to worker
 
 Input the time taken by worker: 10
 Worker is terminated

Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.
Related Post
Leave a Comment

This website uses cookies.