// Program schedule prints a daily schedule with the
// amount of time spent on each task.

// Begin with preprocessor directives and using statements

#include <iostream>
using namespace std;

// Global variables are typically defined at the top of a program file.
//
//   In this case, these global variable declarations are for constant
//   values, so the const keywork tells the compiler to ensure that they
//   never get modified within the program.
//
//   By convention, we use all uppercase identifiers for constants.
//
//   Like Java, we can include initialization along with the variable
//   declaration.

// Comments are given for each declaration telling what the variable is for.

const int DRESS = 45;       // time spent dressing
const int EAT = 30;         // time spent eating a single meal
const int DRIVE = 30;       // time spent driving to school (one way)
const int CLASS = 60;       // time spent in a single class

// Define the global function main()

int main()
{
	int totalMinutes;     // total time spent in days activities
	
	// computation statement
	
	totalMinutes = DRESS + 3 * EAT + 2 * DRIVE + 4 * CLASS;
	
	// output statements
	
	cout << "You spend " << totalMinutes / 60
	     << " hours and " << totalMinutes % 60
	     << " minutes on scheduled activities." << endl;
	
	return 0;
}

