Embed
Email

Average Psuedocode

Document Sample

Shared by: panniuniu
Categories
Tags
Stats
views:
0
posted:
10/26/2011
language:
English
pages:
2
Initialize total to zero



Inititialize grade counter to 1



Initialize grade



Initialize average



Ask the user how many students you want to average your grade for your class



Start a table and enter the students grades



Ask the user to enter the student’s name



Ask the user to enter the student’s grade



If the student’s grade is more than 90 then enter A



If the student’s grade is from 80 to 89 then enter B



If the student’s grade is from 70 to 79 then enter C



If the student’s grade is from 60 to 69 then enter D



If the student’s grade is 59 or below then enter F



Write them on a table



Add the students’ scores and average them out



Display the average score by dividing the number of students by the total score



If the average grade is more than 90 then enter A



If the average grade is from 80 to 89 then enter B



If the average grade is from 70 to 79 then enter C



If the average grade is from 60 to 69 then enter D



If the average grade is 59 or below then enter F



Enter the average scores and the letter grade for that class



Related docs
Other docs by panniuniu
MontrealSideEvent
Views: 0  |  Downloads: 0
WCPD-2002-11-11-Pg1956
Views: 0  |  Downloads: 0
PR_Wachstumskurs
Views: 0  |  Downloads: 0
all time bests - girls
Views: 0  |  Downloads: 0
unit1_day4_02.06.03
Views: 0  |  Downloads: 0
ch15_kinetics
Views: 0  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!