
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
Edition 7ISBN: 1285225562Amanda Cho, a supervisor in a retail clothing store, wants to acknowledge high achieving salespeople. Design a flowchart or pseudocode for the following:
a. A program that continuously accepts each salesperson’s first and last names, the number of shifts worked in a month, number of transactions completed this month, and the dollar value of those transactions. Display each salesperson’s name with a productivity score, which is computed by first dividing dollars by transactions and dividing the result by shifts worked. Display three asterisks after the productivity score if it is 50 or higher.
b. A program that accepts each salesperson’s data and displays the name and a bonus amount. The bonuses will be distributed as follows:
• If the productivity score is 30 or less, the bonus is $25.
• If the productivity score is 31 or more and less than 80, the bonus is $50.
• If the productivity score is 80 or more and less than 200, the bonus is $100.
• If the productivity score is 200 or higher, the bonus is $200.
c. Modify Exercise 11b to reflect the following new fact, and have the program execute as efficiently as possible:
• Sixty percent of employees have a productivity score greater than 200.
Step 1 of 23
The Supervisor of retail clothing store, Amanda Cho acknowledges high achieving salespeople based on their sales performance.
The Flowcharts and Pseudocodes for the sales person’s transactions of retail clothing store is as given below.
a)
The salesperson’s first and last names, the number of shifts worked in a month, number of transactions completed this month and the dollar value of those transactions are inputted continuously until a sentinel is entered.
The Productivity score is calculated by first dividing dollars by transactions and then dividing the result by shifts worked.
Display three asterisks after the productivity score if it is 50 or higher.
Pseudocode:
start
Declarations
string firstname,lastname
num no_of_shifts,no_of_transactions
num dollarvalue
num flag = 1
num Productivityscore
while(flag = 1)
InputDetails()
CalculateProductivity()
DisplayProductivity()
input flag
End while
stop
Step 2 of 23
Step 3 of 23
Step 4 of 23
Step 5 of 23
Step 6 of 23
Step 7 of 23
Step 8 of 23
Step 9 of 23
Step 10 of 23
Step 11 of 23
Step 12 of 23
Step 13 of 23
Step 14 of 23
Step 15 of 23
Step 16 of 23
Step 17 of 23
Step 18 of 23
Step 19 of 23
Step 20 of 23
Step 21 of 23
Step 22 of 23
Step 23 of 23
Why don’t you like this exercise?
Other