202k views
3 votes
Debug :

// This pseudocode should create a report that contains an


// apartment complex rental agent's commission. The


// program accepts the ID number and name of the agent who


// rented the apartment, and the number of bedrooms in the


// apartment. The commission is $100 for renting a three-bedroom


// apartment, $75 for renting a two-bedroom apartment, $55 for


// renting a one-bedroom apartment, and $30 for renting a studio


// (zero-bedroom) apartment. Output is the salesperson’s


// name and ID number and the commission earned on the rental.


start


Declarations


num salesPersonID


string salesPersonName


num numBedrooms


num COMM_3 = $100.00


num COMM_2 = $75.00


num COMM_1 = $55.00


num COMM_STUDIO = $30.00


num QUIT = 9999


getReady()


while salesPersonID <> QUIT


detailLoop()


endwhile


finish()


stop



getRead

User Mhutter
by
7.9k points

1 Answer

0 votes

Final answer:

This pseudocode is for creating an apartment rental agent's commission report.

Step-by-step explanation:

This pseudocode is for creating a report that calculates the commission earned by a rental agent in an apartment complex. The code accepts the ID number, name of the agent, and the number of bedrooms in the rented apartment. It then determines the commission based on the number of bedrooms and outputs the salesperson's name, ID number, and the commission earned. The commission amounts are $100 for a three-bedroom apartment, $75 for a two-bedroom apartment, $55 for a one-bedroom apartment, and $30 for a studio (zero-bedroom) apartment.

User Dawntrader
by
7.1k points