Question #268194

Draw the flowchart and write the pseudocode that will compute for the average score of the students per subject (Calculus & English) in three examinations (Prelim, Midterm, Finals) Determine and print how many passed in a class of 40 students in each subject if the passing average are: Calculus = 70 & above, English = 75 & above. Print the student names, scores in the three examinations, average score per subject, and the remarks (Passed or Failed). User will input the examination scores in the two subjects.



Expert's answer

pseudocode 


Start
   Declare variables student,name, prelimScoreEnglish midtermScoreEnglish,finalsScoreEnglish
   Declare variables prelimScoreCalculus, midtermScoreCalculus,finalsScoreCalculus
   Declare variables averageEnglish,averageCalculus, totalStudentsPassed
   Set totalStudentsPassed=0
   for student 1 to 40
      Read name
      Read prelimScoreCalculus 
      Read midtermScoreCalculus
      Read finalsScoreCalculus
      Read prelimScoreEnglish
      Read midtermScoreEnglish
      Read finalsScoreEnglish
      Set averageCalculus=(prelimScoreCalculus, midtermScoreCalculus,finalsScoreCalculus)/3.0
      Set averageEnglish=(prelimScoreEnglish, midtermScoreEnglish,finalsScoreEnglish)/3.0
      Print the student name
      Print prelimScoreCalculus
      Print midtermScoreCalculus
      Print finalsScoreCalculus
      Print prelimScoreEnglish
      Print midtermScoreEnglish
      Print finalsScoreEnglish
      Print averageCalculus
      Print averageEnglish
      if averageCalculus>=70 and averageEnglish>=75 then
           Print "Passed"
           totalStudentsPassed=totalStudentsPassed+1
      else
           Print "Failed"
      End if
   end for
   Print totalStudentsPassed
Stop








flowchart 





Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS