Calculate employees raise based on performance rating

Assignment Help Data Structure & Algorithms
Reference no: EM131216463

Programming ASSIGNMENT

Algorithms and Output Specification

Implementation Details for an Employee's Raise and Tax calculation

This program should be implemented using only one class named Assignment3. The program must contain a main method only.

The program should give two options to the user:

1. Calculating the raise for an employee, which will be based on employee's performance
2. Calculating the tax for an employee

Main Menu Display

As the program starts, a menu is to be displayed which gives two options to the user:

Choose from an option below (1 or 2):

1. Calculate raise for an employee
2. Calculate tax for an employee Your choice:

The user will enter a number, either 1 or 2.

After the user enters a valid action your program will use a switch statement to go to the appropriate case.

1. Calculate Raise for an employee

The first option is to calculate raise for an employee.

a. Ask the user and read an employee's annual salary

Enter current annual salary of employee:

b. Ask the user and read an employee's performance rating

Enter the performance rating (Excellent, Good, or Poor):

c. Calculate employee's raise based on performance rating

For excellent performance, employees get a 6% raise on their current salary
For good performance, employees get a 4% raise on their current salary
For poor performance, employees get a 1.5% raise on their current salary

d. Calculate new salary of employee by adding the raise to their current salary

e. Display the amount of raise and new salary for employee (Format the amounts to display as currency). Hint: Use getCurrencyInstance() from NumberFormat class

2. Calculate Tax for an employee

The second option is to calculate tax for an employee.

a. Ask the user and read an employee's annual salary

Enter current annual salary of employee:

b. Calculate employee's tax based on the following tax bracket For salary in the range (100000, 150000]

Tax is computed as: tax = (currentSalary - 100000) * 0.1 For salary in the range (150000, 250000],
Tax is computed as: tax = 5000.0 + (currentSalary - 150000) * 0.2 For salary > 250000,
Tax is computed as: tax = 25000.0 + (currentSalary - 250000) * 0.3

c. Display the amount of tax for employee (Format the amounts to display as currency).

Reference no: EM131216463

Questions Cloud

Which of the following best describes bob change of role : Mark, an HR manager, is responsible for the HR planning process in his organization. He has reviewed the organization's strategic plans. Which of the following is most likely to be Mark's next step in the planning process?
Make purchasingthe product more pleasing and rewarding : Which type of diferantation refers to companies sucessfully desing their distribution medium's exposure,proficiency,and perfomanceto make purchasingthe product more pleasing and rewarding?
How central authentication be handled in linux environment : How will central authentication be handled in the Linux environment. How will printing be handled? Explain. How can shared files be encrypted. Determine the hardware to be used and the installation options.
Audit program for the bsf ltd : HI6026 AUDIT, ASSURANCE, AND COMPLIANCE - Discuss the steps that you need to consider before accepting to do an audit and apply them to BSF Ltd and discuss what should be included in an audit program for the BSF Ltd.
Calculate employees raise based on performance rating : Calculate employee's raise based on performance rating. For excellent performance, employees get a 6% raise on their current salary. For good performance, employees get a 4% raise on their current salary.
Identify the key stakeholders in the government : Act as the Council members and provide important leadership considerations for the mayor in preparing to implement the water sustainability plan. In building a stakeholder power base, consider stakeholders in the city government. Once you identify..
Discussing the operating budget and variance analysis : ACC 202: Final Project Budget Variance Report. In your opening paragraph, very briefly introduce the purpose of your paper. Recall that you will be discussing the operating budget and variance analysis as explained in your rubric instructions. Thre..
Conduct research on ais - erp systems : HI5019 STRATEGIC INFORMATION SYSTEMS - Conduct research on AIS/ERP Systems for your client, including define business processes, develop business requirements, determine the systems requirements, software selection and vendor selection.
How analysis guided decision making and results of change : Basically what happened and reaction to news story that is digital media focused. Influence or change to organization, how analysis guided decision making and results of change. This is again on an organization (business) or an individual.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  What are the bivalent input configurations of the algorithm

Is a decision for v possible if exactly (N - t)/2 processes start the algorithm with input v? What are the bivalent input configurations of the algorithm?

  Write down a cumulative 10- to 12-page paper incorporating

write a cumulative 10- to 12-page paper incorporating your prior work. solve the design problems of your virtual

  Design a class that keeps track of a student food purchases

Design a class that keeps track of a student's food purchases at the campus cafeteria. A meal card is assigned to an individual student. When a meal card is first issued, the balance is set to the number of points. If the student does not specify ..

  Server of local hospital to support remote access

Explain the file system that will be installed in the server of your local hospital to support remote access of data through the hospital's doctors while they are using their mobile equipments such as cellular phones or PDAs.

  Question about character array

The 2-most important design issues that are specific to character string types are the given, Should strings be simply a special kind of character array or a primitive type?

  Explain computer algorithms and its significance

Explain computer algorithms and its significance. Explain some of the technologies that have contributed to the exponential growth of the Internet and the World Wide Web (WWW).

  Describe the fft algorithm based on chirp signal

Describe the FFT algorithm based on chirp signal - Write computer code to implement the FFT on chirp signal.

  Write algorithm to calculate the volume of water

Write an algorithm to calculate the volume of water in cubic feet, flowing through pipe of diameter d in feet, with a velocity of v feet per second.

  How do you know your article choice is credible

Explain how you were able to narrow down the number of article hits you had initially, and present within your post a summary of the credible article you chose as your resource. How do you know your article choice is credible? Which database do yo..

  Water resources engineering

The current practice of a particular part of water resources engineering is supported through a variety of commercial software. Pick a specific domain within water resources engineering.

  Design a flow chart to provide a visual representation

Design a flow chart to provide a visual representation of the interconnections between the histories of ECEC and how it has evolved to current pedagogy and practice

  Using b-tree of order three shown in figure add given number

Using the B-tree of order 3 shown in Figure, add 50, 78, 101, and 232. Using the B-tree of order 3 shown in Figure, delete 63, 90, 41, and 60. Using the B-tree of order 3 shown in Figure, add 50, 78, 101, and 232.

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