Answer to Question #268194 in Algorithms for jian

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.



1
Expert's answer
2021-11-18T11:34:30-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS