Display the proper message on that and terminate

Assignment Help Basic Computer Science
Reference no: EM131274851

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

Questions Cloud

Determining the loop-decision structure : Java program showing a Loop, Decision Structure, and an array for a company that sells school supplies to children and prints out a receipt in a console window for the user at the end.
Concerning the market test of the new cups and carriers : Concerning the market test of the new cups and carriers, I have a few suggestions that may be helpful, although the final decision is yours - During the third weekend we'll have someone make a survey at the store to determine its acceptance
What made the individuals professional : Describe and explain what you viewed. Answer the following questions in your response: Were the individuals professional? What made the individuals professional (consider attire, communication skills, presentation of self, etc.)?
Identify the resources required for implementation : Describe the range of available options from which a VPN solution can be selected. Identify the resources required for implementation.
Display the proper message on that and terminate : 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 ..
What is the di¤erence between cast iron and steels : What do A1, A3, and Acm temperatures refer to? Are these temperatures constant?
It personnel when it detects specific conditions : What kinds of alerts can you program your NMS to send to the IT personnel when it detects specific conditions?
Copy visio diagram into the word document : Create an ER diagram using Visio (copy Visio diagram into the Word document) for the following tables: oAIRPORT, MECHANIC, QUALIFICATION, SKILL.
Design a joining process that may minimize these problems : Describe what happens in the heat-affected zone of the weld and discuss the problems that might occur. Design a joining process that may minimize these problems.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a program that displays information about a rectangle

All input/output should be done in the Graphics Window. Formulas: area = (length)(width) perimeter = 2(length + width)

  What the router does with a packet addressed

Suppose a router has built up the routing table shown in Table 4.14. The router can deliver packets directly over interfaces 0 and 1, or it can forward packets to routers R2, R3, or R4. Describe what the router does with a packet addressed to each..

  How many liters are in a gallon

How many liters are in a gallon? How many pounds are in a gallon?

  What is best way to prepare for course in computer science

What is the best way to prepare for a course in computer science, which is specifically fundamentals in web development? I will begin to take this course in the spring of 2016.

  Write sequence of statements-find first comma in string line

Write down sequence of statements which finds first comma in the string line, and assigns to variable clause portion of line up to, but not including comma.

  Class automobile has a composite object

Assume that a definition of class Automobile has a composite object called my Engine. Also assuembers of class Engine me the all the data members of class Engine that contain information

  Create models of real-world objects

Using rendering tools with your solid modeling software, create models of real-world objects, and render them as realistically as possible.

  Search the internet for owasp

Define the acronym and locate the most current top 10 Web-application security risks

  Question regarding the member variable

Your class should have a constructor, one additional method and at least one member variable (e.g. boolean isOn to turn the item on or off). Be sure you demonstrate your class works properly by constructing an instance of it and calling your metho..

  Important to accomplishing corporate objectives

Having staff with the proper skill sets is immensely important to accomplishing corporate objectives. List and support three best practices in staffing future organizational needs.

  Design a nine-step counter to count

Design a nine-step counter to count in the following sequence using D flip-flops (TTL 74704) on a breadboard

  Describe an implementation of the method insert

Describe an implementation of the method insert for Array List that places the entry in position 1 in the last element of the array, the entry in position 2 in the next to-last element, and so on.

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