Need help with C project

Discussion in 'Mac Programming' started by aishrai, Feb 7, 2015.

  1. aishrai, Feb 7, 2015
    Last edited by a moderator: Feb 7, 2015

    aishrai macrumors newbie

    Joined:
    Feb 7, 2015
    #1
    hi ,
    i tried several time but unable to get write code . plz help me.... Here is my problem

    I want a program in c language using file handling concept that read the input from the p.txt file where actual effort and estimated error is written of five projects like
    Project ID actual effort (AE) estimated effort (EE)
    A 2580 1507
    B 3045 1325
    C 3693 1661
    D 1205 1072
    E 3501 3231
    Calculate the value of MRE and MER for each individual project and using obtained value of MMRE and MMER calculate the MMRE, MMER, MSE, MMSE and PRED(x) for each value of x like x= 15,20,55,60 using the formulas given below-
    MRE = (AE - EE)/AE , where AE-EE is within mode
    MER = (AE-EE)/EE , where AE-EE is within mode

    Remaining formulas are written in the attached file

    • PRED (x): PRED (x) is the percentage of projects for which estimated value falls within x %.


    Where, n = total number of projects
    x = selected range of maximum MMRE
    k = number projects in a set of n projects whose MMRE <= x


    plz anybody reply asap ..i need it urgently
     

    Attached Files:

  2. hokan macrumors member

    Joined:
    Mar 18, 2014
    Location:
    Sweden
    #2
    No, we're not going to do you homework assignment for you.

    Instead post the code you got and tell us where you are getting stuck or ask about concepts you don't understand.

    Try to break the problem into sequential parts and check with print statements or the debugger that each command sets variables to their expected value and that functions return what they are supposed to.

    Pay attention to any compiler warnings as well as error values/codes that are returned by functions when the program is run.
     
  3. thekev macrumors 604

    thekev

    Joined:
    Aug 5, 2010
    #3
    You didn't even state where you're stuck, but this isn't a very difficult problem. Just start by making sure you can read and store the input from the text file without errors. Don't bother with the rest of it until you can do that, because it probably has the highest potential for subtle errors.
     

Share This Page