Friday, July 29, 2016

Program in C to calculate wage according to given condition

/* A man is paid at the hourly rate of Rs 250 per hour for the first 30 hrs worked in a week.
There after the overtime is paid at 1.5 times the hourly rate for the next 25 hrs
and 2 times the hourly rate for further worked.
WAP to input the number of hours worked in a week and print the weekly wages */
/* Program to Enter 3 Numbers and Find the largest */
#include<stdio.h>
#include<conio.h>
void main()
{
    int hour,wage;
    printf("\n Enter The Worked Hours of week : ");
    scanf("%d",&hour);
    if(hour>0 && hour<=30)
    {
        wage=hour*250;
        printf("\n Wages = %d ",wage);
    }
    else if(hour>30 && hour<=55)
    {
        wage=(hour*250*1.5);
        printf("\n Wage = %d ",wage);
    }
    else if(hour>55)
    {
        wage=(hour*250*2);
        printf("\n Wage = %d ",wage);
    }
    else{
            printf("\Wrong Input, Try Again");
    }
    getch();

}

1 comment:

  1. Program In C To Calculate Wage According To Given Condition ~ Junior Computer Technician >>>>> Download Now

    >>>>> Download Full

    Program In C To Calculate Wage According To Given Condition ~ Junior Computer Technician >>>>> Download LINK

    >>>>> Download Now

    Program In C To Calculate Wage According To Given Condition ~ Junior Computer Technician >>>>> Download Full

    >>>>> Download LINK

    ReplyDelete