User Profile

Collapse

Profile Sidebar

Collapse
Cage26
Cage26
Last Activity: Oct 23 '07, 11:42 PM
Joined: Sep 28 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Cage26
    started a topic Modifying a program to incorporate functions. LOST!!
    in C

    Modifying a program to incorporate functions. LOST!!

    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...
    See more | Go to post

  • Cage26
    replied to How to round decimals in a simple manner
    in C
    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!
    See more | Go to post

    Leave a comment:


  • Cage26
    started a topic How to round decimals in a simple manner
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...