Assignment_11 - Assignment_11_2.cpp(2 points Reproduce the...

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

View Full Document Right Arrow Icon
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.
Image of page 1
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

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern