Question
Create a payroll program named CalcPay that allows the user to enter two double value sand a string namely hours worked, hourly rate and name.
Create a payroll program named CalcPay that allows the user to enter two double value sand a string namely hours worked, hourly rate and name. After the user enters the rate, hours, and name the program should calculate the gross pay.
Compute federal withholding tax which is subtracted from gross based on the following table: Use methods as deemed appropriate. 0 to 99.99 6% 100.00 to 299.99 12% 300.00 to 599.99 18% 600.00 and up 21%. Create an output using print format: the output should include: Name, hours, rate, deduct, gross and net.
Step by Step Solution
3.30 Rating (147 Votes )
There are 3 Steps involved in it
Step: 1
CalcPayjava import javautilScanner public class CalcPay public static void mainString args Declaring ...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 StartedRecommended Textbook for
An Introduction to Programming with C++
Authors: Diane Zak
8th edition
978-1285860114
Students also viewed these Databases questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App