Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(I am using am using java. I am a begginer so there might imports or methods I don't know. Plz add begginer stuff. I am

(I am using am using java. I am a begginer so there might imports or methods I don't know. Plz add begginer stuff. I am stuck on the program.)

Employees at Sarahs Style Shop are to receive a year-end bonus. The amount of the

bonus depends on the employees weekly pay, their position code, and number of years

they have worked at the store.

Each employee is assigned a base bonus based on their code:

a. Code 1: One weeks pay

b. Code 2: Two weeks pay; maximum of $700

c. Code 3: One and a half weeks pay

This base bonus is adjusted based on the employees time with the store.

a. For less than two years, they are given one half of the base bonus

b. For more than 10 years experience with the store, they get an additional $100

added to their base bonus.

Your lab exercise is to implement a solution to the following problem in a program Class

called

BonusCalculator

that will allow for the entry of the needed information and will

then calculate the final bonus.

Your may compose your prompts and final results display in any style you choose, but

they must be neat, free of spelling errors, and show all of the needed data, which means

all data entered should be included on the final display.

You must give an introduction message (apart from user prompts) at the beginning of

the program to inform the user what the purpose of the program is.

Good programming style is expected. You earn points by solving the problem in the

required fashion, but you will lose points by neglecting the programming style that we

have discussed in each lab. This includes the following:

a. On user prompt, make sure you tell your user what to enter as well as give them

an example and if appropriate, a range.

b. It is highly recommended that you use the grade sheet as a check off list to make

sure you have included everything in your program. This is to get you used to

reviewing your own work and checking for inconsistencies. Attention to details is

a skill you will be using in your careers even if it has nothing to do with

programming.

c. Include at least three useful comments in your code.

d. The results for the total bonus must be rounded to the nearest dollar.

e. Test cases are on the following page

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions