I have been trying to figure what is wrong. I have 1 error this is what it says
line 20 parse error before `)'
I am using Dev C++ 4. Can you please help me with this. I looks right but i don't know what's missing. Thanks for any help.
#include <iostream.h>
#include <stdlib.h>
void main ()
{
int choice,price,totalprice;
float NYCsalestax=0,Chicagosalestax=0.085,Bostonsalestax =0.10;
cout<<"Type 1 for the total price of a DVD player in NYC\n";
cout<<"Type 2 for the total price of a DVD player in Chicago\n";
cout<<"Type 3 for the total price of a DVD player in Boston\n";
cin>>choice;
if (choice==1)
{
cout<<"Enter the price of the DVD player in New York City $";
cin>>price;
totalprice=price+price*NYCsalestax;
cout<<"The total price of the DVD player New York is $";
cout<<totalprice;
)
if (choice==2)
{
cout<<"Enter the price of the DVD player in Chicago $";
cin>>price;
totalprice=price+price*Chicagosalestax;
cout<<"The total price of the DVD player Chicago is $";
cout<<totalprice;
}
if (choice==3)
{
cout<<"Enter the price of the DVD player in Boston $";
cin>>price;
totalprice=price+price*Bostonsalestax;
cout<<"The total price of the DVD player Boston is $";
cout<<totalprice;
}
system("PAUSE");
}