Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The data.txt includes this; No. Matric_card_no SEMM1213 SEMM1113 SEMM1512 SEMM1912 SEEU1002 SSCE1793 UHMT1012 UHMS1172 UHLM1012 1 A18KM0001 61.1 53.6 41.0 67.3 12.6 88.8 58.9 8.5

image text in transcribed

The data.txt includes this;

No. Matric_card_no SEMM1213 SEMM1113 SEMM1512 SEMM1912 SEEU1002 SSCE1793 UHMT1012 UHMS1172 UHLM1012 1 A18KM0001 61.1 53.6 41.0 67.3 12.6 88.8 58.9 8.5 11.7 2 A18KM0002 67.5 49.4 10.4 18.9 81.5 57.0 52.1 82.2 24.7 3 A18KM0003 49.8 81.9 3.6 90.2 51.6 43.3 62.8 97.5 12.2 4 A18KM0004 44.4 28.3 31.4 34.8 87.0 27.2 78.9 72.3 45.9 5 A18KM0005 45.6 39.0 60.7 60.2 93.6 10.8 98.7 58.6 11.7 6 A18KM0006 5.8 44.7 87.6 52.0 18.0 81.0 2.9 2.5 45.1 7 A18KM0007 86.1 89.8 90.1 79.1 91.7 62.9 51.7 63.3 16.0 8 A18KM0008 83.8 59.8 48.2 71.8 34.3 78.4 7.5 60.2 51.7 9 A18KM0009 6.9 2.1 94.3 74.7 0.5 53.9 73.1 28.6 3.5 10 A18KM0010 59.9 19.1 70.3 1.4 51.8 16.1 43.3 24.0 35.4 11 A18KM0011 28.0 41.3 79.8 78.5 95.3 91.1 71.9 5.7 0.5 12 A17KM0012 12.4 68.9 86.5 98.5 51.2 17.8 28.5 1.4 83.7 13 A18KM0013 4.7 47.2 59.6 62.0 58.0 40.4 69.8 29.9 81.2 14 A18KM0014 48.2 8.5 96.8 95.7 45.6 76.9 77.3 83.9 63.8 15 A18KM0015 42.9 88.9 41.2 30.5 30.6 49.8 9.1 90.3 58.4 16 A18KM0016 53.1 10.2 2.6 12.4 5.7 35.8 75.3 11.2 6.5 17 A18KM0017 93.0 21.4 44.8 70.3 78.4 44.9 65.5 47.1 96.7 18 A18KM0018 77.0 29.2 56.3 35.3 99.1 25.4 78.8 85.8 38.8 19 A18KM0019 6.4 90.5 63.8 99.0 11.6 75.2 84.3 83.3 81.5 20 A18KM0020 78.2 11.8 76.5 62.3 23.0 89.2 88.6 44.1 20.9 21 A18KM0021 22.7 59.1 83.3 60.0 78.7 78.1 26.0 41.0 84.1 22 A18KM0022 22.2 14.8 42.5 42.4 50.7 71.7 87.8 42.9 64.5 23 A18KM0023 3.5 83.9 46.7 91.7 11.3 47.4 5.2 42.5 11.1 24 A19KM0024 21.5 31.4 11.4 13.6 6.2 78.2 34.1 40.6 68.9 25 A18KM0025 55.3 88.8 23.5 4.6 58.3 37.1 88.3 12.1 24.1 26 A18KM0026 89.0 34.0 27.6 13.3 24.6 83.3 66.9 54.1 86.0 27 A18KM0027 22.1 77.3 98.4 24.9 47.8 63.7 85.6 39.6 60.2 28 A18KM0028 76.4 30.7 98.2 29.6 1.0 33.0 33.3 54.5 25.8 29 A18KM0029 91.7 10.1 73.6 25.7 57.2 74.6 82.9 92.7 27.0 30 A18KM0030 91.0 47.8 92.2 59.6 53.0 1.3 7.9 64.0 25.0 31 A17KM0031 40.8 34.0 42.9 18.1 89.2 92.1 78.5 51.3 23.3 32 A18KM0032 20.6 62.2 70.1 16.2 49.8 42.1 6.6 29.4 33.0 33 A18KM0033 90.1 71.3 19.3 41.5 19.9 45.1 93.9 75.3 0.7 34 A17KM0034 94.1 48.0 4.5 61.5 16.3 78.3 76.6 54.9 67.2 35 A18KM0035 79.6 81.6 31.1 10.2 74.1 70.9 68.9 34.3 9.5 36 A18KM0036 14.8 41.4 80.4 45.2 4.9 39.3 22.9 13.8 78.6 37 A18KM0037 13.3 87.1 95.5 20.6 83.6 53.8 29.5 27.5 0.2 38 A18KM0038 19.6 15.0 5.2 21.5 8.8 11.5 89.1 33.1 11.9 39 A18KM0039 84.6 5.1 89.1 46.7 93.0 53.3 4.4 56.3 86.0 40 A18KM0040 79.2 45.5 88.4 73.0 33.8 46.0 57.8 31.7 11.2

Task: You are required to produce a C-program to grade the marks and calculate the Grade Point Average (GPA) for a group of Mechanical Engineering students. The list of students, subjects taken, and marks are given in the file data.txt. To complete the task, you have to read the data file provided and produce a separate data file to include the following: 1. Grades for the courses based on the marks obtained by each student 2. Indicate whether the student is required to repeat the subject with the notation (UK) 3. GPA for each student 4. Based on the GPA, indicate the status of the student's results based on Good Status (KB), Probation Status (KS) or Failed Status (KG). 5. At the end of the output file, indicate the number of students with the status KB, KS and KG. Mark 90-100 80-89 75-79 70-74 65-69 60-64 55-59 50-54 45-49 40-44 35-39 30-34 00 - 29 Grade A+ A A- B+ B B- C+ C- D+ D D- E Grade Point 4.00 4.00 3.67 3.33 3.00 2.67 2.33 2.00 1.67 1.33 1.00 0.67 0.00 *The minimum passing grade is 40% (except for core subjects) in which any marks less than this will require the student to repeat the subject. **Passing mark for core subjects (SEMM1213 and SEMM1113) is 50%. Academic Performance Rating KB - Good Status KS - Probation Status KG - Failed Status (Study Terminated) GPA CPA 22.00 1.70 s CPA

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions