i need to create a program that displays weekly gross pay fo

i need to create a program that displays weekly gross pay for any number of employees. i should be about to input the number of hours worked and the hourly rate and if the employee worked more then 40 hours they need to get 1 and 1/2 times the pay.

Solution

#include<iostream>

using namespace std;

int main()

{

char ch;

cout<<\"\ enter hourly rate : \";

double hourly;

cin>>hourly;

do

{

cout<<\"\ enter how many hours worked : \";

double hours;

cin>>hours;

double gross;

if(n<=40)

gross=n*hourly;

else

gross=n*hourly*1.5;

cout<<\"\ gross pay : \"<<gross;

cout<<\"\ do want to calculate for another employee (Y/N) :\";

cin>>ch;

}while(ch==\'y\'||ch==\'Y\')

return 0;

}

i need to create a program that displays weekly gross pay for any number of employees. i should be about to input the number of hours worked and the hourly rate

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site