0% found this document useful (0 votes)
14 views3 pages

Algorithm Steps

This document outlines the steps for a grade calculation system, starting with a welcome message and prompting the user for the number of subjects. It details the process of collecting scores, calculating the average, determining the grade based on the average, and displaying the results. The system also allows users to enter another set of scores or exit the program with a thank you message.

Uploaded by

athumankasele9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Algorithm Steps

This document outlines the steps for a grade calculation system, starting with a welcome message and prompting the user for the number of subjects. It details the process of collecting scores, calculating the average, determining the grade based on the average, and displaying the results. The system also allows users to enter another set of scores or exit the program with a thank you message.

Uploaded by

athumankasele9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

ALGORITHM STEPS:

Step 1: start/ beginning of process


Step 2: Display a message” Welcome to the grade calculation system”
Step 3: Ask user “How many subject do you have?” and store in num-subject
Step 4: Prompt user to enter the score for each subject
Where;
Initial score= 0
a. Ask user “Enter score for subject: [current subject number]”
Where, scores <= num-subject
Else, display “invalid input” go to step 3
b. Read and store score in total score
Total score= 0 + current score
c. Collect the total score:
Total score= current score + total score
Step 5: Calculate the average:
Average= total score/ num-subjects
Step 6: Determine the grade
If 80 <= average <= 100, grade= “A”
Else if 65 <= average <= 79, grade= “B”
Else if 50 <= average <= 64, grade= “C”
Else if 49 <= average <= 40, grade= “D”
Else, grade= “F”
Step 7: Display “average score= [average]” and “grade= [grade]”
Step 8: Ask user “Do you want to enter another set of scores? (Y/N)”
If “Y “or “y”, repeat to step 3
Else user enter N or n exit the loop go to step 9
Step 9: Display “Thank you for using the system”
Step 10: End

THE FLOWCHART
Start

Display a message:

“Welcome to the grade calculation system”

Ask user:

“How many subject do have”

You might also like