First, I need to rewrite the program to incorporate functions. And there should be a value returning function that returns an int that the user entered. It will be called 5 times, once for each integer input.
After I compile the program, I need to modify the program again and replace the output statements with a call to a non-value returning function PrintAvg( ) that takes one parameter which is the calculated average. The function...
User Profile
Collapse
-
Modifying a program to incorporate functions. LOST!!
-
I follow. But how would I write that in code? I'm lost.
(Not to make you do that part of the work... but, I don't know how to write that)
Thanks! -
How to round decimals in a simple manner
I need to round up with a program I'm supposed to develop that calculates the amount of money you need for a birthday party. The problem is, some of the things that need to be purchased come in a pack of so many. For instance, with the code below, 4/16 is going to be .25 (without the input of the variable that represents the amount of guests). Obviously, I can't buy .25 of something (in this case, a pack of napkins that come in 16). So, what would...
No activity results to display
Show More
Leave a comment: