Comp 116 Programming Assignment 03:
Completing SafeIntArray

Due 11:59pm Tuesday, March 30 2021

This is an individual assignment. You must complete this lab on your own, although you may discuss lab concepts with other students. Please keep the Academic Integrity Policy in mind---do not show your code to anyone outside of the professors and ninjas, and do not look at anyone else's code for this lab. If you need help, please come to a tutoring session or contact the professor.

The goal of this lab is to further practice specific concepts in object oriented programming:

In addition to introducing default value for function parameter.
Description

First, download the .zip file that contains the starter code for the third programming assignment. It contains the code we worked on last week with our running example of the SafeIntArray. Your assignment will be to write a few more methods and overload a few more operators.

The starter code already contains the name of all the new methods you should write. I invite you to read the comments that precede the declaration of each method in safeIntArray.h to learn about the input and output behavior or each method. You should implement the following methods:

Make sure that you thoroughly test each method in main.cpp. When grading your assignment, I will replace your main function by my own and test every possible bizarre case

Commenting and Coding Style Requirements
For this and future labs, I will assign minor penalties for poor commenting and coding style. Here are some style tips for this lab:
Submit

Submit a .zip file containing the entire project folder for the programming assignment using the submission link on onCourse.