12.2 Program Design (3)

Resources | Revision Questions | Computer Science

Login to see all questions

Click on a question to view the answer

1.

A software development team is tasked with creating a program to manage a library's book collection. The program needs to allow users to add new books, search for books by title or author, and remove books from the collection. Describe, using a structure chart, how you would decompose this problem into sub-tasks. Clearly indicate the parameters passed between the modules/procedures/functions involved in the algorithm design. Your structure chart should be at least three levels deep.

2.

Consider a system for calculating the area of different geometric shapes. Describe, using a structure chart, how you would decompose this problem into sub-tasks. Clearly indicate the parameters passed between the modules/procedures/functions involved in the algorithm design. Your structure chart should be at least three levels deep.

3.

Describe the key components of a state-transition diagram. Include a description of the symbols used to represent states, transitions, and initial/final states. Provide a brief example of how these components would be used to model a simple real-world process.