// ~cs35/if_and_or.cpp

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

int main()
{
	int age, day_of_month;
	char answer;
	
	cout <<"What day of the month is it today? ";
	cin >> day_of_month;
	

	 if   (day_of_month%2 == 0)   //so make sure number is even
	{  
		cout<<"You pills for the day: "<<endl;
		cout <<"1 vitamin A\n";
		cout <<"2 vitamin B\n";
		cout <<"4 vitamin C\n";
		cout <<"3 vitamin D\n";
		cout <<"8 vitamin E\n";
	}
	else
	{                                           
		cout<<"You pills for the day: "<<endl;   
		cout <<"1 vitamin A\n";                  
		cout <<"2 vitamin B\n";                  
		cout <<"5 vitamin C\n";                  
		cout <<"3 vitamin D\n";                  
		cout <<"8 vitamin E\n";                  
	}                                           

	cout<<"Welcome to Miniview, the theater with "
			<<"24 screens (each 9\" x 13\")\n";
			
	cout<< "Enter your age: ";
	cin >> age;
	
	cout << "Are you a student(y/n): ";
	cin >> answer;
	
	if (  (age < 14) || (answer == 'y') )  
	{
		cout << "The movie will cost you $5.50\n";
	} 
	else 
	{
		cout << "The movie will cost you $7.00\n";
	}
	
	cout <<endl;
	
	if (  (age >= 21) && (answer == 'n')  )  {
		cout << "Do you have a job in Richmond? \n";
	} else {
		cout << "Impatient to get out on your own?\n";
	}
	
	return 0;
}
	
