Question

In: Computer Science

Amanda’s Sweatshirt Shoppe wants several lists of salesperson data. Design a flowchart or pseudocode for the...

Amanda’s Sweatshirt Shoppe wants several lists of salesperson data. Design a flowchart or pseudocode for the following:

  • A program that accepts:
    • one salesperson’s name
    • number of sweatshirts sold in the last month
  • Calculation:
    • Each sweatshirt sells for $30
    • Calculate the total value of the sweatshirts that were sold
  • The program displays:
    • the salesperson’s name
    • number of sweatshirts sold
    • total value of the sweatshirts that were sold
    • the message, “ High Performer”, only if the salesperson is a high performer—defined as a person who sells more than $7000 worth of sweatshirts in the month.

Create three modules (sections) within the main program.

  • The main program declares global variables and then includes housekeeping, detail, and end-of-job modules.
  • The housekeeping module prompts for and accepts a salesperson’s name.
  • The detail module prompts for and accepts the number of sweatshirts sold in the month, computes the total value of the sweatshirts, and displays the results for that sales person.
  • The end-of-job module displays the message Thanks for using this program.

Both pseudocode and flowchart are needed.

Solutions

Expert Solution

Code for the above task is given below in C++:

#include<iostream>
using namespace std;

int main() {
    string name;
    int no_of_sweatshirts, value_of_sweatshirts;
    //housekeeping module
    cout << "Enter the name of the salesperson: ";
    getline(cin, name);
    // details module
    cout << "Enter the number of sweatshirts sold in last month by " << name << ": ";
    cin >> no_of_sweatshirts;
    value_of_sweatshirts = no_of_sweatshirts * 30;
    cout << "\nName of the salesperson: " << name << "\n";
    cout << "Number of sweatshirts sold in last month: " << no_of_sweatshirts << "\n";
    cout << "Total value of sold sweatshirts: " << value_of_sweatshirts;
    if (value_of_sweatshirts > 7000) {
        cout << "\n" << name << " is HIGH PERFORMER.";
    }
    //end-of-the-job module
    cout << "\n\nThanks for using this program!!\n";
    return(0);
}

Flowchart:


Related Solutions

1. Mortimer Life Insurance Company wants several lists of salesperson data. Design a flowchart and pseudocode...
1. Mortimer Life Insurance Company wants several lists of salesperson data. Design a flowchart and pseudocode for the following: A program that accepts a salesperson’s ID number and number of policies sold in the last month, and displays the data only if the salesperson is a high performer—a person who sells more than 25 policies in the month. The program that accepts salesperson data continuously until a sentinel value is entered.
DESIGN A FLOWCHART IN FLOWGORITHM AND WRITE THE PSEUDOCODE Number Analysis Program Design a program that...
DESIGN A FLOWCHART IN FLOWGORITHM AND WRITE THE PSEUDOCODE Number Analysis Program Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: The lowest number in the array. The highest number in the array. The total of the numbers in the array. The average of the numbers in the array. PLEASE AND THANK YOU
Design a program using a flowchart or pseudocode that accepts a person’s loyalty card number and...
Design a program using a flowchart or pseudocode that accepts a person’s loyalty card number and amount spent in the store last month. Display the data only if the customer is a high spender – a person who spent more than $1000 in the store. A program that accepts customer info continuously until a sentinel value is entered and displays a list of high spenders.
create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones...
create flowchart using Flowgorithm and Pseudocode for the following program example:   Design a program for Jones College. The current tuition is $12,000 per year, and tuition is expected to increase by 5 percent each year. Display the tuition amount for each year over the next five years (use a looping structure).
-Draw a flowchart and pseudocode for a program that produces a monthly bill for a cell...
-Draw a flowchart and pseudocode for a program that produces a monthly bill for a cell phone customer. -List at least 10 separate modules that might be included. - For example, one module might calculate the charge for daytime phone minutes used. - -Make a working version of this program using Python. Need all of the above answered including the correct code for program using python
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the...
Write a Python program that: Create the algorithm in both flowchart and pseudocode forms for the following requirements: Reads in a series of positive integers,  one number at a time;  and Calculate the product (multiplication) of all the integers less than 25,  and Calculate the sum (addition) of all the integers greater than or equal to 25. Use 0 as a sentinel value, which stops the input loop. [ If the input is 0 that means the end of the input list. ]...
In this Java lab, you use the flowchart and pseudocode found in the figure below to...
In this Java lab, you use the flowchart and pseudocode found in the figure below to add code to a partially created Java program. When completed, college admissions officers should be able to use the Java program to determine whether to accept or reject a student, based on his or her test score and class rank. Declare the variables testScoreString and classRankString. Write the interactive input statements to retrieve: A student’s test score (testScoreString) A student's class rank (classRankString) Write...
Homework Arrays and Tables In this assignment you are to create an algorithm, flowchart, and pseudocode...
Homework Arrays and Tables In this assignment you are to create an algorithm, flowchart, and pseudocode for a solution of the following problem. This solution will include the use of arrays needed to complete all parts of the logic. You have requested to develop a program that will record and process the rainfall totals of a 12 month period. You would use an array to store each months total. Once all 12 months amounts are entered then your solution need...
6. Write a program in C programming (compile and run), a pseudocode, and draw a flowchart...
6. Write a program in C programming (compile and run), a pseudocode, and draw a flowchart for each of the following problems: a) Obtain three numbers from the keyboard, compute their product and display the result. b) Obtain two numbers from the keyboard, and determine and display which (if either) is the smaller of the two numbers. c) Obtain a series of positive numbers from the keyboard, and determine and display their average (with 4 decimal points). Assume that the...
Draw a structured flowchart or write pseudocode that describes the process of guessing a number between...
Draw a structured flowchart or write pseudocode that describes the process of guessing a number between 1 and 100. After each guess, the player is told that the guess is too high or too low. The process continues until the player guesses the correct number. Pick a number and have someone try to guess it by following your instructions. Submit the flowchart or pseudocode and the results of your test. Create a python program based on your flowchart or pseudocode....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT