Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Distributors for wellness products get their income based on the following two tables: They get a commission based on the following table: Brand Commision(%) Price
Distributors for wellness products get their income based on the following two tables: They get a commission based on the following table: Brand Commision(%) Price (per bottle) 35.00 oneWay 15 twoWay 56.00 20 threeWay 99.00 25 Bonus (RM) They also get a bonus based on the following table: Sales amount(RM) 0 - 1000 >1000 and 2500 0 200.00 300.00 Given the following function prototypes: float calcTotalSales (int, int, int); float calcCommission (int, int, int); float calcBonus (float); a. Determine the definition for the above functions: i. Function calcTotalSales receives the number of bottles for each brand, calculate the total sales for all brands and returns the result. ii. Function calcCommission receives the number of bottles for each brand. This function will calculate and return the commission received. iii. Function calcBonus receives the total sales and returns the bonus received. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started