Question

Develop a WPF application that has a button to calculate an employee’s weekly pay, given the...

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. Salary for time and a half is calculated by multiplying the employee’s hourly wage by 1.5 and multiplying the result of that calculation by the number of overtime hours worked. This value is then added to the user’s earnings for the regular 40 hours of work to calculate the total earnings for that week.

Using Visual Studio 2019

0 0
Add a comment Improve this question Transcribed image text
Answer #1

EMplOyee.cs useng System useng system.cOllections. Generic useng system-1ingc useng system Text ; useng Syptem. Threading. TOLOSENAME = fname a ges Age rate = Con-Rate HOcoscoorked HOs G2 RDS O POBIIC double calcc) ai-CHOrs worked - default horo cratUseng system.windaos. Input osing system. coidous. Media using sstem. windoos. Media. zmnaging; using system. winoas. NavigatN2 BAdto 8 PA320 Form Design a dorm textbaxes and labelry tor fast name, last name, age, consultiy butten to Designing rate,After tEling the details of empIOyee in theior respective text box and click the calculation bcutten. Main windOD Farst Name

Add a comment
Know the answer?
Add Answer to:
Develop a WPF application that has a button to calculate an employee’s weekly pay, given the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Program Description: Write the pseudocode for a program that will calculate and display an employee’s gross...

    Program Description: Write the pseudocode for a program that will calculate and display an employee’s gross pay. Input the number of hours an employee worked for each of the 5 days of the week. Add them all up to get his hours worked for the week. Weekly Pay is calculated by adding an employee’s normal pay plus any overtime pay. Normal hours are paid at $10/hr. Any over time is paid at $15/hr. Any hours over 40 are considered overtime....

  • Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate...

    Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate hourly rates and overtime rates as follows: 1. Carry the hourly rate and the overtime rate to 3 decimal places and then round off to 2 decimal places (round the hourly rate to 2 decimal places before multiplying by one and one-half to determine the overtime rate). 2. If the third decimal place is 5 or more, round to the next higher cent. 3....

  • COMPUTING OVERTIME RATE OF PAY AND GROSS WEEKLY PAY Mike Fritz receives a regular salary of...

    COMPUTING OVERTIME RATE OF PAY AND GROSS WEEKLY PAY Mike Fritz receives a regular salary of $3,250 a month and is paid 1½ times the regular hourly rate for hours worked in excess of 40 week. per (a) Calculate Fritz's overtime rate of pay. (Compute to the nearest half cent.) (b) Calculate Fritz's total gross weekly pay if he works 46 hours during the week.

  • 1.) Write a code in Python to Calculate weekly pay with overtime for an hourly employee...

    1.) Write a code in Python to Calculate weekly pay with overtime for an hourly employee (if number of hours exceed 40, then the hourly rate goes up by 50% of the usual hourly rate; the user will provide the hourly rate and the number of hours worked)

  • Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate...

    Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate hourly rates and overtime rates as follows: 1. Carry the hourly rate and the overtime rate to 3 decimal places and then round off to 2 decimal places (round the hourly rate to 2 decimal places before multiplying by one and one-half to determine the overtime rate). 2. If the third decimal place is 5 or more, round to the next higher cent. 3....

  • • Stephen Curry, a manager at Oracle Arena, earns $745 for a fluctuating workweek. For overtime...

    • Stephen Curry, a manager at Oracle Arena, earns $745 for a fluctuating workweek. For overtime work, one-half times the regular rate beyond the 40 hours is paid. 3 hours of overtime was worked. Fluctuating Hours Total Standard Pay $ Overtime Hours Rate $ Variable Overtime Pay Fluctuating Workweek Gross Earnings $ • Assume instead that Stephen's employer pays based on a 40-hour workweek. Again, weekly earning are $745 and 3 hours overtime were worked. Fixed Salary Hours Regular Total...

  • Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate...

    Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate hourly rates and overtime rates as follows: 1. Carry the hourly rate and the overtime rate to 3 decimal places and then round off to 2 decimal places (round the hourly rate to 2 decimal places before multiplying by one and one-half to determine the overtime rate). 2. If the third decimal place is 5 or more, round to the next higher cent. 3....

  • use at least two functions in your program. . Write a program that calculates weekly payment....

    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....

  • A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who...

    A company pays its employees as managers (who receive a fixed weekly salary), hourly workers (who receive a fixed hourly wage for up to the first 40 hours they work and “time-and-a-half,” i.e. 1.5 times their hourly wage, for overtime hours worked), commission workers (who receive $250 plus 5.7% of their gross weekly sales), or pieceworkers (who receive a fixed amount of money per item for each of the items they produce-each pieceworker in this company works on only one...

  • Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate...

    Note: In this chapter and in all succeeding work throughout the course, unless instructed otherwise, calculate hourly rates and overtime rates as follows: 1. Carry the hourly rate and the overtime rate to 3 decimal places and then round off to 2 decimal places (round the hourly rate to 2 decimal places before multiplying by one and one-half to determine the overtime rate). 2. If the third decimal place is 5 or more, 'round to the next higher cent. 3....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT