Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do it on C++. I put the instuctions along with my first assignnet codes the .cpp and .h file. thank you! Make sure your

Please do it on C++.
I put the instuctions along with my first assignnet codes the .cpp and .h file.
thank you! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Make sure your Assignment 1's class" contains at least one (1) numeric attribute (int, float, double). If it does not, add a numeric attribute to your class. Define the behavior of the following operators in your class' objects: - Two objects of that class are considered equal (==) if.. - The sum (+) of two objects of that class returns ... - When passing one object of that class to cout operator, it displays ... Using those definitions, modify your class to overload those operators. In the corresponding operator overloading function add a comment that explains the operator functionality (i.e. the definition of each operators). * If you received feedback related to your Assignment 1 's class, update it appropriately before using it in this assignment. In the main program Create three objects of your Assignments 1 's class and demonstrate that ==,+, and cout operators works as expected when using them with your class' objects. Files to submit: - Visual Studio solution/project files. - Class files (.h and .cpp) - Main program (.cpp) Submit the Visual Studio project in a zip folder. Example of expected submission Note: The Solution/project files are not presented in these examples since those are automatically generated by Visual Studio. However, those are expected in students' submission. GroupCohesiveness.h \#include class Groupcohesiveness \{ private: int answer0, answer1, answer2, answer 3 public: void setAnswer0 (int a); void setAnswer1 (int a); void setAnswer2 (int a); void setAnswer3 (int a); int getAnswero () const; int getAnswer1 () const; minc lude ciostreass minclude "Car, h using manespace std: CaritCar() Bleefautt qatues of Car ebject mode L= "no defined" masseed =69 : pr ice a 19000 ; 7 ffparameterizea condtucter Carstcariatrang and, ant m,, deuble of i frapplying businesi rule for maspeed if (m0 ic n130] mactipeed i at

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago