Draw The Hierarchy Chart And Plan The Logic For A Project

Draw The Hierarchy Chart And Then Plan The Logic For A Pr

Exercise5 Adraw The Hierarchy Chart And Then Plan The Logic For A Pr

Paper For Above instruction

Understanding the development of a program to determine the profit on items sold by a furniture company involves designing a clear hierarchy chart and logical flow. The primary goal is to take wholesale and retail prices as input, compute the profit, and display it, while also managing program initiation and termination with appropriate modules. This task can be approached through systematic planning including hierarchy diagramming and pseudocode formulation.

The hierarchy chart provides a visual representation of the program's structure, illustrating the main program and its subordinate modules. The core modules include housekeeping, which handles input for the wholesale price; detail, which gathers the retail price, calculates profit, and displays it; and end-of-job, which outputs a farewell message. The main program initializes the process, calling these modules in sequence, encapsulating the logical flow.

Formulating the program’s logic begins with the main module, which declares variables for wholesale price, retail price, and profit. It then calls housekeeping, where the program prompts the user for the wholesale price. After returning, it calls detail, prompting for retail price, calculating profit as retail minus wholesale price, and displaying the result. Finally, it executes end-of-job, which outputs a thank you message. This sequence ensures a basic yet robust structure for performing the task repeatedly if needed, supporting scalability for multiple transactions.

The pseudocode reflects this logical flow. Starting with declarations, the main program calls the modules sequentially. The housekeeping module prompts and accepts the wholesale price; the detail module prompts for retail price, computes profit, and displays it; the end-of-job module finalizes the program with an exit message. This design emphasizes modularity and clear separation of concerns, conducive to maintenance and future enhancements.

In summary, constructing a hierarchical chart and detailed pseudocode for this program lays a firm foundation for implementation. It ensures clarity in logical steps, promotes code organization via modules, and highlights the flow from data input through computation to output and termination. Such structured planning is essential for delivering reliable, understandable, and maintainable software in business environments.

References

  • Gaddis, T. (2018). Starting Out with Python (4th ed.). Pearson.
  • MindTap. (2020). Introduction to Programming Concepts. Cengage Learning.
  • Laudon, K. C., & Laudon, J. P. (2020). Management Information Systems: Managing the Digital Firm. Pearson.
  • Severance, C., & Severance, M. (2017). Computer Programming Fundamentals. Wiley.
  • Deitel, P., & Deitel, H. (2017). C++ How to Program. Pearson.
  • Roberts, M., & Hamer, P. (2018). Programming Fundamentals. Routledge.
  • Ullman, L. (2019). Introduction to Programming Using Java. McGraw-Hill Education.
  • Smith, J. (2021). Software Development Principles in Practice. Springer.
  • Sharma, R., & Kumar, P. (2020). Practical Programming and Software Design. CRC Press.
  • Knuth, D. E. (2014). The Art of Computer Programming. Addison-Wesley.