Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1 A program is supposed to compute the commission for a salesperson's sales given the number of items sold and the total sales amount

image text in transcribed

Part 1 A program is supposed to compute the commission for a salesperson's sales given the number of items sold and the total sales amount according to the following rules: If the sales amount is less than $5000, the salesperson receives a 5% commission. If the sales amount is at least $5000, the salesperson receives a 7.5% commission If the number of items sold was at least 5 and the amount of the sale minus the commission is at least $20000, the salesperson receives bonus of $500. All sales amounts are in whole dollars, though commissions are not. The program is to print the total commission. If there was a bonus received, it also prints information about the bonus. Create test data for this program. One example has been done for you. You need to create three more. Pay special attention to edge cases. You will be using this data in lab. Inputs Expected Results Number Total Base Total Sale - Bonus? Total of Items Sales Commission Commission Commission Sold Amount 1 10 2000 100 1900 False 100 2 3 4

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_2

Step: 3

blur-text-image_3

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

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions