You are on page 1of 2

Name: __________________________________________ Date: ___________________ Score:

_______________
Draw a flowchart, Write a Pseudocode and write, compile, and run a Java program to
compute and display the value of the second-order polynomial ax2 + bx + c for any userentered values of the coefficients a, b, and c and the variable x.
Have your program display a message first to inform users what the program does, and
then display suitable prompts to alert users to enter data. (Hint: Use a prompt such as Enter
the value for a, b, c and x etc....)
Check the result of your program written 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:

Name: __________________________________________ Date: ___________________ Score:


_______________
Draw a flowchart, Write a Pseudocode and write, compile, and run a Java program to
compute and display the value of the second-order polynomial ax2 + bx + c for any userentered values of the coefficients a, b, and c and the variable x.
Have your program display a message first to inform users what the program does, and
then display suitable prompts to alert users to enter data. (Hint: Use a prompt such as Enter
the value for a, b, c and x etc....)
Check the result of your program written 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:

You might also like