Assignment_11

# Assignment_11 - Computer Science G175 C Programming...

• Notes
• 1

This preview shows page 1. Sign up to view the full content.

Computer Science G175 - C++ Programming Assignment 11 Assignment_11_1.cpp (2 points) Write a program that reads integers until 0 is entered. Once input terminates, the program should report the total number of even integers entered ( excluding the 0), list the even values, their average (using a float value), the total number of odd integers entered, list the odd values and their average (using a float value). Hints: create an array of integers where you store the even values entered, and another array where you store the odd values. Also, make sure that your program does not crash when no even value has been entered (or no odd value)… This exercise does not require classes.
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Assignment_11_2.cpp (2 points) Reproduce the Vector Class (shown in lecture) using three dimensions. That is, int x, y, z; are the three coordinates. Modify all the overloaded operators to conform to the new dimension. The operators to be overloaded are +, - (binary), - (unary), Vector * double, double * Vector, << (for “cout”). Create a short program that demonstrates the use of each of these functions. In addition to these labs, also review the Word document “Session 11” that has been posted to the website. Please refer to our textbook, parts of chapter “Lesson 13” for additional information. Page 1 of 1...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern