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