EE 312 - Project 8 - C++
Warmup
In this project, you will get some practice with:
- C++ strings
- Function overloading and default parameters
- C++ vectors
- stringstream
This project, due to its goal of introducing you to C++, is less
complex than other EE 312 projects. Therefore, it will be worth half
as much (10 pts) as all our other projects except Project 2.
You may not acquire from any source (e.g., another student or an
internet site) a partial or complete solution to a problem or
project that has been assigned. You may NOT show other students your
solution to an assignment. You may not have another person "walk you
through" how to solve an assignment, or walk another student through
the solution. You may get help from the instructional staff. You may
discuss general ideas and approaches. Review the class policy on
collaboration from the syllabus. I will run plagiarism detection
software on project submissions. If you cheat, you will receive an F
in the course and I will submit a report to the office of the dean
of students. If you provide your solution to another student, you
are as guilty of cheating as the other student.
Make sure that you follow the EE 312 style guide. You will lose
points if you do not. You must include the honor statement below in
your .cpp file. You will lose points if you do not.
Include the following at the top of your file:
// StringPlusPlus.cpp -- EE 312 Project 8
/* Student information for project:
*
* Replace <NAME> with your name. <--- REMOVE THIS LINE FROM YOUR HEADER
*
* On my honor, <NAME>, this programming project is my own work
* and I have not provided this code to any other student.
*
* Name:
* email address:
* UTEID:
* Section 5 digit ID:
* Number of slip days used on this assignment.
*/
Your code must be written in C++. Do not use C-style strings or I/O.
Do not use printf, sprintf or sscanf.
Do NOT use magic numbers in your code. Do not modify any function's
arguments.
Your StringPlusPlus.cpp
file must NOT contain a main function. Create another .cpp file and
place your tests in the main function in that file. Do not modify
the StringPlusPlus.h
file. You are not allowed to use any globals or statics in your
solutions. Your program must compile and run correctly on the LRC
machines in order to receive credit. Do not add additional
#includes, and do not use concepts that we have not covered in
class. We will cover vectors in class early in the week of
11/6/17 - I recommend that you wait and write the functions
involving vectors after that.
Do not wait until the last minute to test your code on kamek.
You must write your own tests.
Problem descriptions of the functions you will write are included in
the provided files. Do NOT add additional #includes or globals
to the files. Do NOT add anything to the .cpp file that you will be
submitting other than the function implementations and comments.
Checklist: Did you remember to
- Review and follow the general assignment requirements? They
are on the Projects page.
- Work on the assignment by yourself, complete the solution code
on your own, and not provide your solution to anyone else?
- Fill in the required header with your name?
- Implement the required functions, without changing their
prototypes?
- Ensure that your program compiles and runs correctly on the
department 64-bit linux machines?
- Write tests for your functions? (Do NOT include the tests or a
main function in your .cpp file. You will lose points if you
do.)
- Name your program file StringPlusPlus.cpp? You will lose
points if your file has the wrong name.
- Upload your StringPlusPlus.cpp file on Canvas?