Question

In: Computer Science

Develop a Complete Interactivity Chart, The Coupling Diagram and a Pseudocode for this problem: Problem Specification:...

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.

Solutions

Expert Solution

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:

  1. Start
  2. Declare SalesAmount, Commission
  3. salesAmount= ReadSalesAmount() //function call
  4. Commission=computecommission()
  5. DisplayCommission()
  6. Stop

Pseudocode :ReadSalesAmount()

  1. Start
  2. Declare Real Amount
  3. Output “Enter Amount”
  4. Input Amount
  5. Return Amount
  6. Stop.

Pseudocode:ComputeCommission(Amount)

Input: Receives parameter Amount

  1. Start
  2. If Amount>55000 then

      Commission=Amount*0.10

  1. Else if Amount>25000

     Commission=Amount*0.05

  1. Else if Amount>15000

    Commission=Amount*0.02

  1.    Else

Commission=0.00

  1. Return commission
  2. Stop

Pseudocode:DisplayCommission(Amount)

  1. Start
  2. Print”Commission earned by Employee”
  3. Print commission
  4. Stop.

Flowchart:


Related Solutions

Develop an algorithm and a  flowchart for the following: Problem Specification:      Jennifer Camacho It’s the owner...
Develop an algorithm and a  flowchart for the following: 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...
Statistics: Construct a stem and leaf diagram, a frequency distribution table, plus develop a bar chart,...
Statistics: Construct a stem and leaf diagram, a frequency distribution table, plus develop a bar chart, pie chart, histogram, polygon and an ogive from the following data set. When you construct the pie charts, bar graphs, etc. Use the calculation of 2K to find the number of classes you will need to construct the frequency distribution table. You will need to use lower class limits, lower-class boundaries, midpoints upper-class boundaries, upper-class limits, frequency, relative frequency, and cumulative frequency. DATA: 90,...
Develop Software Requirements Specification (SRS) Document.
Develop Software Requirements Specification (SRS) Document.
It is desired to develop a means chart and a range chart for a process that...
It is desired to develop a means chart and a range chart for a process that puts a cola drink into bottles.  The nominal goal is to put 16 oz. into each bottle.  The data were obtained from 25 of size 4 A. Construct means and range charge obtained information and 3-sigma limits. B. Then graph the data on the chart.  Identify any samples that indicate the process is out of control. Pop into Bottles Problem Sample number Item 1 Item 2 Item...
The following problem should be done in pseudocode. Problem 1 The programmer intends for this pseudocode...
The following problem should be done in pseudocode. Problem 1 The programmer intends for this pseudocode to display three random numbers in the range of 1 through 7. According to the way we've been generating random numbers in the book; however, there appears to be an error. Assume that the random() function is a built-in library function. Correct the pseudocode so that the program works as it should (This has 1 error and is easy to spot) //This program displays...
In Problem is there a unique way of filling in the missing probabilities in the transition diagram? If so, complete the transition diagram and
In Problem is there a unique way of filling in the missing probabilities in the transition diagram? If so, complete the transition diagram and write the corresponding transition matrix. If not, explain why.  
In Problem is there a unique way of filling in the missing probabilities in the transition diagram? If so, complete the transition diagram and
In Problem is there a unique way of filling in the missing probabilities in the transition diagram? If so, complete the transition diagram and write the corresponding transition matrix. If not, explain why.  
Write all application functional specification for the following application, just the functional specification thanks. Develop a...
Write all application functional specification for the following application, just the functional specification thanks. Develop a shopping cart application (think of a simplified version of amazon.com). When the application begins, it shows a login window. Depending who logs in, a customer or the seller, the application performs different functions. Minimal Functional Specification: Here is a draft version of a minimal functional specification. Students have to adapt it, extend it, and make it their own: A customer logs in with a...
What is a chart of accounts? Why is it important to develop a chart of accounts?...
What is a chart of accounts? Why is it important to develop a chart of accounts? What impact on a company would there be if a company's chart of accounts has errors or one was not developed? Provide 3 specific examples.
I NEED THIS IN PSEUDOCODE: SWITCH/CASE 2 - Complete the pseudocode below by including a SWITCH...
I NEED THIS IN PSEUDOCODE: SWITCH/CASE 2 - Complete the pseudocode below by including a SWITCH statement that takes the user input (an integer between 26-30) and prints out a count up in its English equivalent. For example: if the user inputs “26”, the code will print “twenty-six”, “twenty-seven” on the next line, and so on up to “thirty”. If the user inputs “30”, the code will print “thirty” and finish. CREATE inputNum PRINT ("Please enter a number between 26-30...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT