Question
In this program assignment, you will construct a class PayCheck. Your program will be used to print paychecks for a group of student assistants. Your
In this program assignment, you will construct a class PayCheck. Your program will be used to print paychecks for a group of student assistants. Your class should contain at least the following: Three variables to represent the name, the hourly wage and hours worked. A method to deduct the federal and social security taxes. (find about social security tax rate on the Internet.) For simplicity, you may assume that both the federal and social security taxes use fixed rates. A method to print a paycheck in certain format. Static variables contain information like school name, tax rate, and/or other object-independent values. You should supply a main method (in the same OR different class) to test your program. The name, hourly wages and hours worked should be input to the program (standard input or command line argument), and the tax rates might be built-in values. Requirements: fully document your program(10 pts) well defined class PayCheck (30 pts): o appropriate public, private properties o appropriate per-class property o appropriate constructor(s) o method to adjust income based on tax rate and social security rate o method to print a payCheck At least two set of cases to test your construction. (10 pts)
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