100%(1)100% нашли этот документ полезным (1 голос)
142 просмотров3 страницы
The document provides a hierarchy chart, flowchart, and pseudocode for a program to calculate profit for the Couch Potato Furniture Company. The hierarchy chart shows the main program and subprograms for housekeeping, details, and end of job functions. The flowchart shows the program flow including declarations, calling the subprograms, and stopping. The pseudocode further defines the program with declarations, math for calculating profit from wholesale and retail prices, and outputs.
Исходное описание:
Ch02 Logic6e Solutions
Оригинальное название
Homework for Week 2 - Essentials of Info Sys_Prgrmg
The document provides a hierarchy chart, flowchart, and pseudocode for a program to calculate profit for the Couch Potato Furniture Company. The hierarchy chart shows the main program and subprograms for housekeeping, details, and end of job functions. The flowchart shows the program flow including declarations, calling the subprograms, and stopping. The pseudocode further defines the program with declarations, math for calculating profit from wholesale and retail prices, and outputs.
The document provides a hierarchy chart, flowchart, and pseudocode for a program to calculate profit for the Couch Potato Furniture Company. The hierarchy chart shows the main program and subprograms for housekeeping, details, and end of job functions. The flowchart shows the program flow including declarations, calling the subprograms, and stopping. The pseudocode further defines the program with declarations, math for calculating profit from wholesale and retail prices, and outputs.
Required: Data Dictionary, Hierarchy Chart, Flowchart, and Pseudocode for the Couch Potato Furniture Company: 1. Hierarchy chart:
Main Program housekeeping () detail () endOfJob ()
2. Flowchart:
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 endOfJob () output END_LINE return detail () output RETAIL_PROMPT Input retailPrice profit = retailPrice - wholesalePrice output profit return
3. Pseudocodes:
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 () details () endOfJob () stop
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.
Microsoft 365 Guide to Success: 10 Books in 1 | Kick-start Your Career Learning the Key Information to Master Your Microsoft Office Files to Optimize Your Tasks & Surprise Your Colleagues | Access, Excel, OneDrive, Outlook, PowerPoint, Word, Teams, etc.
Microsoft PowerPoint Guide for Success: Learn in a Guided Way to Create, Edit & Format Your Presentations Documents to Visual Explain Your Projects & Surprise Your Bosses And Colleagues | Big Four Consulting Firms Method
Microsoft Excel Guide for Success: Transform Your Work with Microsoft Excel, Unleash Formulas, Functions, and Charts to Optimize Tasks and Surpass Expectations [II EDITION]
CODING FOR ABSOLUTE BEGINNERS: How to Keep Your Data Safe from Hackers by Mastering the Basic Functions of Python, Java, and C++ (2022 Guide for Newbies)
Modern Tkinter for Busy Python Developers: Quickly Learn to Create Great Looking User Interfaces for Windows, Mac and Linux Using Python's Standard GUI Toolkit