/*
2104 Lab #5 Section 3
Tuition Program
*/

#include <iostream>

using namespace std;

int main()
{
	char state, board;
	int price;

	cout << "Please input I if you are in-state or O if you are out-of-state:" << endl;
	cin >> state;
	if (state == 'I' || state == 'O')
		{
	cout << "Please input Y if you require room and board and N if you do not:" << endl;
	cin >> board;
	if (board == 'Y' || board == 'N')
	{

if (state == 'I' && board == 'Y')
	price = 5500;
else if (state =='O' && board == 'Y')
	price = 8000;
else if (state == 'I' && board == 'N')
	price = 3000;
else if (state == 'O' && board == 'N')
	price =4500;
	}
	else
	cout << "Invalid Input." << endl;
	}	
	else
	cout << "Invalid Input." << endl;
cout << "Your total bill for this semester is $" << price << endl;
}

