Question
C# : Develop a WPF application that has a button to calculate an employees weekly pay, given the number of hours worked. An employee should
C# :
Develop a WPF application that has a button to calculate an employees 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 employees 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 users earnings for the regular 40 hours of work to calculate the total earnings for that week.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started