Register and join over 40,000 other developers!
C++ pointers, references and Dynamic Memory... oh my :(
Siten0308 - Jul 31 2018 02:08 PM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Writing a program to grade a multiple-choice exam -- College Freshman Levelpython new hot grade program c++ java
No replies to this topic
Posted 30 November 2015 - 03:40 PM
You've been asked to write a program to grade a multiple choice exam. The exam has 20 questions, each answered with a little in the range of 'a' through 'f'. The data are stored on a file(data6.txt) where the first line is the key consisting of a string of 20 characters. The remaining lines on the files are exam answers, and consist of a student ID number, a space, and a string of 20 characters. The program should read the key, then read each exam and output the Student ID number, their answers, then the grade, then their standing (above or below average).
Enter the filename: data6.txt
Student ID Student Answers Grade standing
The average of the score is: ________
There are 7 records in the file (has to count this)
The student ID c1234567 has the highest score of 20 (have to print the variables)
I'm not sure how to read the key character by character then compare it to the inputted values, I am having trouble formatting, and differentiating between the ID and the answers.
Thanks so much!