//Ryan Shahriyarpour    CS1A    Carl Argila CH3     HW Q:7
//
/*****************************************************************************
 * 
 * How Many Calories Eaten Total
 * 
 * 
 * 
 * *********
 *
 * The goal is to calculate total calories consumed based on cookies eaten
 * 
 * Calories Per Cookie = Total Calories / Total Cookies
 * Total Calories Consumed = Cookies Eaten * Calories Per Cookie
 * 
 * 
 * 
 * 
 * ************
 * 
 * 
 * 
 * INPUT
 *  cookiesEaten : number of cookies the user ate
 * 
 * OUTPUT    
 *  totalCalories : amount of total calories consumed
 * 
 ****************************************************************************/
 
#include <iostream>
using namespace std;
 
int main() {
	int cookiesEaten;
	double totalCalories;
 
	cout << "How many cookies did you eat? ";
	
	// Store input in variable
	cin >> cookiesEaten;
	
	// calculate
	totalCalories = cookiesEaten * (300.0 / 40.0);
 
	// Display the result
	cout << "Total calories consumed: " << totalCalories << endl;
 
	return 0;
}
 