1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kolbaska11 [484]
4 years ago
8

Write a Java program that calculates and prints the monthly pay check for an employee. The net pay is calculated after taking th

e following deductions:
Federal Income Tax: 15%
State Tax: 3.5%
Social Security Tax: 5.75%
Medicare/Medicaid Tax: 2.75%
Pension Plan: 5%
Health Insurance: $75.00
Computers and Technology
1 answer:
ycow [4]4 years ago
8 0

Answer:

  import java.util.Scanner;

public class salary{

    public static void main(String []args){

       

       System.out.println("Enter the monthly pay: ");

       Scanner scn = new Scanner(System.in);

       double salary = scn.nextDouble();

       double result = salary-(salary*0.15*0.035*0.0575*0.0275*0.05)-75;

       

        System.out.println("The net salary is: "+result);

    }

}

Explanation:

first import the Scanner class for taking the input from user.

then, create the main function and print the message for enter the salary from user.   scn.nextDouble() store the value enter by user into the result.

after that, calculate the net salary by calculating the deduction amount and then subtract with salary.

finally, print the result on the screen.

You might be interested in
A draft has the following:<br> Plot<br> Details<br> Transition Words<br> Important events in order
exis [7]
What do you have to do?
7 0
3 years ago
You're using disk management to view primary and extended partitions on a suspect's drive. the program reports the extended part
kodGreya [7K]

The best assumption to make is that there is a hidden partition and the drive needs to be further searched.

5 0
3 years ago
In Word, a red wavy underline indicates a/an
insens350 [35]
It's B. grammar errors are blue and autocorrect suggestions produce a small dialog box. I'm unsure what D is, but it's not an underline.
6 0
3 years ago
Computer viruses and coding books
timofeeve [1]
Is there a picture to go along with this? I don’t see one and an willing to help!
3 0
3 years ago
Which program can damage your computer? can cause damage to my computer.
svetlana [45]

Answer:

Malware is designed to cause damage to a stand alone computer or a networked pc. So wherever a malware term is used it means a program which is designed to damage your computer it may be a virus, worm or Trojan.

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • Someone please help! Please fill this out
    10·1 answer
  • Which command is used to combine two or more cells together into one cell?
    14·2 answers
  • The Go To feature can be accessed from which of the following dialog boxes?
    10·1 answer
  • Should organizations fear websites where consumers post negative messages about products or services? What actions can companies
    12·1 answer
  • Which of the following is a scam in which a perpetrator sends an official looking e-mail that attempts to obtain a user’s person
    7·2 answers
  • In what stage of an algae or fungi life cycle are they able to reproduce spores?
    10·1 answer
  • Find the volume of the rectangular prism.<br>1<br>6 cm<br>32<br>cm​
    14·1 answer
  • PLZ HELP !!!!! <br> plzzzz
    6·1 answer
  • Custom actions help your users by
    6·1 answer
  • Which type of information should never be given out on social media?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!