This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: cout << endl << "Please enter x:\t" cin >> variable_x_1 Quadratic_function = (coefficient_A)* pow(variable_x_1,2) + (coefficient_B)*variable_x_1 + coefficient_C cout << endl << "f(" << variable_x_1 << ") =" << fixed << setprecision(4)<< Quadratic_function << endl cout << endl << "Please enter x:\t" cin >> variable_x_2 Quadratic_function = (coefficient_A)* pow(variable_x_2,2) + (coefficient_B)*variable_x_2 + coefficient_C cout << endl << "f(" << variable_x_2 << ") =" << fixed << setprecision(4)<< Quadratic_function << endl cout << endl << "Please enter x:\t" cin >> variable_x_3 Quadratic_function = (coefficient_A)* pow(variable_x_3,2) + (coefficient_B)*variable_x_3 + coefficient_C cout << endl << "f(" << variable_x_3 << ") =" << fixed << setprecision(4)<< Quadratic_function << endl } Sheet1 Page 2...
View
Full
Document
This note was uploaded on 03/04/2008 for the course CSCI 101L taught by Professor Ghyam during the Spring '07 term at USC.
 Spring '07
 Ghyam
 Computer Programming

Click to edit the document details