Question: C Program for Courses Registration Courses.txt ENGG1110 3 Problem Solving by Programming CSCI1130 3 Introduction to Programming Using Java CSCI2040 2 Introduction to Programming Using
C Program for Courses Registration






Courses.txt ENGG1110 3 Problem Solving by Programming CSCI1130 3 Introduction to Programming Using Java CSCI2040 2 Introduction to Programming Using Python ENGG2602 1 Engineering Practicum MATH1110 3 Elementary Mathematics UGFX7788 4 Perspectives in University General Education CSCI2100 3 Data Structures PTHE1000 1 Putonghua I ENGG1000 1 IT Foundation END
Grades.txt 1156493117 ENGG1000 B 1156172841 ENGG1000 B+ 1156568410 CSCI2100 D 1156873296 ENGG1000 C 1156627958 UGFX7788 C- 1156709121 ENGG1110 F 1156627958 MATH1110 B- 1156709121 CSCI2040 C- 1156568410 MATH1110 B+ 1156221557 ENGG1000 B 1156568410 CSCI2040 C 1156172841 ENGG2602 F 1156493117 ENGG2602 D 1156873296 MATH1110 B+ 1156050264 PTHE1000 C- 1156389229 UGFX7788 B+ 1156221557 MATH1110 C 1156172841 UGFX7788 B 1156050264 ENGG1000 D+ 1156873296 CSCI2100 A- 1156627958 CSCI2100 C+ 1156050264 UGFX7788 B- 1156627958 ENGG1000 A- 1156709121 CSCI2100 B- 1156050264 ENGG1110 C+ 1156937468 PTHE1000 A 1156873296 ENGG2602 C+ 1156937468 ENGG1000 B- 1156709121 ENGG1000 C+ 1156221557 CSCI2040 F 1156172841 ENGG1110 A 1156389229 CSCI1130 C+ 1156709121 MATH1110 D+ 1156172841 MATH1110 B+ 1156627958 CSCI1130 C+ 1156568410 ENGG1000 A- 1156937468 ENGG2602 C- 1156493117 CSCI2040 B- 1156221557 PTHE1000 F 1156389229 ENGG1000 B END
GPA converter
| Grade | Point |
| A | 4.0 |
| A- | 3.7 |
| B+ | 3.3 |
| B | 3.0 |
| B- | 2.7 |
| C+ | 2.3 |
| C | 2.0 |
| C- | 1.7 |
| D+ | 1.3 |
| D | 1.0 |
| F | 0.0 |
b) Open, read and store course information into a defined data structure. Filename is courses.txt and the file format is defined following this example: ENGG1110 3 Problem Solving by Programming CSCI1130 3 Introduction to Programming Using Java CSCI2040 2 Introduction to Programming Using Python ENGG2602 1 Engineering Practicum MATH1110 3 Elementary Mathematics UGFX7788 4 Perspectives in University General Education CSCI2100 3 Data Structures PTHE1000 1 Putonghua I ENGG1000 1 IT Foundation Each line contains three pieces of information separated by spaces: 8-char (4 capital letters Copyright 2017-18 CSE, CUHK, designed by Michael Ping-Fu, FUNG Page 1 of 6 plus 4 digits) course code, a single digit representing number of credit units, and the course name that spans until the end of line. Note that there may be spaces in the course names and each course name shall be less than 80 characters. You shall use fgets ) to read the course names. The last line in the file shall be END. There are at most 20 courses
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
