Develop the PAC and IPO chart
Problem Specification:
Jennifer Camacho It’s the owner of Amazing Toyota, a company that sells this type of cars in Puerto Rico. She wants a program that displays the amount of salespersons commission. Some companies use a fixed rate to calculate the commission, while others (like Amazing Toyota) use a rate that varies with the amount of sales. If The salesperson sales $15,000 in one moth his commission will be a 2 % of the sell, if they sell $25,000 one moth, they are getting a 5% of the sales commission fee and if they sell $55,000, they are getting 10% of sell.
Problem Analysis chart
DATA |
Processing |
Output |
SalesAmount |
Compute commission based on salesAmount Amount>55000, then commission is 10% of sales If salesAmount>=25000 , Then commission is 5% of sales IF commission >=15000, then commission is 2% of sales Otherwise Commission is 0.00 |
Display Commission |
IPO(INPUT-Processing – Output )chart
Input |
Processing |
Output |
Sales |
If Sales>=55000 Commission= sales*0.10 Else if Sales>=25000 Commission=sales*0.05 Else if Sales>=15000 Commission=sales*0.02 Else Commission=0.00 |
Display commision |
Get Answers For Free
Most questions answered within 1 hours.