Write a program that contains the function calories


Write a program that contains the function calories() that is to accept a long integer number total and the address of the integer variables pizza, chips apples and mustard. The passed long integer represents the total number of calories you are able to consume in this meal, and the function is to determine the number of calories in slices of pizza, bags of chips, apples, and teaspoons of mustard in the passed value, writing these values directly into the respective variables declared in the calling function.
This function will be called from the main program and when it returns to main it will print out the values of variables, pizza, chips, apples and mustard.

Calories are in this order
pizza 385
chips 170
apples 80
mustard 5 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that contains the function calories
Reference No:- TGS0143942

Expected delivery within 24 Hours