Question
THIS IS TO BE PROGRAMMED USING JAVA TITLE OF PROGRAM: PAYROLL CALCULATION PROGRAM Write a payroll calculation program for a sales employee that has a
THIS IS TO BE PROGRAMMED USING JAVA
TITLE OF PROGRAM: PAYROLL CALCULATION PROGRAM
Write a payroll calculation program for a sales employee that has a salary and a commission of their sales. You need to ask the user for their name and the amount they sold this week. Once you have these two values from the user in variables in your program, calculate their pay for the week. Gross pay is equal to 1000 (salary for this week) + 6% of the sales amount.
Withhold 15% of their pay (for taxes and social security) and find their net pay. Finally print the gross pay, withheld amount, and the net pay with appropriate text telling the user what each number is. Note: You may want to skip the formatting placeholders because you will need to use doubles or floats as the data types here. If you do wish to use them, do not use %d (for your double) as its the one for an integer. Use %f as is shown in chapter 3. It is the same placeholder in a printf() for floats and doubles.
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