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

  A local company owns three 3d printers

A local company owns three 3D printers installed in its three different branches. Clients can call the company and reserve the use of one printer for some hours.

  Consider that the size of the hash tab is m=16. apply linear

Consider that the size of the hastable is M=16. Apply linear probing with f(i)=i for the following keys. Convert each of the keys to a number associated with the sequence of English alphabet and then draw a table that indicates successful and unsucce..

  Singly linked list

Singly Linked List (SLL)Introduce a SLL class with the following functions. Please also introduce a main function that will invoke and verify whether the functions are implemented correctly

  An embedded system is a computer system performing

an embedded system is a computer system performing dedicated functions within a larger mechanical or electrical system.

  Data mining algorithms

Assess the reliability of the data mining algorithms. Decide if they can be trusted and predict the errors they are likely to produce. Analyze privacy concerns raised by the collection of personal data for mining purposes

  Create an array of peoples first names

Create an array of people's first names. Using a loop, read the names from a text (txt) file, and store each one into the array. The array should allow for a maximum of 100 entries.

  Show the postfix expressions

An infix expression is one in which operators are located between their operands - Pop the stack elements and add them to the queue (PostQueue) one by one until the top of the stack has an element of lower precedence

  Choose a combination of meaningful data structures

Describe a mechanism to access the telephone customer records by telephone #. Assume that we have a huge data in hand, say a million records or so.

  Create a two-d array puzzle that will find the given words

Create a 2d array puzzle that will find the following words; this, two,fat,that. void findwordUtil(char puzzle[R][C], bool visited [R][C], inti, int j, string & string)

  Write a function called maxsubsum that takes a matrix a

Write a function called maxsubsum that takes a matrix A as an input, computes the sum of elements in each of its submatrices, and finds the submatrix that has the maximum sum

  Algorithm on dynamic programming-minimize amount of walking

Our goal is to plan this trip so that we minimize the maximum amount of walking done in a single day. Your algorithm should be based on dynamic programming and run efficiently.

  What is the time complexity of the algorithm

what is the time complexity of the method and what is the time complexity of the algorithm - what is the time complexity of the binarySearch

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