Question: Write the pseudocode for the following problem, be sure to use the switch structure. Problem Statement: A real estate company needs a program written to
Write the pseudocode for the following problem, be sure to use the switch structure. Problem Statement: A real estate company needs a program written to compute commissions for their agents. The program will be run each Friday for an unknown number of sales that closed that week. An agent will receive a separate check for each sale that closed during the week. The company has 3 categories of properties. Each property category carries with it a different description and commission rate as can be seen in the table below. Description of Property Commission Rate Category R" or "r" "D" or "d" C" or "c Residential Multiunit Dwelling Commercial 5% 10% 15% Write a program that: .asks the user for the agent ID (a 5-digit numeric identification number), the category of property that was sold ("R", "r, "D, d", "C" or "c") and the selling price of the property computes and prints the commission for that sale belonging to that agent. keeps a running total of the number of commissions computed for each property category. keeps a running total of the commissions for each property category Outputs the running totals at the end of run as shown on the back of this page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
