make a payroll application that will have a group box titled Payroll Information. The group box will have textboxes and labels for the user to enter the following information: Employee ID, Employee Name, Hourly Rate, and Weekly Hours Worked. There will also be a Submit and Display button (see left side on example form below). On the opposite side of the form you will need a heading and 2 labels for each of the following: Employee ID, Employee Name, Hourly Rate, Weekly Hours Worked, Overtime Hours Worked, Overtime Pay, Gross Pay, Social Security, FICA, and Net Pay. (see right side on example form below) There should also be a functional button for Clear (clears textboxes and non-identifying labels) and Exit.You should include a class called Payroll that creates private variables for id, name, wage, hours worked, social security Tax, FicaTax, gross pay, net pay, overtime hours and overtime pay. You should also have a private constant for Social Security Tax Percentage set to 6.2% and Fica Tax Percentage set to 1.45%. Use a class constructor to set all the variable (not constants) values (except name and id) to 0.0. Create setters sub procedures and getters functions for each of the variable values. You will need a getter function for the 2 constants as well. Validation: Make sure only numbers can be put into the id field. Make sure only numbers and decimals can be put into the hours and rate fields. (You can use the Key Press event for this) Submit button will do all calculations. Calculations: Overtime Pay = If hours are greater than 40 then overtime pay will be hours over 40 X rate X 1.5.   Gross Pay = Hours worked * rate + overtime pay Fica = Gross Pay * Fica Percentage (constant) Social Security = Gross Pay * Social Security Percentage (constant) Net Pay = Gross Pay – Fica – Social Security Set all decimal values to currency with 2 decimal

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

make a payroll application that will have a group box titled Payroll Information. The group box will have textboxes and labels for the user to enter the following information: Employee ID, Employee Name, Hourly Rate, and Weekly Hours Worked. There will also be a Submit and Display button (see left side on example form below).
On the opposite side of the form you will need a heading and 2 labels for each of the following: Employee ID, Employee Name, Hourly Rate, Weekly Hours Worked, Overtime Hours Worked, Overtime Pay, Gross Pay, Social Security, FICA, and Net Pay. (see right side on example form below)
There should also be a functional button for Clear (clears textboxes and non-identifying labels) and Exit.You should include a class called Payroll that creates private variables for id, name, wage, hours worked, social security Tax, FicaTax, gross pay, net pay, overtime hours and overtime pay. You should also have a private constant for Social Security Tax Percentage set to 6.2% and Fica Tax Percentage set to 1.45%. Use a class constructor to set all the variable (not constants) values (except name and id) to 0.0. Create setters sub procedures and getters functions for each of the variable values. You will need a getter function for the 2 constants as well.
Validation: Make sure only numbers can be put into the id field. Make sure only numbers and decimals can be put into the hours and rate fields. (You can use the Key Press event for this)
Submit button will do all calculations.
Calculations:
Overtime Pay = If hours are greater than 40 then overtime pay will be hours over 40 X rate X 1.5.  
Gross Pay = Hours worked * rate + overtime pay
Fica = Gross Pay * Fica Percentage (constant)
Social Security = Gross Pay * Social Security Percentage (constant)
Net Pay = Gross Pay – Fica – Social Security
Set all decimal values to currency with 2 decimal places.

Payroll Entries
Fayral Homation
ACME PAY STUB
Empioyee ID
Enployee ID
Erpleyne Name
Enployee Nane:
Hourty Rate
Houty Rete
Weekly Houn Woked
Weekly Houn Worked
Overtime Hun Worked
Sbet and
Declay
PayS
Ovetime Pay
Grosa Pay
Social Secuty Wthheid:
FICA Weheld
Net Pay:
Dear
Vou shouuld include a class called Pavroll that creates private varigbles for id name wooe
Transcribed Image Text:Payroll Entries Fayral Homation ACME PAY STUB Empioyee ID Enployee ID Erpleyne Name Enployee Nane: Hourty Rate Houty Rete Weekly Houn Woked Weekly Houn Worked Overtime Hun Worked Sbet and Declay PayS Ovetime Pay Grosa Pay Social Secuty Wthheid: FICA Weheld Net Pay: Dear Vou shouuld include a class called Pavroll that creates private varigbles for id name wooe
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education