studentNumber (int), courseCode (char array [8]), finalGrade (float). 200201078 CENG104 89.75 200201999 CENG104 77.50 200201078 МАТH102 88.25 200201777 PHYS102 83.00 200201777 CENG104 77.50 200201999 MATH102 75.25 As seen in the example above, a student can have grades from more than one course in the file and more than one student can take the same course. The program will work with the sequential file ceng2021s.bxt. The program will perform the following operations using an option menu. The program will run until O[zero) value is entered. Files shall be created readable form (text mode, not in binary form). 1-Creating the student file from scratch 2-Adding records to the student file 3-listing all students records on the screen 4-By entering one of the students' school number, list the courses codes that are taken by that student and passing grades of that student from those courses. 5-By entering one of the course codes, listing the students school numbers who are taking that course, their passing grades and the average grade of that course code on the screen. 6-By entering a school number from the keyboard, create a new sequential-access text file with the extension txt and writing the students' school number, the courses taken and passing grades of the student. O-Termination of the program

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

The answer will be written according to the C programming language only. It will not be written according to C ++

Problem Definition
Until today, we have learned to write separate programs that perform some file operations on sequential-
access files. These transactions are to open a new sequential file, to write a formatted record to the
sequential file, to read all the records of the file and display it on the screen, or to scan and display the
records that have a specific feature in the file. We ran those programs separately to perform these
operations. Now we will write a single program that runs all these operations by calling them as a function
with the help of a choice list as menu.
Assume that the codes of the courses taken by students enrolled in Computer Engineering Department at
OSTİM Technical University and their passing grades will be recorded in a file at the end of each semester.
The program,
shall write the computer engineering students records for the spring semester of 2020-2021 in a
sequential-access file with the name as ceng2021s.txt,
shall read all of the records from the file and list them on the screen,
shall, by entering school number from the keyboard, list the course codes of a desired student
and display the passing grades taken from these courses,
shall, by entering the course code from the keyboard, list students school numbers taking that
course, the grades of the students and the grade average of the course on the screen,
shall, by entering school number of a student from the keyboard, write the courses and course
grades taken by that student in a newly created separate text file.
Before the preparation of this program, examine the Textbook Fig.11.15. The homework program will be
similar to this example. The format of the information to be written to the ceng2021s.txt file and the
sequential-access file sample shall be as follows.
Transcribed Image Text:Problem Definition Until today, we have learned to write separate programs that perform some file operations on sequential- access files. These transactions are to open a new sequential file, to write a formatted record to the sequential file, to read all the records of the file and display it on the screen, or to scan and display the records that have a specific feature in the file. We ran those programs separately to perform these operations. Now we will write a single program that runs all these operations by calling them as a function with the help of a choice list as menu. Assume that the codes of the courses taken by students enrolled in Computer Engineering Department at OSTİM Technical University and their passing grades will be recorded in a file at the end of each semester. The program, shall write the computer engineering students records for the spring semester of 2020-2021 in a sequential-access file with the name as ceng2021s.txt, shall read all of the records from the file and list them on the screen, shall, by entering school number from the keyboard, list the course codes of a desired student and display the passing grades taken from these courses, shall, by entering the course code from the keyboard, list students school numbers taking that course, the grades of the students and the grade average of the course on the screen, shall, by entering school number of a student from the keyboard, write the courses and course grades taken by that student in a newly created separate text file. Before the preparation of this program, examine the Textbook Fig.11.15. The homework program will be similar to this example. The format of the information to be written to the ceng2021s.txt file and the sequential-access file sample shall be as follows.
studentNumber (int), courseCode (char array [8]), finalGrade (float).
200201078
CENG104
89.75
200201999
CENG104
77.50
200201078
МАТH102
88.25
200201777
PHYS102
83.00
200201777
CENG104
77.50
200201999
МАТH102
75.25
As seen in the example above, a student can have grades from more than one course in the file and
со
more than one student can take the same course.
The program will work with the sequential file ceng2021s.txt.
The program will perform the following operations using an option menu. The program will run until
0(zero) value is entered. Files shall be created readable form (text mode, not in binary form).
1-Creating the student file from scratch
2-Adding records to the student file
3-Listing all students records on the screen
4-By entering one of the students' school number, list the courses codes that are taken by that student
and passing grades of that student from those courses.
5-By entering one of the course codes, listing the students school numbers who are taking that course,
their passing grades and the average grade of that course code on the screen.
6-By entering a school number from the keyboard, create a new sequential-access text file with the
extension txt and writing the students' school number, the courses taken and passing grades of the
student.
0-Termination of the program
Transcribed Image Text:studentNumber (int), courseCode (char array [8]), finalGrade (float). 200201078 CENG104 89.75 200201999 CENG104 77.50 200201078 МАТH102 88.25 200201777 PHYS102 83.00 200201777 CENG104 77.50 200201999 МАТH102 75.25 As seen in the example above, a student can have grades from more than one course in the file and со more than one student can take the same course. The program will work with the sequential file ceng2021s.txt. The program will perform the following operations using an option menu. The program will run until 0(zero) value is entered. Files shall be created readable form (text mode, not in binary form). 1-Creating the student file from scratch 2-Adding records to the student file 3-Listing all students records on the screen 4-By entering one of the students' school number, list the courses codes that are taken by that student and passing grades of that student from those courses. 5-By entering one of the course codes, listing the students school numbers who are taking that course, their passing grades and the average grade of that course code on the screen. 6-By entering a school number from the keyboard, create a new sequential-access text file with the extension txt and writing the students' school number, the courses taken and passing grades of the student. 0-Termination of the program
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY