// Mr. Minich
// CMPSC 201
// Ch. 3 Demo Program #2
//
// Purpose - to demonstrate errors in a C++ program. Find and describe as many
// syntax, logic, and coding errors as you can.
#include <iostream>
using namespace std;
main()
{
const double tax = 0.06; // tax rate
double p, z;
int q = 0; // declaring variable q of data type int
cout << "The price is " << p;
cout << "The quantity is " << q;
cout << "/nThe PA sales tax rat is " << tax << endl;
a = p*q * t;
cout<<"The total cost is"
cout << a << endl;
return 0;
}