Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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).

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91972436

Have any Question?


Related Questions in Computer Engineering

A student finds that 2496g of water at 249 ordmc density

A student finds that 24.96g of water at 24.9 ºC (density= 0.9971 g/cm3 ) is required to completely fill an empty flask. The water is removed and completely dried; granular solid copper weighing 51.24g is then added to th ...

What are some examples of marketing activities that are

What are some examples of "marketing" activities that are associated with the Summer Olympics? How does global marketing and the use of new digital marketing techniques facilitate marketing activities at the Olympics in ...

Suppose you have two algorithms blarg and wibble with time

Suppose you have two algorithms, blarg and wibble, with time complexity ?(n log n) and ?(n) respectively. blarg modifies the input, while wibble just checks something about the input and returns True or False. You write ...

Question using an organization of your choicedevelop a

Question: Using an organization of your choice: Develop a Complete Disaster Recovery Plan to be submitted to the executive board of your company. Please note that this is a formal writing, all references (peer-reviewed) ...

Diacussion 1 how would one distinguish between an

Diacussion: 1) How would one distinguish between an organizational weekness and threat to the organization? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA for ...

What type of monopoly is sydney water describe the main

What type of monopoly is Sydney Water? Describe the main characteristics of this monopoly type in general and in relation to Sydney Water.

A compute the sumnbsps1nbsp 1 2 3 nbsp nbsp 9999 the sum

(a) Compute the sum S1 = 1 + 2 + 3 + . . . + 9999 (the sum of all integers from 1 to 9999). Do not use a program. (b) Compute the sum S2 = 1+3+5+...+9999 (the sum of all odd integers from 1 to 9999). Do not use a program ...

Question a swimmer is an athlete any athlete who

Question : A swimmer is an athlete. Any athlete, who participatedin the 2016 Summer Olympics and won a gold medal, was joyful. Any athlete, who is the world top athlete or a selected well-trained athlete, participatedin ...

A bird is flying around the world at a rate of 256ftmin how

A bird is flying around the world at a rate of 25.6ft/min. How many weeks will it take to compete it's journey if the circumference of the earth is25,000 miles using factor label method.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As