Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

-Your input data will be obtained from two text files where this will contain records of several students; the total of which is unknown (for

-Your input data will be obtained from two text files where this will contain records of several students; the total of which is unknown (for the purpose of this assignment have at least data for five students). The first input file is called courses.txt where it contains the course code and the course name. Keep this in array form. The number of credit hours will be extracted from the last digit of the course code ex. SCSJ1013 is 3 credit hours. Assume that all students are taking the same courses. The second data file scores.txt should consist of all students records consisting of his/her name, matriculation number and the marks obtained for each course marked by its code only. When extracting or reading data from the files validate first before proceeding and give appropriate messages for unsuccessful cases. The detailed results will be displayed on screen for all students as well as in separate output files for each student. The number of output files generated will be according to the number of students that you have in your second data file. The name of each data file will be extracted from the students matric number with a .txt extension ex. AC151019.txt. Besides the requirements stated, you must make sure that you apply the concepts of functions where it will control the assignment of grade, grade point and anything else you deem necessary for this task. You are not allowed to use void functions without any parameters and you also are not allowed to use global variables in your program. Make sure you include returning functions as well where suitable and for void functions reflect changes in values through the use of parameters.

image text in transcribed

-please this subject quotations from picture 2,and read all the criteria

image text in transcribed

UTM follows the GPAgrading system. The relationship between marks, grade and grade points is as shown in Table 1 below Table 1: Relationship between Marks, Grade and Grade Points 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 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 B+ B- C- D+ D- At the end of each semester a student's GPA or grade point average will be calculated to determine his/her academic standing. The grade point average is calculated from the student's final mark for each course registered during the semester. A typical example for courses registered by a first semester student is SCSJ1013, SCSI1013, SCSP1513, SCSR1013, UHAK1012, UHAS1172 and UIC11012. The last digit in the course code is the credit hours for that particular course. This student has registered for a total of 16 credit Further if the student scores 90, 88, 72, 61, 53, 44 and 99 respectively for these courses, then his/her grades, grade points and grade point values for each course would be A+4.00 g 12.0 (credit hour for the coursex grade point achieved, here it is 3 x 4.0), A+1 4.00 :12.00, B+ 3.3319.99, B-E 2.67/3.01. C 2.00 X4.00. D+R 1.33 12.66 and A+ 4.00 8.00. You will then total up the grade point values earned; in this case it is 60.64. The formula for GPA is Totalgrade point values earned/ Total credit hours registered. In this case 60.64 / 16. Therefore this student will get a GPA of 3.7%, The CPA or Cumulative Point Average will be calculated as: the cumulative total grade point values of all semesters / the cumulative credits taken. However, for a first year first semester student, the GPA and CPA values are the same. This is referred as the academic standing of the student. From this calculation the university will issue the academic status of the student

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago