Question
Write a C# Program. Display an error message box if the hourly pay rate or hours worked textbox is empty when the Calculate pay button
Write a C# Program.
Display an error message box if the hourly pay rate or hours worked textbox is empty when the Calculate pay button is pressed.
Display an error message if a radio button is not selected when the Calculuate pay button is pressed.
Calculate pay amount based on which Pay Period is selected by the radio button and the hourly pay rate and hours worked amounts entered in the text boxes. ($10.00/hour = 400/week, $ 1,732/month , $20,800/year)
Use a label to display the Check Amount calculated.
Use a rich text box to display the output.
Please follow all directions:
Please implement a PayCheck class. You must pass the hours worked and hourly pay rate amount as paramaters in the class constructor. The constructor must also initialize all the tax rate variables. You must implement all the tax rate variables as Properties so that they may be easily changed if necessary.
You must have the following methods to calculate the various values. Federal Tax Amount, State Tax Amount, FDIC Tax Amount, Health Insurance Amount, Personal Saving Amount, Gross Pay Amount, Base Pay Amount, Over Time Pay Amount, And Check Amount. You may also need other methods as welll.
You may create the Pay Check object inside the CalculatePay_Clicked() method all call the necessary methods to calculate the various values.
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