I have replaced %c to % d
do i need a function for this or everything can fit in main?
I have replaced %c to % d
do i need a function for this or everything can fit in main?
You can always make something into a function if you want to later, but it doesn't seem necessary to me.
I am getting a compiler error on this one ?
You declare quizz_scores[100], but try to use quiz_scores[i].
I am almost done but now this ???
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.
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.
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.
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.
How about this, can you point what am i doing wrong professor.
- When you print your quiz scores (or any scores), you have three %d's, but only two arguments.
- Also you probably want to print quiz #1 rather than quiz #0, etc.
- After printing: add things up! Add the scores, add the totals, and then you can compute the scores.
- Don't read in quiz, assignment, and exam each time -- only once!
- 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.)
- You need to use the computed percentages AND the weights you read in at the first (remember them?): quiz*quizweight + assig*assigweight + exam*examweight.
- You have gaps in your grade scale (89.5 gets no grade, for example).
- No one fails.