I am currently working on a project called movie reservation and I am almost done, the only problem right now is the seats. I have no idea how I can display 200 seats and identify whether a seat is already taken or not. Also, each row must be referred as character 'A' for the first and 'J' for the last and it should be with also a number. So for example the first row will have something like 'A1 or A5 or A3' while the last seats will be J1 J2 J3 and so on... Here is my code, I only need to know how to do the seats... please help me.
#include <iostream>
using namespace std;
int main()
{
int movie; double price(2.35); double price2(2.41);int actors;
int information; int wallstreet; int seatnumber(1-100);
cout << "*********** Welcome to AT1 cinema ************* \n"
<< "Choose movie below, type the movie and the number you want: \n"
<< "1. Wallstreet\n"
<< "2. The Social Network\n"
<< "3. Takers\n";
cout << endl;
cin >> movie;
if (movie == 1)
cout << "Wallstreet" <<endl;
else if (movie == 2)
cout << "The Social Network" << endl;
else if (movie == 3)
cout << " " << endl;
{
cout << "Choose your seat number: " <<endl;
cout << endl;
cin >> seatnumber;
cout << endl;
}
{
cout << "Here is your official receipt: " <<endl;
}
{
if (movie == 1)
cout << "Wallstreet" <<endl;
else if (movie == 2)
cout << "The Social Network" << endl;
else if (movie == 3)
cout << "You selected the movie: Takers" << endl;
}
{
cout << "You selected the seat number: " << seatnumber << endl;
}
{ if (movie == 1)
cout << "$2.35" <<endl;
else if (movie == 2)
cout << "$2.45" << endl;
else if (movie == 3)
cout << "$2.55" << endl;
}
system ("pause");
return 0;
}