subject

One of your professors has asked you to write a program to grade her midterm exams, which consist of only 20 multiple-choice questions. Each question has one of four possible answers: A, B, C, or D. Create a file "CorrectAnswers. txt" and write the correct answers for each question on a separate line so that the first line contains the answer to the first question, the second line contains the answer to the second question, and so forth. Similarly, create a file "StudentAnswers. txt" and write the student’s answers for each question on a separate line. Write a program that reads the contents of the CorrectAnswers. txt file into a char array, and then reads the contents of file StudentAnswers. txt into a second char array. The program should determine the number of questions that the student answered correctly and then display the following: • The total number of questions answered correctly. • The percentage of questions answered correctly. • If the percentage of correctly answered questions is 75% or greater, the program should indicate that the student passed the exam. Otherwise, it should indicate that the student failed the exam.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
You know the right answer?
One of your professors has asked you to write a program to grade her midterm exams, which consist of...
Questions
question
Mathematics, 08.07.2019 23:10
question
Social Studies, 08.07.2019 23:10
Questions on the website: 13722360