Write a java application that prompts a user for a fist name

Assignment Help JAVA Programming
Reference no: EM131578879

Write a Java application that prompts a user for a fist name and a last name, and then asks if a user is a company's employee. If positive - prompt for an hourly pay rate and hours worked. Compute the gross pay (hours times rate), withholding tax, and net pay ( gross pay minus withholding tax). Withholding tax should be computed as percentage of gross pay based on the following scale:
Gross Pay
Withholding Percentage
0 to 300.00
8%
300.01 to 400.00
10%
400.01 to 500.00
12%
500.01 and over
15%
Display the user's name (first and last), hourly rate, hours worked, withholding tax percentage, withholding tax and gross pay.
When a user is not an employee - display the proper message on that and terminate the application.
Use logical AND and OR operators when designing the logic of the application.
Save the file as ComputePay.java.
Note: if preferred you can use JOptionPane input dialog instead of the Scanner class.

Reference no: EM131578879

Questions Cloud

Access the interactive media piece : Access the interactive media piece, "Social, Behavioral, and Cultural Factors in Public Health: Increasing Cultural Competency."
Problem related to the game show : You are a contestant in the game show "Let's make a Deal." In this game show, there are three curtains. Behind one of the curtains is a new car.
What is the best business model for the small business : What is the best business model for the small business or startup you have chosen? Briefly describe three different business models.
What types of barriers-disparities existed : Reflecting on your childhood, what types of barriers/disparities existed that limited your ability to lead a healthier life?
Write a java application that prompts a user for a fist name : Write a Java application that prompts a user for a fist name and a last name, and then asks if a user is a company's employee.
Write program that prompts the user to enter the first digit : Write a program that prompts the user to enter the first 9 digits and displays the 10 digit ISBN( including leading zeros) . Your probram should read the input
Compute the variance for the number of right answers : Compute the variance for the number of right answers when we answer one question with probability .8 of getting the right answer.
Write an application that prompts an employee : Write an application that prompts an employee for an hourly pay rate and hours worked. Compute gross pay (hours times rate), withholding tax, and net pay
Discuss the system''s characteristics : discuss the system's characteristics, its application and use in that society

Reviews

Write a Review

JAVA Programming Questions & Answers

  Courier delivery problem

In your program design, make use of the Strategy pattern to supply heuristic to the search procedure - Create all your Java source files in the default package

  Determine the required experience level

Design programs that conform to given specifications - to practise combining multiple classes and methods into a whole program

  Declare a string variable named empty

Declare a string variable named empty, and initialize it to the empty string.

  Implement avl trees that allows both iterative traversal

implement avl trees that allows both iterative traversal and recursive traversal.iterative traversal is fairly easy if

  Modify existing javascript code to extend its functionality

Modify existing JavaScript code to extend and alter its functionality and, where appropriate, to correct errors and cases of poor practice.

  Creates a new set of animals

When a user creates a new set of animals, they need to be able to add an animal to the set.  They should also be able to update and delete animals in the set.  The organizer should only show one set of animals at a time

  Write prolog clauses to express therelationships

Write prolog clauses to express the following relationships, given the parent relationship: grand-parent, sibling, cousin.

  Statement that creates and initializes a static variable

Write a statement that creates and initializes a static variable named salesTax to 7.59. Write a statement that creates a constant variable named TAX_RATE. The tax rate is 8.25%

  Program that initializes an array with ten random integers

Write a JAVA program that initializes an array with ten random integers and then prints four lines of output, containing

  List two or three topics of java programming

Explain their importance and give an example of each. List two or three topics you need to work on to better understand their concepts

  The letters of the alphabet a through z

The letters of the alphabet A through Z can be represented in Morse code. Each letter is represented by a combination of up to four dots and/or dashes, as shown below. Use Java to write and run a console-window program that can convert an English ..

  Java graphics-write an application that extends jframe and

java graphics-write an application that extends jframe and that displays a phrase in every font size from 6 through

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd