Question: Write a program that prompts the user to enter the name, the number of children, and the basic salary of an employee. The program
Write a program that prompts the user to enter the name, the number of children, and the basic salary of an employee. The program will then: Calculate the bonus: bonus = number of children * $25 Calculate the new salary: new salary = salary + bonus Apply a tax of 10% and find the paid salary: paid salary = new salary * (1 tax) The program will then display all the information needed as shown in the sample run below Sample Run: Enter the name of che employee: Jamal Enter the number of children of the employee: 4 Enter the salary of the employee (in $): 1500 The calculated bonus is $100 for 4 children. The new salary is $1600.0 The paid salary for Jamal is $1440.0
Step by Step Solution
3.40 Rating (159 Votes )
There are 3 Steps involved in it
Solution code import javautilScannerpackge to take the user input public class HelloWorld public sta... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
635f36f493d33_231686.pdf
180 KBs PDF File
635f36f493d33_231686.docx
120 KBs Word File
