Question: Please write code in C or C++ and follow directions given Feng-Hao Liu this assignment, you are going to turn in a single cpp file.
Feng-Hao Liu this assignment, you are going to turn in a single cpp file. Task 1. Write a function that takes inputs int a, int b, and int c, and double r, and returns e value of ar? ber c. (Think of the most appropriate return data type.) Then the main function is going to input a quadratic polynomial, say f(z), and then evaluate the polynomial at a certain point. Below is what needs to be seen on the screen. Task In the first line of the screen, print "Input the coefficient (integers) of the first quadratic polynomial f Task 3. Then the user is going to input three integers, say a, b, c. Task 4. In the next line, print "The quadratic polynomial is f(r) iar r ar br c Task 5: In the next line, print "Enter a point (double)z", followed by a user-input double 2. Task 6: Print "f(z) xxx", where xxx is the value of f (note: 2 was the user-input double defined as above)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
