Question: Help me SECTION B: C Programing Answer ALL questions 2 The 5 subjects result of a student in an examination are listed in Table 2
Help me


SECTION B: C Programing Answer ALL questions 2 The 5 subjects result of a student in an examination are listed in Table 2 Table 2 Resu Bubjects English 94% Maths BON Physic B9% Chemistry 72% Blology 82% (a) In this example, single Inked 1st 15 recommended to stored subjects name and the marks of the student. Declare an appropriate struct node for the single linked list. The follows criteria should be tumlled: The struct node should consists of a variable 'subject to store the subject name and a variable marks Declare a variable "HeadNodes associated to the struct node. The "Headliode is the first node in the single linked list [5 marks] D Design a function named "displayList() to perform the follows tasks: List out the marks of all subjects in linked list Assign the grade to each subject. The grade of each subject is assigned based on the Table 2(b). Compute an average mark for the 5 subjects Table 2[b) Marks Grading 3806 A 2609 B 250 e 24096 240 in the console, the output should be displays as follows. LE Fragment of the coding shown follow . PAGE 307 . (1) Design a nunction named display perform the follow Ust out the marks of all subjects in thiked list Assign the grade to each subject. The grade at each subject is askined based on the Tabte 2) Compute an average mark for the 5 subjects Table 2) Marks Grang B0% A 250% B 250% D 240% -40% F In the console, the output should be displays as follows: Subjects Results 1 Grades English 94 Maths Bel A Physic 89 A Chemistry 721 Biology AZI The Eurk for det L 164 Fragment of the coding is shown follows: 1 2 3 vasd at ALLA SE OD du grad roat 4 PAGE 3 OF 7 hogy 15 SONGS 10 as the akit at the Sie k the sk. E desta 3 [15 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
