Question: Class Using a Fixed - Sized Array ( Chapter 3 ) Modified from projects of Chapter 3 at www . cs . colorado.edu / main

Class Using a Fixed-Sized Array
(Chapter 3)
Modified from projects of Chapter 3 at
www.cs.colorado.edu/ main/projects/ of Data Structures and Other Objects Using C++ by Michael Main and Walter Savitch
The Assignment:
You will implement and test the sequence class using an array to store the sequence's items.
give me 2 codes of .h and .cpp to turn in
Purposes:
Ensure that you can write a small class that uses an array as a private member variable. Familiarize yourself with the sequence container class (which may also be part of future assignments).
Give us a chance to evaluate your programming skills on a small class.
Before Starting:
Read all of Chapter 3.
How to Turn In:
Drop your file in Canvas Assignments Files that you must write and turn in:
sequence1.h : The header file for the sequence class. Actually, you don't have to write much of this file. Decide on appropriate private member variables, and declare these in the sequence class definition at the bottom of the header file. If some of your member functions are implemented as inline functions, then you may put those implementations in this file too.
sequence1.cpp: The implementation file for this first sequence class. You will write all of this file, which will have the implementations of all the sequence's member functions.
Other files that you may find helpful:
sequence_test.cpp: A simple interactive test program.
sequence exam.cop: A non-interactive test
 Class Using a Fixed-Sized Array (Chapter 3) Modified from projects of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!