Write a program that will compute for the saleman's commission based from his total sales for the month. if total sales is Commission is above 0 but below 10,000 at least 10,000 but below 25,000 5% of total sales of total sales at least 25,000 but below 50,000 10% of total sales at least 50,000 but below 75,000 13% of total sales at least 75,000 but below 100,000 15% of total sales at least 100,000 otherwise 25% of total sales Input salesman's name and his total monthly sales. Print the computed commission.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 13PE
icon
Related questions
Question

C program

Description
Write a program that will compute for the saleman's commission based from his total sales for
the month.
if total sales is
Commission is
above 0 but below 10,000
at least 10,000 but below 25,000
at least 25,000 but below 50,000
at least 50,000 but below 75,000
at least 75,000 but below 100,000 15% of total sales
at least 100,000
otherwise
2% of total sales
5% of total sales
10% of total sales
13% of total sales
25% of total sales
Input salesman's name and his total monthly sales.
Print the computed commission.
Sample Output if Applicable
Transcribed Image Text:Description Write a program that will compute for the saleman's commission based from his total sales for the month. if total sales is Commission is above 0 but below 10,000 at least 10,000 but below 25,000 at least 25,000 but below 50,000 at least 50,000 but below 75,000 at least 75,000 but below 100,000 15% of total sales at least 100,000 otherwise 2% of total sales 5% of total sales 10% of total sales 13% of total sales 25% of total sales Input salesman's name and his total monthly sales. Print the computed commission. Sample Output if Applicable
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to computer system
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning