// Mr. Minich
// Comp Sci Using C++
// Ch. 4 Demo Program #4
// January 30, 2000 // Purpose - to demonstrate errors in a C++ program. Find and describe as many // syntax, logic, and coding errors as you can.
#include <iostream.h> main() { const double tax = 0.06; double p = 0.0; int q = 0; double z; cout << "The price is " << p; cout << "The quantity is " << q; cout << "/nThe PA sales tax rate is " << tax << endl;
a = p * q * t;
cout << "The total cost is " cout << a << endl; return 0; }// end of main