Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a simple C++ program I need done according to the directions on the first page thank you! CSC 170 Homework #2-Part 2 Student

This is a simple C++ program I need done according to the directions on the first page thank you!
image text in transcribed
image text in transcribed
image text in transcribed
CSC 170 Homework #2-Part 2 Student Name Deadline: Monday, October 29 by class time. Problem Specification #1: ON SELECTION STRUCTURE Jonathan Price is the owner of a sporting goods company called JP Sporting Goods LLC that sells amongst other things, golf equipment both to domestic and international customers. He wants you to develop a program that displays the amount of his salesperson's commission based on their sales. (User will be prompted to enter this value) A commission is a percentage of the sales made by the salesperson. Some companies use a fixed ra calculate the commission, while others like JP Sporting Goods use a rate that varies with the amount of sales JP Sporting Good s commission schedule is shown below, along with examples of using the schedule to calculate the commission on different sales amount. Notice that the commission for each range schedule is calculated differently. in the The commission for sales in the first range is calculated by multiplying the sales by 2%. As Example 1 below shows, if the sales are $15,000, the commission is $300. The commission for sales in the second range is calculated by multiplying the sales over $100,000 by 5% and then adding $2,000 to the result. As Example 2 shows, if the sales are $250,000, the commission is $9,500. The commission for sales starting at $400,001 is calculated by multiplying the sales over $400,000 by 10%, and then adding $17,000 to the result. Example 3 indicates that the commission for sales of $500,000 is $27,000. If the sales do not fall in any of the sales ranges (in other words, they are less than O), the program should display the message: "The sales cannot be less than O. Sales Range Commission multiply the sales over 100,000 by 5% and then add 2,000 to the result multiply the sales over 400,000 by 10% and then add 17,000 to the result 001 and over .... " " " " " " " Example 1 Sales: $15,000 Commission: 15,000 02 300 /Pase

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions