User Profile

Collapse

Profile Sidebar

Collapse
HEMH6
HEMH6
Last Activity: Dec 1 '06, 03:48 AM
Joined: Sep 29 '06
Location: singapore
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • HEMH6
    started a topic How to calculate weighted average
    in C

    How to calculate weighted average

    Weihted Average

    Write a C program to calculate and print the weighted average of a list of N
    floating point number, using the formula

    Xave = F1X1 + F2X2+...+ FnXn

    where the F's are fractional weighting factors,

    i.e. 0<=F1<1, and F1+F2+...+Fn=1

    For example: F1=0.1 F2=0.2 F3=0.3 F4=0.4 for n=4 and the sum=1.0

    (a) Assume that N=4, and that...
    See more | Go to post

  • HEMH6
    started a topic Funtion to help finding the Largest Value
    in C

    Funtion to help finding the Largest Value

    Who can help solve this problem???

    Finding the Largest Value

    (a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.

    (b)Write a main program that inputs MAX values from the keyboard into a signed
    integer array, array, and points, using largest(), the largest value to the screen.
    See more | Go to post
No activity results to display
Show More
Working...