Thread: GradeInfo

  1. #16
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    Rea/write to a file

    I have replaced %c to % d
    do i need a function for this or everything can fit in main?

  2. #17
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You can always make something into a function if you want to later, but it doesn't seem necessary to me.

  3. #18
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    Whats missing?

    I am getting a compiler error on this one ?

  4. #19
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    You declare quizz_scores[100], but try to use quiz_scores[i].

  5. #20
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    C99 ???

    I am almost done but now this ???

  6. #21
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Quote Originally Posted by kirksson View Post
    Can you at least write some of the code so i can get a clue.
    That is what your professor does in class, I imagine. I provided you an entire layout of how to write the program step by step. All you had to do was translate it from what I wrote to C.

    Quote Originally Posted by kirksson View Post
    We never had to read in the numbers onlu letters, this one is really tough. Trust me, otherwise i would not have post it.
    I doubt the veracity of this, but even so, it doesn't take much to read a number vs a letter. You should have a C textbook handy.

    Quote Originally Posted by kirksson View Post
    You can call me lazy but i ve been on this already for 72 hrs and my head is numb.
    Well, if your head goes numb while writing garbage, I can't imagine the stress you'll be under while trying to write real code.

    My point was about how you wrote code that isn't very close to being valid, and then asked us to tell you what was wrong. If I wrote a somewhat random sentence in English and asked you where I was going wrong with learning English, you probably wouldn't know where to start to even correct me. That is more or less the type of thinking one might see when they look at your code.

    Quote Originally Posted by kirksson View Post
    If you can help, please do otherwise save me from cheap comments.
    You were once in my shoes i would assume.....now i bow.......
    With regards to bowing, you should be bowing before God and praying you pass this course instead of begging us to help you. And even better would be that you pray that you do good with your time in life.

    I have tried to help, but that is the key word. I can only help you. If I write the code for you, I'm not helping. And yes, I was once a pathetic newbie that didn't have a clue about the language, but I learned it by working at it. I didn't learn it from a forum, from begging people to write code for me, or anything else of that nature. I had some resources to learn from, and I took advantage and learned it.

    Your motivation to learn C is nowhere near the level of where it should be. If you can't be motivated to learn, or at least industrious enough to work at it, you will not master it. You should be asking yourself why you're taking the course and what you really want in life in terms of a job if you happen to be in anything CS-related.

    My comments may be harsh sounding to you, perhaps because you might not be used to hearing people be completely honest with you, but if you can look at your situation objectively, I think you will find out what I'm saying can help you in the long run. So think about it. You have to turn your situation around quickly. If you can't write code for a non-pressure assignment, how will you write it during any tests? If you can't write code during the tests, then what? You can't pass the course, and you'll be wasting your time.

  7. #22
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Do you have a question here, or not?

  8. #23
    Registered User
    Join Date
    Oct 2007
    Posts
    21

    Very hurt though

    How about this, can you point what am i doing wrong professor.

  9. #24
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    1. When you print your quiz scores (or any scores), you have three %d's, but only two arguments.
    2. Also you probably want to print quiz #1 rather than quiz #0, etc.
    3. After printing: add things up! Add the scores, add the totals, and then you can compute the scores.
    4. Don't read in quiz, assignment, and exam each time -- only once!
    5. Your for-loops are not always right -- sometimes you forget the i=0 part, sometimes you forget to change quiz to assig or whatever, sometimes you forget what variable you're using (using i in a for-loop based on j, etc.)
    6. You need to use the computed percentages AND the weights you read in at the first (remember them?): quiz*quizweight + assig*assigweight + exam*examweight.
    7. You have gaps in your grade scale (89.5 gets no grade, for example).
    8. No one fails.

Popular pages Recent additions subscribe to a feed