// CS P125 - Lab 3 // Description: This program will compute several mathematical expressions // and output their results. // $Revision: 1.3 $ #include #include using namespace std; int main () { // Declare variables to hold the input values. Then initialize them // by prompting the user for values and reading the responses. float a; float b; float c; float d; cout << "Please provide a value for variable a: "; cin >> a; cout << "Please provide a value for variable b: "; cin >> b; cout << "Please provide a value for variable c: "; cin >> c; cout << "Please provide a value for variable d: "; cin >> d; // Declare variables to hold the results of the equations. // ( **** to be completed **** ) float result1; // Compute the results of the equations. // ( **** to be completed **** ) result1 = (2 * a * a) + (4 * a) - 29; // Now that we have the results, let's display them to the user. // ( **** to be completed **** ) cout << "**** Results ***************" << endl; // Exit indicating a lack of errors. return 0; }