logo

CBCP2101: Computer Programming - Analysis, Pseudo Code, Flowchart, Tracing Table

This assignment contains only ONE question that is set in both Malay and English. Learners are to submit assignment only in MsWord format unless specified otherwise. Your assignment should be typed using 12 point Times New Roman font and 1.5 line spacing.

6 Pages564 Words210 Views
   

Added on  2023-06-10

About This Document

This article provides an analysis of the problem and identification of required items for the student grading application. It includes a pseudo code, flowchart, and tracing table for the program. Course code: CBCP2101

CBCP2101: Computer Programming - Analysis, Pseudo Code, Flowchart, Tracing Table

This assignment contains only ONE question that is set in both Malay and English. Learners are to submit assignment only in MsWord format unless specified otherwise. Your assignment should be typed using 12 point Times New Roman font and 1.5 line spacing.

   Added on 2023-06-10

ShareRelated Documents
Running head: CBCP2101: COMPUTER PROGRAMMING
CBCP2101: COMPUTER PROGRAMMING
Name of the Student
Name of the University
Authors note
CBCP2101: Computer Programming - Analysis, Pseudo Code, Flowchart, Tracing Table_1
1CBCP2101: COMPUTER PROGRAMMING
Analysis of the problem and identification of required items
For the student grading application, at first it is important to get the total number of student for whom
the grading process will continue. Therefore, at first there should be a integer variable that will store the total
number of students for whom the application will calculate the grades. More over the application will also
contain an integer that will contain the number of courses that for every student.
In the next stage, the application will ask for the student ID and marks in the different courses to
calculate the average marks for every student. Now for marks in each course the program will check
conditions to determine and show grade for each of them. At the end if the stored average value become greater
or equal to 40 then the program will print “Proceed to next Semester”. Otherwise the program will display
“Fail”.
Algorithm in a pseudo code
Following is the pseudocode for the grading application,
Step1: Start
Step2: Read total number of students
Step3: Read the number of courses for the semester.
Step4: Read the student ID.
Step5: Read the marks for the different courses for the student.
Step6: show grades for the courses.
If (marks 80 ≤ marks ≤ 100) show Grade A.
Else If (marks 70 ≤ marks ≤ 79) show Grade B.
CBCP2101: Computer Programming - Analysis, Pseudo Code, Flowchart, Tracing Table_2
2CBCP2101: COMPUTER PROGRAMMING
Else If (marks 60 ≤ marks ≤ 69) show Grade C.
Else If (marks 50 ≤ marks ≤ 59) show Grade D.
Else If (marks 40 ≤ marks ≤ 49) show Grade E.
Else (show Grade F.)
Step 7: Show average marks for all the courses.
Step 8: IF average marks are less than 40 display “Failed”.
Else
Print “Proceed to next Semester”
Ask for Next student ID
Go to step 4;
If (reached maximum number of student)
Stop
CBCP2101: Computer Programming - Analysis, Pseudo Code, Flowchart, Tracing Table_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Java program to grade students based on quizzes and exams
|5
|790
|169

Java Program to Calculate Final Marks and Display Letter Grade
|10
|1153
|103

Assignment Cover Sheet, Learning Outcomes and Assessment Feedback, General Guidelines, Assignment Task 1 and 2
|6
|1049
|148

Statistics: ANOVA, Regression Analysis and Frequency Distribution Table
|5
|939
|123

Numeracy 2 (MAII3007) Coursework Portfolio
|18
|3103
|497