Necessary attributes and methods

Assignment Help Basic Computer Science
Reference no: EM132215064

Design an Employee class that contains the necessary attributes and methods. In the main method of the Payroll class, allow the user to run the salary computations as many times as they wish (in a while loop). We will reuse the same Employee object reference in the loop. Right after an employee's information is entered, display the employee information and computed values (gross pay, tax amount, and net pay) for that employee. When the user indicates to end the loop (either using -1 or "quit"), compute and display the average gross pay for the employees entered (you will need to make variables for total and count in your main method to compute this).

Include error checking for numeric inputs where you feel appropriate.

Reference no: EM132215064

Questions Cloud

How do often traditional distractions compare to cell phone : how do often traditional distractions compare to cell phone use in their effects on driving (such as eating, attending to children, talking to passengers
What would you to detect and remove the threat : What would you to detect and remove the threat. This is a zero day attack, so there is no "commercial" solution. You are on your own.
Type of computing device would you recommend : Your brother is a video producer and is looking to buy some sort of new computing device.
Develop a plan of action with a counselor : Discussion: While the mother has every right to protect her daughter, this is a situation where the daughter is at an age where she should know the truth.
Necessary attributes and methods : Design an Employee class that contains the necessary attributes and methods. In the main method of the Payroll class
How did immigration affect the culture of the united states : How did the Woman's Christian Temperance Union, Knights of Labor, and National Farmers Alliance want to improve America?
Impact of non-compliance to an organization standard : After establish a framework for managing risk, briefly explain the impact of non-compliance to an organization standard.
Prepare a shortened version of your final paper : Step 1: Prepare a shortened version of your Final Paper (at least four pages) by including the following: Introduction paragraph and thesis statement.
Discuss about the capitalist mode of production : Identify some of the key differences and similarities between Adam Smith's account of "commercial society," Karl Marx's theory of the "capitalist .

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Executive summary and report

Read the Cyber Risk Report 2015 - Executive Summary and Report (Hewlett Packard, 2015), and the article Surveillance programs may cost US tech over $35 billion and its competitive edge (Taylor, 2015).

  Compose the three parts of a complete email message

Write a GUI application for java for the WebBuy Company that allows a user to compose the three parts of a complete email message: the "To:", "Subject:" and "Message:" text. The "To:", and "Subject:" Text areas should provide a single line for dat..

  Write a graphics program that draws 12 strings

Write a graphics program that draws 12 strings, one each for the 12 standard colors, besides Color.WHITE, each in its own color. Provide a class ColorNameViewer and a class ColorNameComponent.

  What is tpm

What is TPM? Trusted Computing Group Note: Include a discussion of TPM as a specification vs. TPM as an implemented product/system. Also include discussion of current specification,

  Describe the process of ood

Splash Screen. When the program first fires up, have it print a short introductory message about the program and buttons for "Let's Play" and "Exit." The main interface shouldn't appear unless the user selects "Let's Play."

  Display the output to the screen

Students, particularly those in elementary school, sometimes have to make a line such as "I will not chew gun in class." on the board a number of times.

  Describe what pr recommendations

Describe what PR recommendations you would have for Taylor Swift if you were her Public Relations Consultant.

  Decision-making processes between groups and individuals

Submit a paper in which you compare and contrast the decision-making processes between groups and individuals. Support your work with practical examples and your own observations.

  Prompts the user for a hexadecimal digit

Write a MIPS program that prompts the user for a hexadecimal digit and then displays the decimal equivalent multiplied by 2. For example, the program displays 10 for hex '5', 20 for 'A', etc. If the user enters an invalid value, the program should di..

  How many give us a perfect matching

how many give us a perfect matching? Give a simple test for distinguishing those orders that do give the perfect matching from those that do not.

  What are the argument for allowing music to be shared freely

What changes have occurred in data compression since this book was written? What are the arguments for allowing music to be shared freely over the Internet?

  Add a smooth filter that smoothes the image

You can easily obtain a copy of the image by creating a new OFImage with the original as the parameter to its constructor.

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