Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    please help an idiot with a simple averaging script.

    Coding just isn't my thing. I've searched tutorials, and made several attempts, but to no avail. All I need is a script that includes a student name variable, and can compute the average of three assignments (number grades not, letters). I know I've just opened a floodgate for flames, and I know how common, and annoying these requests must be. For that I apologize, but I figured I'd ask anyway. Thanks in advance. Heres hoping someone will humor this nonsense, and offer up a script

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,910
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    I am afraid that the rules of the forum do not allow us to do homework assignments. If you simply turn in someone else's work you will never learn yourself (and have an even bigger problem with your next assignment).

    You say you have made several attempts. Post one of them and someone will probably be able to point you in the right direction. And please do not use the gruesome expression "Thanks in advance". It is discourteous and says that although you are a newcomer you take other's help for granted.

  • #3
    Regular Coder
    Join Date
    Dec 2002
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts

    When I was in school...

    I did two versions of every programming assignment: a working solution that I kept secret until turned in, and a subtly flawed decoy that I left around for the plagarists to find...

  • #4
    Regular Coder
    Join Date
    Sep 2005
    Location
    Chicago, IL
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Like Philip said - your best bet on here for help with homework is to post what you've already done and have someone guide you in the right direction. I dunno about everyone else on here, but i'm not a fan of doing someone else's homework without getting the credit for it.
    I'm only telling you how I would do it, not how its supposed to be done. ;)

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    620
    Thanks
    1
    Thanked 20 Times in 20 Posts
    simple averaging script:

    function Avg(V1,V2,V3) {
    A=(V1*1+V2*1+V3*1)/3;
    return A;
    }


  •  

    Posting Permissions

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