Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

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

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
635f95c86741f_231745.pdf

180 KBs PDF File

Word file Icon
635f95c86741f_231745.docx

120 KBs Word File

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

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions

Question

Every real number is either a/an number or a/an_______ number.

Answered: 1 week ago

Question

What is a forex swap? Explain how it works.

Answered: 1 week ago

Question

List noteworthy changes that were implemented in DSM-5.

Answered: 1 week ago

Question

What are conversion costs? What are prime costs?

Answered: 1 week ago