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.
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.

Step by step
Solved in 2 steps with 1 images









