Graded Task #2 (GT2): Computing Sales Commissions Using Functions Compro USER REQUIREMENTS: 1. Create a new project and name it gt2_- 2. Use the functions with parameter passing in accomplishing this task. 3. Create two functions: agentInfo() and computeComm() 4. The agentInfo() function should accept the following information from the calling function: first name, last name, middle name, department. 5. The computeComm() function should accept the sales from the calling function to compute the corresponding commission. 6. The commission is computed based on the following: Sales <5000 5001 - 15000 >15000 7. See sample output below. SAMPLE OUTPUT: Enter first name: Aaron Enter last name: Vergara Enter middle name: Mendoza Enter department: CS Enter sales: 4500.00 Name: Vergara, Aaron Mendoza Commission Rate: Php850.00 Commission Php850 Php1250 + 8% of the sales Php1700 + 15% of the sales

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 18PE
icon
Related questions
Question
Please answer the guide questions in the photo, thank you!
Graded Task #2 (GT2): Computing Sales Commissions Using Functions
Compro
USER REQUIREMENTS:
1. Create a new project and name it gt2_<section>-<lastname>
2. Use the functions with parameter passing in accomplishing this task.
3. Create two functions: agentInfo() and computeComm()
4. The agentInfo() function should accept the following information from the calling
function: first name, last name, middle name, department.
5. The computeComm() function should accept the sales from the calling function to
compute the corresponding commission.
6. The commission is computed based on the following:
Sales
<5000
5001 - 15000
>15000
7. See sample output below.
SAMPLE OUTPUT:
Enter first name: Aaron
Enter last name: Vergara
Enter middle name: Mendoza
Enter department: CS
Enter sales: 4500.00
Name: Vergara, Aaron Mendoza
Commission Rate: Php850.00
Commission
Php850
Php1250 + 8% of the sales
Php1700 + 15% of the sales
Transcribed Image Text:Graded Task #2 (GT2): Computing Sales Commissions Using Functions Compro USER REQUIREMENTS: 1. Create a new project and name it gt2_<section>-<lastname> 2. Use the functions with parameter passing in accomplishing this task. 3. Create two functions: agentInfo() and computeComm() 4. The agentInfo() function should accept the following information from the calling function: first name, last name, middle name, department. 5. The computeComm() function should accept the sales from the calling function to compute the corresponding commission. 6. The commission is computed based on the following: Sales <5000 5001 - 15000 >15000 7. See sample output below. SAMPLE OUTPUT: Enter first name: Aaron Enter last name: Vergara Enter middle name: Mendoza Enter department: CS Enter sales: 4500.00 Name: Vergara, Aaron Mendoza Commission Rate: Php850.00 Commission Php850 Php1250 + 8% of the sales Php1700 + 15% of the sales
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Software Development Approaches
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
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage