// Program calories caculates the number of calories in a
// cheese sandwich.

// 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 BREAD = 63;       // calories in a slice of bread
const int CHEESE = 106;     // calories in a slice of cheese
const int MAYONNAISE = 49;  // calories in mayonnaise
const int PICKLES = 25;     // calories in pickles

// Define the global function main()

int main()
{
	int totalCalories;     // calories for the sandwich; this is local to main
	
	// computation statement
	
	totalCalories = 2 * BREAD + CHEESE + MAYONNAISE + PICKLES;
	
	// output statements
	
	cout << "There were " << totalCalories;
	cout << " calories in my lunch yesterday." << endl;
	cout << "What is for lunch today?" << endl;
	
	return 0;
}

