Professional Documents
Culture Documents
Last Lecture
Designed and implemented a linked list-based Queue data collection class
Created class documentation for our class
Now we can differentiate between a List, a Stack and a Queue
Your program must then output a 2-column list where the first column, called
Digit, is a list of each distinct decimal digit appearing in the array, and the
second column, called Frequency, is the number of occurrences of each
decimal digit in the array.
On the next few slides, you will find sample inputs and sample outputs.
Your C program is expected to have functions and to have been implemented
following our Good Programming Style (GPS).
Sample output:
Sample output:
Note the way the Digits column is displayed. Your program must follow this layout.
Copyright © Anne Lavergne, School of Computing Science, Simon Fraser University 12
Exercise 5 – s/w Development
Step 1. Problem Statement and Requirements
Solve the problem of Exercise 4 by writing a C++ program.
Your program must satisfy the same requirements as the requirements listed
in Exercise 4.
Your program must use a data collection class.