I'm a complete beginner at this and this hw assignment we are to use five variable to come up with the subtotal, sales tax with it at 6%, and total. We are given the 5 variables but we are not to hard code it in so the values can constantly be different. The code below gives me error messages and ends with Native' has exited with code 0 (0x0).Any help is greatly appreciated.
#include <iostream>
using namespace std;
int main()
{
double a, b, c, d, e;
cout <<"Price of item one. " ;
cin >> a;
cout << "Price of item two. " ;
cin >> b;
cout << "Price of item three. " ;
cin >> c;
cout << "Price of item 4. " ;
cin >> d;
cout << "Price of item 5. " ;
cin >> e;
double subtotal =(a + b + c + d + e);
cout << "The subtotal of your purchase is " << subtotal << endl;
double tax = subtotal * .06;
cout << "The amount of sales tax is " << tax << endl;
double total = subtotal + tax;
cout << "The total bill is " << total << endl;
return 0;
}