Quiz 1B - UMBC-CMSC104/General GitHub Wiki
You are to write a program that calculates the number of calories a user will be eating. Call this program quiz1b.c.
Example output:
Eggs and bacon are on the menu today.
Will you be having the eggs? (y/n)
Will you be having the bacon? (y/n)
The eggs are 50 calories and the bacon is 100 calories.
Some example output:
Eggs, bacon, and steak is on the menu today.
Will you be having the eggs? (y/n) y
Will you be having the bacon? (y/n) y
You will be eating 150 calories.
More example output:
Eggs, bacon, and steak is on the menu today.
Will you be having the eggs? (y/n) n
Will you be having the bacon? (y/n) y
You will be eating 100 calories.
You must use a function for calorie input and printing. Also, you must use a running total for your display.
To put that in another way: if your calorie print output is surrounded by an if statement or a switch, it is incorrect.
To submit:
submit cs104_wilson quiz1 quiz1b.c