Hello guys! I'm a sofware engineering student and i have an assignment that i'm struggling to do

Can you please help me? I think, that program is not so difficult. It should be written in C language

Programming Assignment A Simple File Processing System In the early days of computing systems, file processing systems had appeared as primitive database application programs. In those years, one of the main programming tasks of systems programmers were to develop such systems. A simple file processing system is just a computer program written to process and maintain some important data spread across some files. For instance, a course may necessitate organizing a multiple-choice examination. There can be a file keeping records of the students, there can be a file keeping solution keys, and there can be a file keeping answers of the students obtained with the help of an optic-code reader. So, in this assignment, students are going to develop one such a system for processing the aforementioned files. You are given three data files, namely, the “students.txt”, “booklet.txt”, and “answers.txt”. Student file keeps information as the student number, name, surname, and department name. Booklet file keeps information as the booklet types and the solution keys for each. Answer file keeps information as the optic-code reader output, which is the student number and the answers of the student. The format of “students.txt” file is like the student number, name, surname, and department name as: 127150 EMIN CELEBI ECE … The format of “booklet.txt” file is like the first line for booklet type A with 50 multiple-choice correct answers as: ADBABDCBAADBAADADBBDDABABCCACDCCBADAABCCDCBBDBBCBB … The format of “answers.txt” file is like the first line for student numbered 194057, booklet type C, and the student’s answers as: 194057 C CCACAABDDCCDBABDDDAABABCDBD*BBCBBCBBDCD**BBCDD … Note that we have data separated by space characters in the given files. For instance, between the number, name, surname, and department name, there is a single space character. Department names are abbreviated, however, you can print full names to the resulting file. A student may not answer a question. Thus, there may be ‘*’ sign instead of the multiple-choice answer A, B, C, or D. The examination implements a system to prevent students throwing answers by applying point deduction for the wrong answers. For each five-wrong answer, the number of correct answers will be reduced by one. For instance, if a student has 32 correctly and 13 wrongly answered questions, then the student has 29.4 netted correct answers. Thus, the score of the student is 58.8 out of 100. Pay attention to the fact that the order of students in the student and answer files are not same. The program should read the given files and produce a new file called “results.txt”. The resulting file should strictly have a format as: PART-A (Results) Std. No. Name and Surname Department Correct Wrong Score 127150 EMIN CELEBI ECE 32 13 58.8 … Exam average: 45.7 PART-B (Statistics) Booklet-A Question Correct Answer A B C D Blank Success Rate 1 D 3 2 4 5 1 %63.7 2 B 5 9 1 7 2 %52.3 … Booklet-B … The output shown above is just for exemplification and is not the result of a running program. It is highly recommended to write a few C functions in developing a solution for the task. It is the student’s responsibility to search, find, try, and learn file-handling functions of the standard C library as part of the programming assignment.


Ответы (0 шт):