-3

these are my homeworks please help me...

S8. create a class with the name complex. For that class, the requirements are;

-define variables as relevant as possible for the above class ( re and im of type double ) ;
-the class constructor ;
-function display ;
-functions to return real and imaginary part ;
-overload the operator+= ;
-overload the operator + ;
-overload the operator * ;
-use the class in the main program, in which objects from the above class must be declared and the methods (of the respective class) above declared must be used

S11. create a class with the name triangle. For that class, the requirements are;

-define variables as revelant as possible for the above class (float L1, L2, L3 );
-the class constructor ;
-the function which reads the lenghts of the sides of the triangle from the keyboard ;
-function verify_triangle_existence() ;
-function display ;
-function for the perimeter calculus ;
-function for the area calculus

-use the class in the main program in which objects from the above class must be declared and the methods (of the respective class) above declared must be used

Votes + Comments
HW helper
4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by iamthwee
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.