Commissionearned comm2 else if numbedrooms 1 then

  • ECPI University
  • CIS 121
  • Rebmoo9847
  • 4
  • 93% (15) 14 out of 15 people found this document helpful

This preview shows page 1 - 3 out of 4 pages.

commissionEarned = COMM_2elseif numBedrooms = 1 thencommissionEarned = COMM_1elseif numBedrooms = 0 thencommissionEarned = COMM_STUDIOendifendifendifoutput salesPersonID, salesPersName, commissionEarnedoutput "Enter salesperson ID or ", QUIT, " to quit "
input salesPersonIDreturnfinish()output "End of report"return// This pseudocode should create a list that describes annual profit// statistics for a retail store. Input records contain a department// name (for example, “Cosmetics”) and profits for each quarter for// the last two years. The program should determine whether the profit// is higher, lower, or the same for this full year compared to the// last full year.StartDeclarationsstring departmentnum salesQuarter1ThisYearnum salesQuarter2ThisYearnum salesQuarter3ThisYearnum salesQuarter4ThisYearnum salesQuarter1LastYear num salesQuarter2LastYearnum salesQuarter3LastYearnum salesQuarter4LastYear num totalThisYearnum totalLastYearstring statusstring QUIT = "ZZZZ"housekeeping()while department <> QUITcompareProfit()endwhile finishUp()stophousekeeping()output "Enter department name or ", QUIT, " to quit "

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture