Results 1 to 8 of 8

Thread: Need Help Fast.....Weighted average?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Need Help Fast.....Weighted average?

    Hey, I have to use this today in my programming test, and I don't remember how to calculate a weighted average. Say there are 3 grades a Quiz, a Test, and Homework.

    The test is weighted 60% of the grade, the homework is 20%, and the Quiz is 20% of the grade.

    Say the grades for these are: 85, 70, 90

    How would I calculate the weighted average? Any help extremely appreciated.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    That's a purely statistical problem, not programming

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Multiply each grade by its percentage.... then sum the results from all 3...

    Test Weight: 60%
    Score: 85
    WS: 51

    Hmk Weight: 20%
    Score: 70
    WS: 14

    Qz Weight: 20%
    Score: 90
    WS: 18

    Weighted Average: 51+14+18 = 83

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2001
    Location
    Maumelle, AR
    Posts
    624

    Thanks......

    I know that is not programming, but I have to assign costants and make that calculation in my program to be able to update the database I'm working with. I don't know why he couldn't just let us use a regular average.

  5. #5
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109
    How often is the simple answer the one desired?

  6. #6
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Wink

    Is there a complex version?

  7. #7
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109
    I have no doubt that, given a little time, there is always an answer to any question such that nobody, not even the person giving the answer can figure it out.

  8. #8
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Unhappy

    Stop screwing with me man... my head's hurtin...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width