Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

FORTRAN PROGRAM FOR MEANS (Beginner)

  1. Mar 9, 2013 #1
    I am learning Fortran and I am able to write code for 3 number means. Now For computing it for set of numbers is not getting in my mind. I am not able to do it.

    Writing a single Fortran program that calculates the arithmetic mean, rms (root-mean-square) average, geometric mean, and harmonic mean for a set of numbers. Running the code for the following four sets of numbers.
    (a) 4, 4, 4, 4, 4, 4, 4
    (b) 4, 3, 4, 5, 4, 3, 5
    (c) 4, 1, 4, 7, 4, 1, 7
    (d) 1, 2, 3, 4, 5, 6, 7

    Thanks for the help.
     
  2. jcsd
  3. Mar 11, 2013 #2

    DrClaude

    User Avatar

    Staff: Mentor

    Can you post what you have done so far?
     
  4. Mar 11, 2013 #3

    jtbell

    User Avatar

    Staff: Mentor

  5. Mar 11, 2013 #4

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    You've already programmed the formulas. Are you having trouble doing the arithmetic?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: FORTRAN PROGRAM FOR MEANS (Beginner)
  1. Programming in fortran (Replies: 5)

  2. Beginner Fortran Help (Replies: 4)

Loading...