Access over 20 million homework & study documents

redo_work_hierarchy

Content type
User Generated
Type
Study Guide
Rating
Showing Page:
1/4
1
1
a. Hierarchy chart:
Flowchart:
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
main program
housekeeping()
detail()
endOfJob()

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/4
2
housekeeping()
output WHOLE_PROMPT
input wholesalePrice
return
detail()
output RETAIL_PROMPT
input retailPrice
profit = retailPrice - wholesalePrice
output profit
return
endOfJob()
output END_LINE
return
2.
b. Hierarchy chart:
Flowchart:
main program
housekeeping()
detailLoop()
endOfJob()

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/4

Sign up to view the full document!

lock_open Sign Up
End of Preview - Want to read all 4 pages?
Access Now
Unformatted Attachment Preview
1 a. Hierarchy chart: Flowchart: 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 2. b. Hierarchy chart: Flowchart: 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() while not (wholesalePrice = 0) detailLoop() endwhile endOfJob() stop housekeeping() output WHOLE_PROMPT input wholesalePrice return detailLoop() output RETAIL_PROMPT input retailPrice profit = retailPrice - wholesalePrice output profit output WHOLE_PROMPT input wholesalePrice return endOfJob() output END_LINE return ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Awesome! Made my life easier.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Documents