CODE IN C++:
#include <iostream>
using namespace std;
int main()
{
//taking number of hours as input from the user
int normalHours;
cout<<"Enter hours worked for the week:";
cin >> normalHours;
//taking hourlyRate as input from the user
double hourlyRate ;
cout << "Enter hourly rate:";
cin >> hourlyRate;
//taking holidayHours as input from the user
int holidayHours;
cout<<"How many of these were on a holiday:";
cin>>holidayHours;
//asking the whether birthday is there in this week or not
char ch;
cout<<"Did the employee have the birthday in the
week[y/n]:";
cin>>ch;
//calculating totalWage
double totalWage = 0.0;
totalWage += holidayHours * hourlyRate * 2 ;
if(normalHours>60){
totalWage += (normalHours-60)*hourlyRate*2 + (20 * hourlyRate *
1.5) + (40-holidayHours)*hourlyRate;
}
else if(normalHours>40){
totalWage += (normalHours-40)*hourlyRate*1.5 +
(40-holidayHours)*hourlyRate;
}
else
totalWage += (normalHours-holidayHours)*hourlyRate;
if(ch=='y'||ch=='Y')
totalWage += (totalWage*0.07);
//displaying the result
cout<<"Wages due for the
week:$"<<totalWage<<endl;
return 0;
}
OUTPUT:
use visual studio, this is the step how to creat the project. creat new project in...
An employee whose regular hourly rate is $10 and whose overtime rate is 1.5 times the regular rate worked 44 hours in one week. In the payroll register, the employer should record wages expense of
Develop a WPF application that has a button to calculate an employee’s weekly pay, given the number of hours worked. An employee should have a first name, last name, age, and hourly consulting rate. You should be able to create an employee object and provide the hours worked to calculate the weekly pay. The application assumes a standard workweek of 40 hours. Any hours worked over 40 hours in a week are considered overtime and earn time and a half....
Question 2: Lynette Camacho earns $850/week. During a recent week she worked 45 hours. Assuming that Lynette's employer compensates her for overt hours at 1.5 times her regular pay rate, her gross earnings for the week are $ Question 14: Based on the Personal Allowances Worksheet, how many federal allowances would be claimed by a single employee with one job and no dependents, who files as single on his tax return, and who claims no credits on his tax returns?...
can someone help me with these question please. Question 2: Lynette Camacho earns $850/week. During a recent week she worked 45 hours. Assuming that Lynette's employer compensates her for overtime hours at 1.5 times her regular pay rate, her gross earnings for the week are $ Question 7: An employee who earns $14/hour, worked 33 hours during a recent week, is paid a commission of $55 for each sale, and makes 10 sales during the same week, has earned total...
Visual C# C# Visual Studio 2017 You are to create a class object called “Employee” which included eight private variables - firstN - lastN - idNum -wage: holds how much the person makes per hour -weekHrsWkd: holds how many total hours the person worked each week. - regHrsAmt: initialize to a fixed amount of 40 using constructor. - regPay - otPay After going over the regular hours, the employee gets 1.5x the wage for each additional hour worked. Methods: -...
An employee whose regular hourly rate is $20 and whose overtime rate is 1.5 times the regular rate worked 44 hours in one week. In the payroll register, the employer should record an overtime premium of
please show work!!!! Part 2, Instructions: Read the information below and use this to answer question 9-11 on page 8 Section 9. OVERTIME Pursuant to the provisions of the Fair Labor Standards Act, non-exempt employees shall be paid overtime at their appropriate rate of not less than one and one-half(1 %) times their rate of pay for each hour worked in a work period in excess of the maximum hours allowable, which are applicable to the type of employment in...
Calculate Payroll K. Mello Company has three employees-a consultant, a computer programmer, and an administrator. The following payroll information is available for each employee: Consultant Computer Programmer Administrator Regular earnings rate $2,710 per week $34 per hour $50 per hour Overtime earnings rate Not applicable 2 times hourly rate 1.5 times hourly rate Federal income tax withheld $910 $252 $500 For hourly employees, overtime is paid for hours worked in excess of 40 hours per week. For the current pay...
use at least two functions in your program. . Write a program that calculates weekly payment. The program will ask the user full name, ID number (make one up), and hours worked. An hourly worker’s gross pay is basically his/her work hours that week multiplied by his/her regular hourly pay rate. However, after the first 40 work hours of the week, each additional work hour is paid at an overtime rate that is 1.5 times of the regular hourly rate....
Weekly rate ($1,827 x 12)/52-$421.615 rounded to $421.62 Hourly rate $421.62/40 $10.540 rounded to $10.54 OT. rate $10.54 x 1.5 $15.81 se the minimum hourly wage of $7,25 in solving these problems eand all that follow Example 2-7 Joanne French works a 40-hour week at S 12.40 an hour with overtime hours paid at 1 ½ times the regular rate Regular weekly earnings are The overtime rate is Ir French works 4 hours overtime, additional earnings for the 4 hours...