Thread: Anybody pls help on writing program for this!!

  1. #1
    Registered User
    Join Date
    Sep 2010
    Posts
    19

    Anybody pls help on writing program for this!!

    MY PROGRAM IS NOT RUNNING..NEED HELP ON THIS..

    At the beginning of the system, you need to input number of students and number of subjects that have been marked. Then, you need to enter the student's identification number and marks for each subject. While entering the marks, you have to determine their respective grades and display the grades based on the following table:

    Marks Grade
    80 ≤ marks ≤ 100 A
    70 ≤ marks ≤ 79 B
    60 ≤ marks ≤ 69 C
    50 ≤ marks ≤ 59 D
    40 ≤ marks ≤ 49 E
    marks ≤ 39 F

    After determine the grades, you need to come out with the total marks and find the average marks of the subjects. If the average marks is greater than or equal to 40, the respective student can proceed to the next semester.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    So, what is your current program, and what is the exact error involved?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Sep 2010
    Location
    Halesowen, England
    Posts
    30
    What have you done so far? Why isn't it working?
    Can you put your source code here (in [code]...[/code] tags)?

  4. #4
    Registered User
    Join Date
    Sep 2010
    Posts
    19
    i m using C compiler. the whole project corrupted..i need to start from beginning. i m new to programming.pls help on how to start and identify problem

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Sorry to hear that, but then you should try to rewrite your program first. Remember to backup, just in case.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Registered User
    Join Date
    Sep 2010
    Posts
    19
    pls recommend some website with sample of C programming

  7. #7
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    You really believe that this C forum, has no C code in it's many pages?

    Really?

    What are you stuck on?

    The truth is, if you wrote a program that did this assignment, you'd have no problem getting the new version, at least well started.

    So, enough with the BS, and how can we help you with your program? We will help, but we won't write it for you.

  8. #8
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    Quote Originally Posted by scorpio76 View Post
    pls recommend some website with sample of C programming
    http://cboard.cprogramming.com/ - Thousands of code snippets

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > the whole project corrupted..i need to start from beginning.
    Ah, the high-tech version of "my dog ate my homework".
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-16-2009, 06:00 AM
  2. Need some help with C program writing
    By The_PC_Gamer in forum C Programming
    Replies: 9
    Last Post: 02-12-2008, 09:12 PM
  3. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  4. Writing a checklist program for MTGO?
    By CrYpTiC in forum Game Programming
    Replies: 2
    Last Post: 04-08-2005, 09:46 PM