Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Base Salary Commission Years 0-5 Base Salary $ 9,000 Sales Commission 0-$3,999.99 $1000 6-11 $12,000 $4,000.00 11,999.99 $2000 12-17 $15,000 $12,000.00 15,999.99 $5000 18-29

 

Base Salary Commission Years 0-5 Base Salary $ 9,000 Sales Commission 0-$3,999.99 $1000 6-11 $12,000 $4,000.00 11,999.99 $2000 12-17 $15,000 $12,000.00 15,999.99 $5000 18-29 >=30 $22,000 $16,000.00 23,999.99 $8000 $26,000 $24,000.00-27,999.99 $12,000 >=$28,000 $15,000 Your programs should prompt the user to enter employee's name, the number years the employee has worked at the company (store the years worked as a whole number), confirm that the user entered a number >= 0 (if not allow the user to enter again), then determine the base salary using an if-elif-else structure. Next your programs should prompt the user to enter the sales for the previous quarter (store the value as a floating point number) confirm that the user entered a number >0 (if not allow the user to enter again), then determine the commission using another if-elif-else structure. Once the base salary and commission had been determined, your program should sum these two values and display the total salary using a comma notation. Design your program to minimize the number of relational operators used. Store the results of arithmetic expressions in variables, do not include arithmetic expressions in print statements.

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

Recommended Textbook for

Advanced Accounting

Authors: Gail Fayerman

1st Canadian Edition

9781118774113, 1118774116, 111803791X, 978-1118037911

More Books

Students also viewed these Programming questions

Question

Explain briefly the benefits of using Java generics.

Answered: 1 week ago

Question

Is the sample selected related to the target population?

Answered: 1 week ago

Question

How does harmonization differ from convergence?

Answered: 1 week ago