ASSIGNMENT QUESTION
PURPOSE
The aim of this task is to develop information constructions utilizing C language to resolve a given drawback and show the implementation of applicable information construction options with appropriate check information and output.
PART I / BAHAGIAN I
REQUIREMENT
Question Assignment 1
You might be required to put in writing a C program that can enter the variety of college students and reserve the reminiscence area dynamically. It’s essential to retailer the coed’s identify, ID and Culmulative Grade Level Common (CGPA) collectively as one unit. As a way to do that, you need to use a construction information sort.
Subsequent, you need to declare ptr as a pointer of struct scholar * sort (that may level to the placement of struct scholar sort) as proven beneath:
struct scholar *ptr;
Then, use a linked checklist information construction to retailer the coed info in nodes and hyperlink them. You should use the operator – to entry the information within the construction via ptr.
Lastly, your program ought to depend and show the typical cgpa entered for the n college students. The linked checklist should be sorted by college students’ identify in ascending order earlier than it’s exhibited to the consumer. The pattern output is proven beneath:

The Assessment might be completed primarily based on the next standards:
i. A correct writing of C codes: construction, effectivity and modular.
ii. The readability, consistency, naming and consumer interface
iii. Robustness and testing
iv. Full documentation and proper submission.
Word: You MUST write C programming codes for this task. Codes written in C++ is not going to be accepted.
You might be required to submit:
1. Documentation file (*.doc/*.docx) that comprises introduction, description of drawback, program itemizing and its feedback and print display of this system output.
2. Supply file (*.c)
(50 marks)

ATTACHMENT
ASSIGNMENT RUBRICS
CBDS2103 DATA STRUCTURE/ JAN 2022
*QN CLO Standards
Weight Glorious Good Truthful Poor Unsatisfactory Max Marks
four three 2 1 zero
1 2 Declaration of construction, pointer and linked checklist construction
Construction, Effectivity and Modular:
• Codes are clear, logical, management construction used appropriately.
• Most applicable programming constructions (choice, repetition, recordsdata) are used
• Capabilities are modular and will increase programming readability 2.5 Met the necessities of the factors.
Principally met the necessities of the factors however it may be improved additional.
Fundamental/ minimally met the necessities of the factors.
Poorly met the necessities of the factors.
Didn’t meet standards in any respect OR improper reply was given.
10
1 2 Linked checklist manipulation: Insert and Traverse Record
Construction, Effectivity and Modular:
• Codes are clear, logical, management construction used appropriately.
• Most applicable programming constructions (choice, repetition, recordsdata) are used
• Capabilities are modular and will increase programming readability 2.5 Met the necessities of the factors.
Principally met the necessities of the factors however it may be improved additional.
Fundamental/ minimally met the necessities of the factors.
Poorly met the necessities of the factors.
Didn’t meet standards in any respect OR improper reply was given.
10
1 2 Sorting the linked checklist in ascending order of scholar identify
Construction, Effectivity and Modular:
• Codes are clear, logical, management construction used appropriately.
• Most applicable programming constructions (choice, repetition, recordsdata) are used
• Capabilities are modular and will increase programming readability 2.5 Met the necessities of the factors.
Principally met the necessities of the factors however it may be improved additional.
Fundamental/ minimally met the necessities of the factors.
Poorly met the necessities of the factors.
Didn’t meet standards in any respect OR improper reply was given.
10
1 2 Readability, consistency, naming and consumer interface:
• Coding model, simple to learn and keep.
• Constant and correct naming.
• Display screen primarily based instruction and ultimate output are clear, appropriate and engaging. 2.5 Met the necessities of the factors.
Principally met the necessities of the factors however it may be improved additional. Fundamental/ minimally met the necessities of the factors. Poorly met the necessities of the factors.
Didn’t meet standards in any respect OR improper reply was given. 10
1 2 Robustness and Testing
• Capability of this system to be compiled and executed
• This system can deal with faulty or sudden enter
• Full with out being redundant, all check circumstances are thought-about
• Dedication course of primarily based on the enter. Appropriate method should be chosen and proven on this half
• Displaying all output as required 1.25 Met the necessities of the factors. Principally met the necessities of the factors however it may be improved additional. Fundamental/ minimally met the necessities of the factors. Poorly met the necessities of the factors. Didn’t meet standards in any respect OR improper reply was given. 5
1 2 Full documentation and proper submission:
• Cowl web page of task
• Introduction, description of drawback
• Copy of codes
• A number of screenshots with varied enter and output
• Submission of C supply file in extension .c 1.25 Met the necessities of the factors. Principally met the necessities of the factors however it may be improved additional. Fundamental/ minimally met the necessities of the factors. Poorly met the necessities of the factors. Didn’t meet standards in any respect OR improper reply was given. 5
Whole 12.5 50
*QN = Question Assignment Quantity

———–

PURPOSE OF ASSIGNMENT QUESTION

The aim of this task is to create information constructions in C to handle a particular drawback, in addition to to show the implementation of related information construction options utilizing applicable check information and output.

BAHAGIAN I PART I

REQUIREMENT

Question Assignment No. 1

You need to create a C program that takes the variety of college students and dynamically reserves reminiscence area. You need to save the coed’s identify, ID, and cumulative grade level common (CGPA) as a single unit. You need to make the most of a structural information sort to perform this.

Then, as proven beneath, declare ptr as a pointer of struct scholar * sort (that may level to the placement of struct scholar sort):

*ptr; struct scholar

Then, make use of a

Published by
Medical
View all posts