help me with this pragram

Discussion in 'C' started by telfer, May 31, 2009.

  1. telfer

    telfer New Member

    Joined:
    May 31, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Please I need your help to solve this question:
    Suppose I have the following text file:
    Jone 68
    Mary 90
    Telfer 87
    David 82
    Nelson 95
    Beanchi 73
    ...

    I want a C program to perform the following requirements:

    -----------------------The Main Menu----------------------


    1.Displaying the file contents
    2.Adding a student ( name <=10 characters, 0<=grade<=100)
    3.Searching for a student
    4.finding the student with maximum grade
    5.Sorting the students according to their grade (increasing order)
    6.Sorting the students according to their names ( A is the first)
    7.Counting how many student are in the file
    8.Making a curve to push the students' grades (>=90+1, >=80+2, >=70+3, >=60+4,…).
    9.finding the mean and the standard deviation of the students' grades
    10.Deleting a student from the file
    11.Exit
    -----------------------------------------------------------
    I will be grateful if you help me. pleeeeeeeeeeeeeeeese...

    I am waiting for your answer.
    Thank you.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    This font annoys me and so I would not even like reading your post as well.
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    shabbir: well it's your site so why do you allow fonts? I don't see why they're necessary at all.

    telfer: well, what you describe isn't a difficult assignment. Where are you up to and where are you stuck?
    Can you display the menu yet and get input from the user as to which option they want?

    If you can do that then I would suggest taking the options one at a time and write and test the code for each one before moving on to the next. The first one should be easy enough to do; can you manage that?

    nb: this isn't a free homework service, but we will help you learn if you're interested.
     
  4. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,342
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    http://www.crackingforfun.blogspot.com
    +1. I agree completely.
     
    Last edited: Jun 1, 2009
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    At times you need to make some large fonts for titles or small fonts for some Notes and other things.
     
  6. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    yep but for Articles, not for forum discussions. Emphasis can be done WITH CAPS or perhaps
    with underlining
    ------------------
     
  7. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I guess there is no point in restricting 80% of people to provide something where 20% of people misuse it but then this 20% people can be told and this 20% people can be reduced to very nominal value.
     
  8. telfer

    telfer New Member

    Joined:
    May 31, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
  9. telfer

    telfer New Member

    Joined:
    May 31, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    xpi0t0s

    I need this parogram becase I want to see how its work...

    I didn't try to write a parogram becase I don't know.

    but, I can read a parogram and uese it .


    I will be grateful if you can write this c++ parogram

    Thinks
     
  10. telfer

    telfer New Member

    Joined:
    May 31, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    sorry

    because = becase
     
  11. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Doesn't work that way. You learn programming by programming, not by reading someone else's code.
    Otherwise your course would consist of "here, read this completed sample", "here, read this other completed sample" and so on, but they give you these assignments because doing them yourself is the way you learn.

    Plus if we give you the answer this doesn't highlight the fact that you're stuck at this early stage. Probably you just need stuff explaining more clearly. Programming assignments get harder as you go on, so if we just give you the code we create a dependency cycle that is increasingly hard to get out of and your best bet is to solve this one yourself, with our help if necessary, because that will give you the skills to solve the next one.
     
  12. telfer

    telfer New Member

    Joined:
    May 31, 2009
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    thanks for your advice

    I will try to solve it.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice