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 

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

1 Expert Approved Answer
Step: 1 Unlock

Solution code import javautilScannerpackge to take the user input public class HelloWorld public sta... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (2 attachments)

PDF file Icon

635f36f493d33_231686.pdf

180 KBs PDF File

Word file Icon

635f36f493d33_231686.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!