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 the 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.51 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

import javautilScanner public class Main public static void mai... 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

635f95c86741f_231745.pdf

180 KBs PDF File

Word file Icon

635f95c86741f_231745.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!