/**
* Problem a3c1p2
* Written by: Scott Giles
* Program Description: To determine the cost of a plane ticket given input variables.
**/
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;
int main( )
{
int time, cost;
char daytype; //b,w,h
cout << "Okay class, let's determine the cost of your flight!" << endl;
cout << "What type of day are you flying on?" << endl;
cout << "If a business day, enter 'b', sans quotes." << endl;
cout << "If the weekend, enter 'w', sans quotes." << endl;
cout << "If a holiday, enter 'h', sans quotes." << endl;
cin >> daytype;
if(daytype == 'b'){
cout << "Since you're flying on a business day, what time are you going to fly, given in military time? ";
cin >> time;
if(time >= 6.00 && time <= 17.00){
cost = 400;
} else if(time <= 6.00 && time >= 17.00){
cost = 350;
}
} else if(daytype == 'w') {
cost = 300;
} else if(daytype == 'h') {
cost = 225;
}
cout << "The cost of your plane ticket is $"<<cost<<endl;
return 0;
}