Chapter 10: Programming ProjectsΒΆ

1. Use the class  **CAccount** to develop a program
   that:

        1. Interactively reads an account number and an
           account balance.

        2. Displays a menu:

             1. Print account info
             2. Process transaction
             3. Quit application

        3. If the user wants to process a transaction,
           prompt  the user to enter a value for
           transaction type and amount.  Then update the
           account balance.

        4. Do the above operations as long as the user
           wants to continue.

2. Use the class  **CCourse** to develop a program that:

        1. Presents a menu:

             1. Build course list
             2. View course list
             3. Quit application

        2. Acquires data for for up to 50 courses.

        3. When the list of courses is to be viewed, sort
           the  list into year, term, courseNumber and
           sectionNumber order.

        4. When viewing the list of courses, pause at each
           page and allow the user to input any of the
           following commands:

             - N or n for move to next page
             - P or p for move to previous page
             - Q or q to quit the display and return to
               the menu

3. Develop a program that uses the  **CCourse**,
    **CDocument** and  **CView**  classes to manage
   and view the contents of a list of   **CCourse**
   type items.  The program must:

        1. Present a menu.

             1. Build course list
             2. View course list
             3. Quit application

        2. Acquires data for for up to 50 courses.

        3. When the list of courses is to be viewed, sort
           the list into year, term, courseNumber and
           sectionNumber order.

        4. When viewing the list of courses, pause at each
           page and allow the user to input any of the
           following commands:

             - N or n for move to next page
             - P or p for move to previous page
             - Q or q to quit the display and return to
               the menu

Previous topic

Chapter 10 Classes

Next topic

Chapter 10: Programming Exercises

This Page