// >>Yousef Rabah       Asi4          Sep18th         drawer 1602


#include <iostream.h>
#include <iomanip>
using namespace std;

int main()
{
	char member;
	int ticket, drink; 
	double  drinkt, ticket_me, ticket_no;
	
	cout.setf (ios::fixed);
	cout.setf (ios::showpoint);
	cout.precision (2);
	
	cout<<"Tickets are $4.00 for members, $6.00";
	cout<<"for non-members.\n";
	cout<<"How many tickets would you like (99 max) ? ";
	cin>>ticket;
	cout<<"Are you a member? (y/n) : ";
	cin>>member;
	cout<<"Drinks are $1.25 apiece. How many (99 max) ? ";
	cin>>drink;
	cout<<endl;
	
	if (member == 'y')
	{
		ticket_me = ticket * 4;
		drinkt = drink * 1.25;
		cout<< ticket <<" tickets: "<<setw(6);
		cout<<ticket_me<<endl;
		cout<< drink <<" drinks: "<<setw(8);
		cout<< drinkt<<endl<<endl;
		cout<<"    total: "<<setw(6);
		cout<<(ticket_me + drinkt)<<endl;
		
	}
	else
	{
		drinkt = drink * 1.25;
		ticket_no = ticket * 6;
		cout<< ticket <<" tickets: "<<setw(6);
		cout<< ticket_no<<endl;
		cout<< drink <<" drinks:"<<setw(8);
		cout<< drinkt<<endl<<endl;
		cout<<"    total: "<<setw(6);
		cout<<(ticket_no + drinkt)<<endl;
	}
	
	return 0;
}
/*
RUN 1 :

Tickets are $4.00 for members, $6.00for non-members.
How many tickets would you like (99 max) ? 4
Are you a member? (y/n) : n
Drinks are $1.25 apiece. How many (99 max) ? 3

4 tickets:  24.00
3 drinks:    3.75

    total:  27.75

RUN 2 :

Tickets are $4.00 for members, $6.00for non-members.
How many tickets would you like (99 max) ? 1
Are you a member? (y/n) : y
Drinks are $1.25 apiece. How many (99 max) ? 9

1 tickets:   4.00
9 drinks:    11.25

    total:  15.25
    
*/



		
		 
	
	
