Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program using the C programming language to aid a lecturer grade her student's exam. The exam has 7 questions. For every question there

image text in transcribed

image text in transcribed

Write a program using the C programming language to aid a lecturer grade her student's exam. The exam has 7 questions. For every question there is one answer. The program will read the answers of the students and the correct answers from input files. Then, it will print the results on the screen and create an output file. The number of students is not known but it will be 40 or less. Input The answers of the students are stored in a data file entitled StudentAnswers.dat" as shown in Figure 1. In this file the first column shows the name of the student in one word, the second column shows their student ID, and the third column until the last column shows the students answers for question 1 to 7. In Figure 1, there are only four students but you have to complete this input file with data for at least 8 students and cover all situations. The correct answers for all the questions are stored in a file entitled "CorrectAnswers.txt" as shown in Figure 2. C Output The program needs to determine and print out the following items on the screen as shown in Figure 3 Ask the students for their student ID Show the student's ID and name Compare the student's answer and the correct answer. If the round of the student's answer is equal to the round of the correct answer, the student's answer is accepted as correct. For example, the students answer is 54.2 and the correct answer is 53.8, round of both answers is 54. Hence, the student's answer is correct. Determine and display the total number of questions missed by the student. Show a list of the questions missed by the students Calculate and display the percentage of questions answered correctly using the formula:- correctly answered questions percentage = Total number of questions Show the grade obtained by the students based on the following metric:- Percentage, x Grade . x 100 . 80

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Postgresql 16 Administration Cookbook Solve Real World Database Administration Challenges With 180+ Practical Recipes And Best Practices

Authors: Gianni Ciolli ,Boriss Mejias ,Jimmy Angelakos ,Vibhor Kumar ,Simon Riggs

1st Edition

1835460585, 978-1835460580

More Books

Students also viewed these Databases questions

Question

Describe the most common content of dreams.

Answered: 1 week ago