Program

jayace

Member
Joined
Aug 22, 2011
Messages
6
Programming Experience
Beginner
The numbers of calories per gram of carbohydrate, fat, and protein are 4, 9, and 4, respectively. Write a program that request the nutritional content of a 1-ounce serving of food and displays the number of calories in the serving. The input and output should be handled by Sub Procedures and the calories computed by a function.

sample input:
carb=24
fat=1
protein=1

total=109
 
Are you expecting someone to do your homework for you?

How about posting some code of your own, and asking for help with a specific part that's giving you a problem.
 
Back
Top