Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

aishrai

macrumors newbie
Original poster
Feb 7, 2015
1
0
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
 

Attachments

  • I want a program in c language using file handling concept.pdf
    135.3 KB · Views: 666
Last edited by a moderator:
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.