Question: Create a new text file named ex 1 _ 1 . cpp and enter the following lines as comments. Be sure to replace YourFullName with
Create a new text file named excpp and enter the following lines as comments. Be sure to replace
YourFullName with your real full name.
Filename: excpp
Programmer: YourFullName
Next to the above lines, create a simple class named Quadratic that has the following members.
three public variables of int type, a b and c Set the value of a to b to and c to
one public function named func of double type that takes one parameter named x of double type and
performs a calculation based on funcx axbxc
In the main function, create an instance of the Quadratic class named q and then use it to call the
func function by passing four values: and Make sure the output looks similar to the
following.
x value
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
