Question

In: Computer Science

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 % 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

Algorithm:

// Algorithm to compute and display the amount of salespersons commission
Declaration
   number sales, commission;
  
Start

   Input sales ; // Input of sales for the salesperson in one month;
  
   // Compute the commission based on the sales by salesperson in the month
  
   // check if sales of the salesperson is greater than or equal to 55,000 for the month
   if sales >= 55000 then
       commission = sales * 0.1; // then commission will be 10%
   // check if sales of the salesperson is greater than or equal to 25,000 for the month  
   else if sales >= 25000 then
       commission = sales * 0.05; // then commission will be 5%
   // check if sales of the salesperson is greater than or equal to 15,000 for the month  
   else if sales >=15000
       commission = sales * 0.02; // then commission will be 2%
   // check if sales of the salesperson is less than 15,000 for the month
   else
       commission = 0; // commission = 0
   end if
  
   // display the commission for the salesperson
   Display commission;
  
End  

Flowchart:


Related Solutions

Develop an Algorithm and java program using Design Recipe for the following problems. Draw a flowchart...
Develop an Algorithm and java program using Design Recipe for the following problems. Draw a flowchart to compute the largest and smallest of 4 numbers : Write a Java Program for the above flowchart, use methods(functions), and nested if-else statements. Take input from the user using the Scanner object. Use separate methods to compute the Largest and Smallest of the numbers. Method 1 Name: findLargest(param 1, param 2, param 3, param 4) Method 2 Name: findSmallest(param 1, param 2, param...
Write an algorithm and draw a flowchart for the following problem: Create an adaptive cruise control...
Write an algorithm and draw a flowchart for the following problem: Create an adaptive cruise control for a car. Include functions for enabling/disabling the cruise control; setting up the speed. The system should always maintain the speed unless there is a slower car in front of it. Make sure to define inputs and outputs. Do not forget that computer’s microprocessor works in very small steps (tiny steps!), so be careful not to assign large number of steps to one flowchart...
Write an algorithm (flowchart OR Pseudocode) for the following problem Take input character from the user...
Write an algorithm (flowchart OR Pseudocode) for the following problem Take input character from the user unless he enters '$'. Thereafter display how may vowels were entered by the user. Also display the number of each vowel ('a', 'e', 'i', 'o' and 'u') separately. For example if the user enters B a b e c o o d i u g o a l $ Then we have the output below: #A=2 #E=1 #I=1 #O=3 #U=2
Make an algorithm in the form of a sentence and flowchart from the following cases: Algorithm...
Make an algorithm in the form of a sentence and flowchart from the following cases: Algorithm for calculating the amount of net salary if known: the amount of base salary, allowances, melting money, taxes, and credit deductions.
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...
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...
1) Understand the problem 2) Develop and Describe an Algorithm 3) Test Algorithm with Simple Inputs...
1) Understand the problem 2) Develop and Describe an Algorithm 3) Test Algorithm with Simple Inputs 4) Translate the Algorithm into Java 5) Compile and Test Your Program 1) Understand the problem A client (a person who wants a program developed) who owns a painting company has requested that you create a prototype program that calculates the cans of paint required to paint a wall based on surface area in square feet. Normally a staff member at the store interacts...
[15 marks] Draw the flowchart of the following programming problem: You can draw the flowchart using...
[15 marks] Draw the flowchart of the following programming problem: You can draw the flowchart using a drawing tool, or draw the flowchart on a piece of paper, take a picture, insert it here or save it in the submission folder The program reads an unspecified number of integers until a zero is entered. While the program reads each number it counts the number of positive numbers and the number of negative numbers that have been entered and sum up...
Write an algorithm (flowchart) for the following problems: Take ten different numbers as input and display...
Write an algorithm (flowchart) for the following problems: Take ten different numbers as input and display the sum of there squares (SS). Example: let the inputs are: 3, 0, -1, 0, 9, -5, 6, 0, 2, 1 then 157 is displayed, because: SS=32+02+(-1)2+02+92+(-5)2+62+02+22+12=157
Write an algorithm (flowchart OR Pseudocode) for the following problems: Take ten different numbers as input...
Write an algorithm (flowchart OR Pseudocode) for the following problems: Take ten different numbers as input and display the sum of there squares (SS). Example: let the inputs are: 3, 0, -1, 0, 9, -5, 6, 0, 2, 1 then 157 is displayed, because: SS=32+02+(-1)2+02+92+(-5)2+62+02+22+12=157 Take input character from the user unless he enters '$'. Thereafter display how may vowels were entered by the user. Also display the number of each vowel ('a', 'e', 'i', 'o' and 'u') separately. For...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT