please help

not sure why but im getting the error code c2059 for my last curly bracket and i cannot get my programm to run need help asap
# include<iostream>
# include<string>
# include<iomanip>

using namespace std;
double find_ticket_price (double customerprice, double customerprice2, double customerprice3, double ticketamt);

double get_ticket_type (double ticketchoice1,double ticketchoice2,double ticketchoice3, double ticketchoice4);



int main()
{

const double MAX_SEAT_COUNT=10;
double ticketchoice=0.0;
double ticketchoice2=7.50;
double ticketchoice3=11.50;
double ticketchoice4=0;
double ticketamt=0;
double customerprice=0;
double customerprice2=0;
double customerprice3=0;
double ticketaccum=0;
double totalprice=0;
double discount=.25;
double discountprice=0;
int choice;






cout << "Please select from one of the following\n"

"\n 1. Toddler (free tickets)\n"
"\n 2. Juniors \n"
"\n 3. Seniors\n"
"\n 4. Quit \n ";

cin >> ticketchoice;




ticketchoice= get_ticket_type(ticketchoice, ticketchoice, ticketchoice3,ticketchoice4);
customerprice=find_ticket_price(customerprice,customerprice2,customerprice3, ticketamt);

cin >> ticketamt;





ticketaccum=ticketaccum+ticketamt;
totalprice=totalprice+customerprice;






cout << "any discounts";
cin >> choice;
if (choice==1)
{discount=customerprice*.25;
discountprice=customerprice-discount;

cout << discountprice;
}
else
if(choice==2)
cout<<fixed;
cout <<customerprice;
cout <<fixed;
cout << MAX_SEAT_COUNT;
cout <<fixed;
cout << totalprice<<endl;
cout<< fixed;
cout<< ticketaccum<<endl;
cout<< fixed;
cout<< customerprice<<endl;

system ("pause");

}

double get_ticket_type (double ticketchoice,double ticketchoice2,double ticketchoice3, double ticketchoice4)
{


if (ticketchoice==1|| ticketchoice==2 || ticketchoice== 3 || ticketchoice == 4)
{cout << "please enter ticket amoutn"<<endl;
}

else
if (ticketchoice!=1|| ticketchoice!=2 || ticketchoice!= 3 || ticketchoice != 4)

cout << "Error please reenter choice";

return (ticketchoice);
}

double find_ticket_price (double customerprice, double customerprice2, double customerprice3,double ticketamt,double ticketchoice,double ticketchoice2, double ticketchoice3, double ticketchoice4)
{
if (ticketchoice==1)
{cout<<fixed<<setprecision(2);
cout<<endl<<customerprice<<endl;
cout<<endl<<ticketchoice<<endl;
}
else
if (ticketchoice==2)
{customerprice2=ticketamt*ticketchoice2;
cout<<fixed<<setprecision(2);
cout<<endl<<customerprice2<<endl;
cout<<endl<<ticketchoice<<endl;
}
else
if (ticketchoice==3)
{ customerprice3=ticketamt*ticketchoice3;
cout<<fixed<<setprecision(2);
cout<<endl<<customerprice3<<endl;
cout<<endl<<ticketchoice<<endl;
}
else
if(ticketchoice==4)
return (0);
return (customerprice);

}
}
Topic archived. No new replies allowed.