Procedural Programming for Student Management: A Practical Implementation in C, Assignments of Information Technology

Prog102 - assignment 2 - Pass..

Typology: Assignments

2022/2023

Uploaded on 10/17/2023

tuong-tran-4
tuong-tran-4 🇻🇳

21 documents

1 / 15

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT 2 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
PROG102: Procedural Programming
Submission date
Date Received 1st
submission
Re-submission Date
Date Received 2nd
submission
Student Name
Trần Văn Tưởng
Student ID
GCH211184
Class
GCH1107
Assessor name
Manhdd19
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Tuong
Grading grid
P4
P5
M3
M4
D2
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Procedural Programming for Student Management: A Practical Implementation in C and more Assignments Information Technology in PDF only on Docsity!

ASSIGNMENT 2 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title PROG102: Procedural Programming Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Trần Văn Tưởng Student ID GCH Class GCH1107 Assessor name Manhdd Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Tuong Grading grid P4 P5 M3 M4 D

Summative Feedback:Resubmission Feedback: Grade: Assessor Signature: Date: Lecturer Signature:

  • I Program implements the designed solution...............................................................................................
      1. Library function declaration
      • Figure 1:Library Function declaration
      1. Struct declaration..............................................................................................................................
      • Figure 2:Struct declaration
      1. The student’s id and grade information input
      • Figure 3:The student's id and grade information input
      1. Display list of students
      • Figure 4:Display list of students
      1. Search student information
      • Figure 5:Search student information
      1. Finding the student have highest grade
      • Figure 6:The student have highest grade
      1. Finding the student have lowest grade
      • Figure 7:finding the student lowest grade
      1. Menu design
      • Figure 8:Menu design
  • II Run the program
      1. Main screen.....................................................................................................................................
      • Figure 9:Main screen
      1. Input id and grade
      • Figure 10:Input id and grade
      1. Display id and grade of student.
      • Figure 11:Display id and grade of student
      1. Show highest grade.
      • Figure 12:Show highest grade.............................................................................................................
      1. Show lowest grade.
      • Figure 13:Show lowest grade
      1. Exit the program
      • Figure 14:Exit the program
  • III. Test
  • IV Evaluate
  • V Conclusion................................................................................................................................................

I Program implements the designed solution

  1. Library function declaration Figure 1 :Library Function declaration <stdio.h>: Provides the core of the input capabilities in C.
  2. Struct declaration Figure 2 :Struct declaration This section declares global variables to store information related to student. int id: integer array for id, float: float array for grade
  3. The student’s id and grade information input Figure 3 :The student's id and grade information input
  1. Finding the student have highest grade Figure 6 :The student have highest grade Here the system will find display the information of the sttudent with the highest grade. Here the system will set the first point in the list as max and compare with the points in the list to find the max. Then the system will find the points equal to max just found and print them to the screen.
  1. Finding the student have lowest grade Figure 7 :finding the student lowest grade Here the system will find display the information of the sttudent with the highest grade. Here the system will set the first point in the list as min and compare with the points in the list to find the min. Then the system will find the points equal to min just found and print them to the screen.

II Run the program

  1. Main screen. Figure 9 :Main screen
  2. Input id and grade Figure 10 :Input id and grade
  1. Display id and grade of student. Figure 11 :Display id and grade of student
  2. Show highest grade. Figure 12 :Show highest grade

Test number What is being tested Predicted results Real results Result 1 Choice number 1 from menu Display the number of students you want to enter ask the user for the number of students to enter pass (^2) Choice number 1 from menu Enter id and grade (^) Ask the to enter id and grade pass 3 Choice number 2 from menu Display id and grade of grade Display score and id on screen pass 4 Choice number 3 from menu Display highest grade Display the number of students you want to enter pass 5 Choice number 4 from menu Display lowest grade Display the number of students you want to enter pass 6 Choice number 0 from menu Exit the program The program has exited pass 7 Enter choice from Menu > 4 Choice again Please choice again pass 8 Enter letters in id The program still prints id normally Data accepted fail (^9) Enter decimal number in id The program still prints id normally Data accepted fail 10 Enter student 1 id = 1, grade = 2 Enter student 2 id = 2, grade = 2 Save ids and grades of 4 student in array Student 1 :id = 1, grade = 2 Student 2 :id = 2, grade = 2 pass

Enter student 3 id = 3, grade = 5 Enter student 4 id = 4, grade = 5 Student 3 :id = 3, grade = 5 Student 4 :id = 4, grade = 5 were saved in array 11 Print id and grade of users Display the user's entered id and grade Print to the screen: Id grade 1 2. 000 2 2. 3 5. 4 5. pass 12 Print the students with the highest scores Show id and grade of students has highest grade Print to the screen: grade = 5, id = 3 grade = 5, id = 4 pass 13 Print the students with the lowest scores Show id and grade of students has lowest grade Print to the screen: grade = 2 , id = 1 grade = 2 , id = 2 Pass 14 Enter letters in grade The program still prints id normally Data accepted fail 15 Enter letters in choice The program still prints id normally Data accepted fail