Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

ISBN: 0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

=+2 Why are international employment standards important to IHRM?

Answered: 1 week ago

Question

=+1 Why are local employment laws important to IHRM?

Answered: 1 week ago