// conditional_simple.cpp is a program that will take hours
// worked and calculate pay

#include <iostream>   
#include <string>

using namespace std;

int hours, pay, overtime;

int main()
{

  cout << "Please enter the hours worked and hit enter: ";
  cin >> hours;


  if(hours <= 40){
        pay=(hours*25);
	overtime=0;
  }

  else{
        overtime=(hours-40);
	pay=(40*25+(overtime*25*1.5));
  }

  cout << "You worked " << hours << " hours.\nYou worked " << overtime << " hours in overtime.\nYou made $" << pay << "." << endl;

  return 0;
}
