Highlights
Task:
Question 1: (10 points) Structures containing other structure objects Write a C program for the following tasks
. Task 01 Declare a structure having following members
1. An int representing serial number.
2. A student structure having following members
(a) An int representing student roll number.
(b) A char array of size 100 representing student name.
3. A course structure having the following members
(a) A char array of size 6 representing course id.
(b) A char array of size 100 representing course name. Input file format is as described below
1. First line contains number of students in the file.
2. Second line onward contain for each student, which HSS course the student was allocated.
Task 02 Read the input data file using redirection operation into the structure. Hint 01 To read the data perform the following
1. Read an int representing serial number
2. Read an int representing roll number
3. Repeatedly read a char and copy it into student name array till the character is not equal to ‘,’
4. Repeatedly read a char and copy it into course id array till the character is not equal to ‘,’
5. Repeatedly read a char and copy it into course name array till the character is not equal to ‘\n’ Task 03 Find how many students registered for the course id HS116.
Task 04 List the student roll number, student name who registered for HS116 and the student department name. Hint Department code and name mapping are given below
This IT Assignment has been solved by our IT Assignment Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.