Problem

(General math)a. Write, compile, and run a C++ program to compute and display the value of...

(General math)

a. Write, compile, and run a C++ program to compute and display the value of the second-order polynomial ax2 + bx + c for any user-entered values of the coefficients a, b, c, and the variable x. Have your program display a message to inform users what the program does, and then display suitable prompts to alert users to enter the data. (Hint: Use a prompt such as Enter the coefficient of the x-squared term:.)


b. Check the result of your program written for Exercise 7a by using the following test data:

Test data set 1: a = 0, b = 0, c = 22, x = 56

Test data set 2: a = 0, b = 22, c = 0, x = 2

Test data set 3: a = 22, b = 0, c = 0, x = 2

Test data set 4: a = 2, b = 4, c = 5, x = 2

After finishing your verification, use your program to complete the following chart:

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 3.4