Student Information Management Program: Procedural Programming Assignment 2, Assignments of Computer Science

A BTEC Level 5 HND Diploma in Computing assignment where students are required to develop a program to manage student information, including entering student IDs and grades, displaying student information, and finding students with the highest and lowest grades. the assignment front sheet, acknowledgement, and function descriptions.

Typology: Assignments

2020/2021

Uploaded on 07/03/2022

minh-huy-huynh
minh-huy-huynh 🇻🇳

4.7

(58)

39 documents

1 / 19

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
12/11/2021
Date Received 1st
submission
Re-submission Date
Date Received 2nd
submission
Student Name
Huynh Minh Huy
Student ID
GCD210173
Class
GCD1001
Assessor name
Phan Thanh Tra
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
Huy
Grading grid
P4
P5
M3
M4
D2
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Student Information Management Program: Procedural Programming Assignment 2 and more Assignments Computer Science 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 12/11/2021 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Huynh Minh Huy Student ID GCD Class GCD1001 Assessor name Phan Thanh Tra 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 Huy

Grading grid P4 P5 M3 M4 D

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

Procedural Programming

Assignment 2 : Analysis and Design a solution for procedural programming

problem.

Student name: Huynh Minh Huy.

Class: GCD1001.

Student Id: GCD210173.

Table of Contents

CHAPTER 5 : IMPLEMENTATION AND EXPLAIN.

1. Problem. A math teacher wishes to manage a class's grades. He asks you to assist him in creating a small application to accomplish this. He must enter student IDs and grades and store them in two separate arrays (integer array for IDs and float array for grades). Then he must print all student IDs as well as their grades. Finally, he must determine which student has the highest and lowest grade. Your program should be menu-driven, with the options listed above. When an option is completed, the program should return to the main menu so that he can select another option. There should be a way to exit the program. 2. Solve problem. I created a program that is used to manage student information. The program's main functions are as follows:  Input student information (Student ID, Student Grades).  Display student information (Print to the screen).  Find the student with the highest grade.  Find the student with the lowest grade.  Exit.

3. Code explanation. a. Global Variables: In this program, I use 2 libraries which are stdio.h and conio.h. I set n for total students , IDs[100] for id, Grades[100] for grade. b. Fucntion input student’s information: This function allows user to enter student ID and Grade. Figure 1 : Global variables of program. Figure 2 : Input information of student.

d. Function program: Entering Grades: Because the user must enter all of the points between 0 and 10, a do-while loop with variable levels will be used in this function. This function will assist the user in entering the score from the first to the last student. The following is about entering the incorrect score. The system only accepts numbers ranging from 0 to 10. When a user enters the incorrect score type, the system prompts them to enter it again. e. Function display information of student: This function help you print student’s ID and Grade to the screen. Figure 4 : Entering Grades. Figure 5 : Display student's information.

f. Function find student's who has highest grades: This function help you find the student has highest grades and print to the screen. To find out the student have highest score, I compare each grade in list of student from first student to end by for loop. If grade is bigger than previous grades, that grade is declared into maxGrade. Because in assignment 1 I could only print out 1 person with high score, so in assignment 2 I found a solution to print out many people with the same high score by using the for loop again and giving the condition (Grades[ i]==max) into the if statement. Figure 6 : Find student who has highest grade.

h. Menu Option: This function helps you to display more options in the menu. In main, the switch-case statement is used to act on your selection. If you select 1, the entering list of student function is active, as are the other options. The main section is also where all of the functions will take place. Figure 8 : Menu Option.

CHAPTER 6:TESTING.

  1. Results. In this case, we will enter the necessary information. To begin, the system will display a menu with five options. Pressing number 1, It will allow the user to enter the student ID and score, but first the user must enter the number of students he wants, and then the new user can enter student's ID and student's score. Figure 9 : MENU. Figure 10 : Enter option 1.

To be able to know which student has the lowest score, enter 4 to find student's who has lowest grades. As we can see, there are two people with the same lowest score, which are students with id numbers 1 and 4. Both of these individuals received a score of nine. Finally, to exit the program press 5 to exit. Figure 13 : Find student's who has lowest grades Figure 14 : Exit program.

  1. Testing data case. Test case Subjects to be inspecte d Test step Input data Expecte d result Actual result Status 1 Input the number of students Press: 1 Enter the number of students: five Five Invalid, Enter again! Fail 2 Input student’ s informa tion Press: 1 Enter the number of students: 3. Enter student’s ID: 1 Enter student’s Grade: 10 Enter student’s ID: 1 Student’s ID: 1 Dublica te ID, please enter again Pass 3 Input student’ s informa tion Press: 1 Enter the number of students: 2. Enter student’s ID: 1 Enter student Grade: 100 Student’s Grade: 100 Enter a wrong grade for the student, please enter again Pass

CHAPTER 7: Evaluate the program. After testing and inspecting my application error, I discovered that it:  Advantages:  Capable of storing students' marks and IDs, displaying them on screen, and determining maximum and minimum grades.  Can quickly and clearly find the highest and lowest grade, as well as print all student IDs.  Can determine whether or not the ID is duplicated, as well as whether or not the grade input is valid.  Disadvantages:  When entering incorrect data types, the application will error. For example, when I entered ID student with type charactes, the application will error.  The menu interface isn't finished beautifully.  Infinity loop when ID is entered with a word. Although there are many errors that have not been resolved, my application has met the basic requirement of a student management software, and the rest will be fixed in the future. Powered by TCPDF (www.tcpdf.org)Powered by TCPDF (www.tcpdf.org)