C++ PROGRAMMING PROBLEM: A company compensate its workers on a commission basis. A worker receives an amount of $1500 per week plus 6 percent of their sales for that week. (Ex. sales of worker is $10000, commission would be $1500 + 6% of $10000 which is $600 for a total of $2100 commission.). Write a program (using an array of counters) that determines how many of the workers earned salaries in each of the following ranges (assume that each worker's salary is abbreviated to an integer amount):

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
C++ PROGRAMMING PROBLEM:
A company compensate its workers on a commission basis. A worker receives an amount of $1500
per week plus 6 percent of their sales for that week. (Ex. sales of worker is $10000, commission
would be $1500 + 6% of $10000 which is $600 for a total of $2100 commission.). Write a program
(using an array of counters) that determines how many of the workers earned salaries in each of
the following ranges (assume that each worker's salary is abbreviated to an integer amount):
a. $1500 to $2999:
b. $3000 to $4499:
c. $4500 to $5999:
d. $6000 to $7499:
e. $7500 to $8999:
f. $9000 to $:10499:
g. $10500 to $11999:
h. $12000 to $13499:
i. $13499 and over:
SPECIFICS:
- Use single script array for program
- Use array size of 50 for workers
- Must contain a comment or pseudocodes for all lines of code
- Make the code as basic as it can get
SAMPLE PROGRAM:
Enter worker sales (-1 to end): 200000
Worker commission is $13500
Enter worker sales (-1 to end): 75000
Worker commission is $6000
Enter worker sales (-1 to end): 50000|
Worker commission is $4500
Enter worker sales (-1 to end): 25000
Worker commission is $3000
Enter employee sales (-1 to end): -1
Employees in the range:
$1500 to $2999: 0
$3000 to $4499: 1
$4500 to $5999: 1
$6000 to $7499: 1
$7500 to $8999: 0
$9000 to $:10499: 0
$10500 to $11999: 0
$12000 to $13499: 0
$13499 and over: 1
Transcribed Image Text:C++ PROGRAMMING PROBLEM: A company compensate its workers on a commission basis. A worker receives an amount of $1500 per week plus 6 percent of their sales for that week. (Ex. sales of worker is $10000, commission would be $1500 + 6% of $10000 which is $600 for a total of $2100 commission.). Write a program (using an array of counters) that determines how many of the workers earned salaries in each of the following ranges (assume that each worker's salary is abbreviated to an integer amount): a. $1500 to $2999: b. $3000 to $4499: c. $4500 to $5999: d. $6000 to $7499: e. $7500 to $8999: f. $9000 to $:10499: g. $10500 to $11999: h. $12000 to $13499: i. $13499 and over: SPECIFICS: - Use single script array for program - Use array size of 50 for workers - Must contain a comment or pseudocodes for all lines of code - Make the code as basic as it can get SAMPLE PROGRAM: Enter worker sales (-1 to end): 200000 Worker commission is $13500 Enter worker sales (-1 to end): 75000 Worker commission is $6000 Enter worker sales (-1 to end): 50000| Worker commission is $4500 Enter worker sales (-1 to end): 25000 Worker commission is $3000 Enter employee sales (-1 to end): -1 Employees in the range: $1500 to $2999: 0 $3000 to $4499: 1 $4500 to $5999: 1 $6000 to $7499: 1 $7500 to $8999: 0 $9000 to $:10499: 0 $10500 to $11999: 0 $12000 to $13499: 0 $13499 and over: 1
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education