All pastes #416131 Raw Edit

Stuff

public text v1 · immutable
#416131 ·published 2007-03-30 02:11 UTC
rendered paste body
##########################################################
# Caloric
#
# Written By:
#		Derek Mcdonald
#
##########################################################

# Global Variables
calorie = 0
a = 0 
b = 0
c = 0
breakfast = ''
lunch = ''
dinner = ''
#function to get input of various foods eaten
def eaten():	
	breakfast = raw_input ("what did you have for breakfast? ")
	lunch = raw_input ("what did you have for lunch? ")
	dinner = raw_input ("what did you have for dinner? ")

# Function to calculate and print total caloric intake
def dailyintake():
	calorie= a+b+c
	print calorie

#function to asign a caloric value to eaten items
def cal():
	if breakfast == 'taco':
		a = 350
	if lunch == 'taco':
		b = 350
	if dinner == 'taco':
		c = 350
eaten()
cal()
dailyintake()