Research assistants provide support to professionals who are conducting experiments or gathering and analyzing information and data. Suppose you are working as RA (research assistant) with a Professor...


Research assistants provide support to professionals who are conducting experiments or gathering and
analyzing information and data. Suppose you are working as RA (research assistant) with a Professor who is
working on a project and evaluating complex mathematical equations. Your duty is to assist him, so in this
regard he has assigned a task to you. Your task is to write a oop c++ program to create a class named equation which will have the data members a, b and c which are the coefficients of the quadratic equation. The class will have two more data members namely proot and nroot which stand for the positive root and negative root of the equation.


Suppose that variables a, b and c are integers. Where proot and nroot are floats.
 Input Function to get values of a, b and c
 Then design a friend function which will determine the proot and nroot of the equation.
 Create another friend function which will display the values of proot and nroot.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here