Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago