Lab Exam #2 – EmployeeReport You have been asked to produce the report below. You work for the Leoniy Web Development Company. You need to create a report on newly hired employees. Your report needs...

add comments to each line of code


Lab Exam #2 – EmployeeReport You have been asked to produce the report below. You work for the Leoniy Web Development Company. You need to create a report on newly hired employees. Your report needs to display the employee’s first name, last name, salary, and bonus. Each employee’s bonus will be based on the commission percent they were hired with. This report will tell the company how much each employee’s bonus will be at the end of the year. You will ask the user to input the following values: first name, last name, salary, and commission percent. Your program must include a loop that prompts the user to input the 3 employee's and their corresponding information. Each time the user enters employee information, it should pass the values to a method to calculate the below items and print the report. Name your class "EmployeeReport". · Use a minimum of 3 methods. · Use printf to display currency with $ and 2 decimal places. ALL CURRENCY MUST BE DISPLAYED WITH $ and 2 decimal places! · Must use a loop to get data from user. · Make sure to include all required heading elements in your Eclipse program. The below data must be entered by user (ie: scanner). “John” ---> is the employee’s first name, "Hopeful" is the employee’s last name, "40000" is ---> the employee’s salary, “.05" is ----> employee’s commission percent. Continue to enter the below data. Run the below report based on this data. NO HARDCODING OF VALUES ALLOWED or 0. ------------------------------------------------------------------------------------------------------------------------------ John Hopeful 40000 .05 Rita Thankful 60000 .03 Frank Grateful 70000 .04 Employee Report First Name Last Name Salary Commission Bonus -------------- -------------- -------- ---------------- -------------- Total Bonus Amount: BONUS: (5 pts). The total line (Total Bonus Amount) will tell the company the total bonus amount for all 3 employee’s. Total Salary Amount: (5 pts). Add another column in the report that displays each employee’s salary amount = (salary + bonus). Bonus = (salary x commission percent).
Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here