Bobst_ArynFix1_M04

.docx

School

Ivy Tech Community College, Indianapolis *

*We aren’t endorsed by this school

Course

120

Subject

Communications

Date

Jan 9, 2024

Type

docx

Pages

2

Uploaded by MasterBaboon3951

Report
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 getReady() output "Enter salesperson ID or ", QUIT, " to quit " input salesPersonID return detailLoop() output "Enter name " input salesPersonName output "Enter number of bedrooms rented " input numBedrooms if numBedrooms = 3 then // Use "=" instead of ">" commissionEarned = COMM_3
else if numBedrooms = 2 then // Use "=" instead of "<" commissionEarned = COMM_2 else if numBedrooms = 1 then // Use "=" instead of ">" commissionEarned = COMM_1 else commissionEarned = COMM_STUDIO // Corrected variable name from "COMM_4" to "COMM_STUDIO" endif endif endif output salesPersonID, salesPersonName, commissionEarned // Corrected variable name from "salesPersName" to "salesPersonName" output "Enter salesperson ID or ", QUIT, " to quit " input salesPersonID return finish() output "End of report" return
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help