Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A friend has asked you to design a simple gradebook program. He would like to cr

ID: 3772480 • Letter: A

Question

A friend has asked you to design a simple gradebook program. He would like to create some calculations that can be used for any test given to students. This program should generate percentage scores for each student (given the number of correct answers and the total number of questions on the test).

He would also like the program to calculate the class average of the percentage scores and identify the minimum and maximum scores for the class.

Write the pseudocode for this electronic gradebook. For those who are ready for a little more advanced concepts, have your pseudocode determine the letter grade for each student (90+ = A, 80+ = B, 70+ = C, 64+ = D, Lower than 64 = F).

Explanation / Answer

start
   declare totquest,ans,sum, i, average, max, min
   declare percentscore[10]
  
   let sum=0
   for i = 1 to 10
   print "Enter total number of question"
   input totquest

   print "enter total number of correct answers"
   input ans

   percentscore[i]=ans*100/totquest
   sum=sum+percentscore[i];
   end for
   average=sum/10;
   let max=0

   for i=1 to 10
       if percentscore[i]>max then
           max=percentscore
   end for

   let min=percentscore[0]
   for i=1 to 10
       if percentscore[i]<min then
           min=percentscore
   end for
   print "Class Average is "
   print average

   print "Minimum percentscore is of Class"
   print min

   print "Maximum percentscore is of Class"
   print max
  
end