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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section: Chapter Questions
Problem 1PP
icon
Related questions
Question

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.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,