Ad

Chapter - 3: The Decision Control

In a company, worker efficiency is determined on the basis of the time required for a worker to complete a particular job. If the time taken by the worker is between 2 – 3 hours, then the worker is said to be highly efficient. If the time required by the worker is between 3 – 4 hours, then the worker is ordered to improve speed. If the time taken is between 4 – 5 hours, the worker is given training to improve his speed, and if the time taken by the worker is more than 5 hours, then the worker has to leave the company. If the time taken by the worker is in.


Ad
G
Sections
7
Exercises
#include<stdio.h>
#include<conio.h>
int main()
{
	int hr;
	
	printf("Enter the working hour of a worker : ");
	scanf("%d", &hr);
	
	if(hr>=2 && hr<3)
		printf("\n\nThe worker is highly efficient");
	if(hr>=3 && hr<4)
		printf("\n\nThe worker is ordered to improve is speed.");
	if(hr>=4 && hr<=5)
		printf("\n\nThe worker will be given training to improve his/her speed.");
	if(hr>5)
		printf("\n\n The worker will leave the company.");
	
	getch();
	return 0;
}
Ad

© 2024 Garbage Valuegarbage value logo