Input saleprice profit saleprice saleprice output

This preview shows page 5 - 7 out of 7 pages.

input salePrice profit = salePrice - salePrice output profit output SALE_PROMPT input salePrice return endOfJob() output END_LINE return Data Dictionary: Input: Variable Name wholesalePrice retailPrice Description Price paid by company Price charged to customer Type Numeric Numeric Output: Variable Name WHOLE_PROMPT RETAIL_PROMPT profit
END_LINE Description Message requesting wholesale price Message requesting retail price Retail price minus Wholesale price Message displayed after profit calculated Type String String Value “Enter the wholesale price.” “Enter the retail price.” Numeric String Thanks for using this program.” Pseudocode: start Declarations num wholesalePrice num retailPrice num profit string WHOLE_PROMPT = “Enter the wholesale price” string RETAIL_PROMPT = “Enter the retail price” string END_LINE = “Thanks for using this program” housekeeping() detail() endOfJob() stop housekeeping() output WHOLE_PROMPT input wholesalePrice return
detail() output RETAIL_PROMPT input retailPrice profit = retailPrice - wholesalePrice output profit return endOfJob() output END_LINE return

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture