In: Computer Science
Develop a Complete Interactivity Chart, The Coupling Diagram and a Pseudocode for this problem:
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.
Main module is the beginning of the program.
Main modules gets sales amounts from the ReadSalesAmount module. This module gets user input and returns amount to the main module.
Compute commission module: This module takes input from the main module, and computes commission based on the criteria and returns the commission back to the main module.
Display Module:This module to display the total pay by adding commission.
Coupling diagram:
interactivity diagram:
Pseudocode:
Pseudocode :ReadSalesAmount()
Pseudocode:ComputeCommission(Amount)
Input: Receives parameter Amount
Commission=Amount*0.10
Commission=Amount*0.05
Commission=Amount*0.02
Commission=0.00
Pseudocode:DisplayCommission(Amount)
Flowchart: