Hints required to complete simple programs
Hi, I'm new to C programming and I could really ungently do with some helpful hints (or partial code if you have the time and patience) to help me complete these simple problems:
Problem 1. A program to allow the user to record a an individuals vote which will be either a 'YES' or 'NO'. It is not known how many people will vote but it will be not more than a maximum of 1000. The number of votes will be entered first, and when all have been cast, the total numbers voting YES and NO will be displayed.
The only problem I have with this one is that I have no idea what code I should use to count the votes from the inputted number and store them.
Problem 2. A program to input the results of a series of 5 examinations, then output the average result together with the overall grade for the average, the grading is as follows:
A = 70%+, B=60-69%, C=50-59%, D=40-49%, E=30-39%, F=0-29%)
I pretty much figured I need to use a loop here. But I have no idea how to write the code to keep checking the current grade against the given grading.
All help is appreciated! Thanks v.much in advance!
DC.