Commission comm4 endif endif endif output

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

commission = COMM_4endifendifendifoutput salesPersonID, salesPersName, commoutput "Enter salesperson ID or ", QUIT, " to quit "input salesPersonIDreturnfinish()output "End of report"return
2.// 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 salesQuarter3ThisYearnum salesQuarter4LastYear num totalThisYearnum totalLastYearstring statusnum QUIT = "ZZZZ"housekeeping()while department <> QUITcompareProfit()endwhilefinishUp()stophousekeeping()output "Enter department name or ", QUIT, " to quit "compareprofit ()getSalesData ()sumSalesData ()if totalThisYear > totalLastYear thenstatus = “Higher”elseif totalThisYear < totalLastYear thenstatus = “Lower”elsestatus = “Same"endifendifoutput department, statusoutput “Enter department name or” QUIT ‘to quit”

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture