Procedural Programming Assignment 2: Managing Student Grades, Essays (university) of Computer Programming

An assignment for a BTEC Level 5 HND Diploma in Computing student in the unit PROG102: Procedural Programming. The assignment requires the student to write a program to manage student grades, including inputting student information, displaying student information, finding the highest and lowest grades, and handling errors. figures and explanations for each function.

Typology: Essays (university)

2021/2022

Uploaded on 08/17/2022

feel-like-romeo
feel-like-romeo 🇻🇳

3 documents

1 / 22

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
Student ID
Class
Assessor name
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
Grading grid
P4
P5
M3
M4
D2
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16

Partial preview of the text

Download Procedural Programming Assignment 2: Managing Student Grades and more Essays (university) Computer Programming 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 Student ID Class Assessor name 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 Grading grid P4 P5 M3 M4 D

 Summative Feedback:  Resubmission Feedback:

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

Table of Contents

  • I. Screenshot & Explain. Assignment 2: Analys and Design a solutionfor Procedural programming problem Error! Bookmark not defined.
      1. Problem.
      1. Solve problem.
      1. Code explanation.
        • Global variables:
        • Function input information of students:.........................................................................................................................................
        • Function display information of student:
        • Function find highest grades of student:
        • Function find the lowest grades of student:
        • Menu Options:
  • II. Result...............................................................................................................................................................................................
      1. Screenshot
        • Menu Options:
        • Enter student’s information(5-30):
        • Display information of the students to the screen:.......................................................................................................................
        • Find the highest grades of student:
        • Find the lowest grades of student:
        • Exit program:
  • III. Testing
      1. Test plan
      1. Test case (Test log)
  • IV. Evaluation of code - Advantages: - Disadvantages:
  • V. References list
  • Figure 1: Global variables of program. Table of figures
  • Figure 2: Input information of student.
  • Figure 3: Print information of student to the screen.
  • Figure 4: Find the highest grades of student
  • Figure 5: Find the lowest grades of student.
  • Figure 6: Menu Options of the program I.
  • Figure 7: Menu Options of the program 2.
  • Figure 8: Menu Options.
  • Figure 9: Enter student’s information.
  • Figure 10: Display information of the students.
  • Figure 11: Find the highest grades of student.
  • Figure 12: Find the lowest grades of student.
  • Figure 13: Exit program........................................................................................................................................................................................
  • Figure 14: The program makes error when typing characters in the student’s ID.
  • Figure 15: The program crashes when typing characters in the input choice.

▪ Function input information of students: Helps you check if you have entered the recently entered ID, use for loop to check in the array ID. ▪ Input student’s ID and check if the ID is duplicated or not. If it is duplicated, the user need to input again. ▪ Input student’s grades and check if the grades is valid or not. If it is not valid, the user need to input again. Figure 2 : Input information of student. ▪ Function display information of student: Helps you print information of student to the screen.

Figure 3 : Print information of student to the screen. ▪ Function find highest grades of student: Helps you find the student has highest grades and print to the screen, ▪ Max=grades[0], max ID=IDs[0]. ▪ I from 0 to students - 1. ▪ If max < grades[i] then max=grades[i], max ID=IDs[i]. ▪ Prints the result on the screen. Figure 4 : Find the highest grades of student

Figure 6 : Menu Options of the program I.

II. Result Figure 7 : Menu Options of the program 2.

  1. Screenshot

▪ Menu Options:

Figure 8 : Menu Options.

  • The user will be forced to enter a number from 1 and 5 to execute the option. If the userenters a number other less 1 or than 5, the programs will require input again.

▪ Display information of the students to the screen:

Figure 10 : Display information of the students.

  • After inputting student’s grades and IDs, we will print the list of student information.

▪ Find the highest grades of student:

Figure 11 : Find the highest grades of student.

  • The students who have the highest grades will be identified after the program prints the highest grade list, which includes the grades and IDs of the people who have the highest grades.

▪ Find the lowest grades of student:

Figure 12 : Find the lowest grades of student.

  • The students who have the lowest grades will be identified after the program prints the lowest grade list, which includes the grades and IDs of the people who have the lowestgrades.

▪ Exit program:

Figure 13 : Exit program.

  • The screen will display “Exiting program …” and a way to close the program (cmd). III. Testing

1. Test plan

Before going in the work, a test plan should be made base on the requirements of the problem given. The test plan will come with the measure for achievements:

Input student grades Float grades Try to input boundary data, typical data, bad data A,b.c.*,& Error Accepted Typical data (1,2,3..) Accepted Accepted Pass Decimal in typical data(1.1,1.2…) Accepted Accepted Pass 5 Function of printing information of student Selection 2: None Display all information(ID, grades) student was entered. Accepted Pass 6 Function ofprinting student has highest grades Selection 3: None Display the student has highest grades(grades,ID) Accepted Pass 7 Function of printing student has lowest grades Selection 4: None Display the student has lowest grades(grades,ID) Accepted Pass

  • Test case 1: *+A, b, c, , , A&..
  • Test case 2: *+A, b, c , , &, … +1, 2 ,

+Duplicate:

  • Test case 4: *+A, b, c, , &, … +1, 2, 3
  • Test case 5: None
  • Test case 6: None
  • Test case 7: None IV. Evaluation of code After testing and checking my application error, I found that my application:

▪ Advantages:

  • The menu interface is completed neatly and can be easily managed by the user.
  • The program can store student’ mark and ID and display them on screen and find maximum or minimum grades.
  • The program can check the ID is duplicated or not and if the grade input is valid or not.

▪ Disadvantages:

  • When you enter the wrong data type, the application will error, as you can see when I entered ID student with type characters.