0

students in a class obtained various grades in an exam. write a pseudocode to find highest and lowest score

Pseudocode or Flowchart needed

14th Sep 2019, 8:36 AM
Owuraku Agyekum
Owuraku Agyekum - avatar
5 Réponses
+ 2
Doesn't that sound like a school assignment 😉?
14th Sep 2019, 9:02 AM
Lothar
Lothar - avatar
+ 1
14th Sep 2019, 9:09 AM
Anton Böhler
Anton Böhler - avatar
+ 1
For example you have a collection of grades, then you can write like this: var grades = array with grades; var max = some lowest number; for grades as grade { if grade > max; max = grade; } Finally you get max grade.
14th Sep 2019, 9:11 AM
Timur Myngbay
Timur Myngbay - avatar
0
but can there be any equational function to solving that problem like that of finding an average? @Timur
14th Sep 2019, 9:40 AM
Owuraku Agyekum
Owuraku Agyekum - avatar
- 1
yes it is but i need an in-depth understanding cos I'm new to programming
14th Sep 2019, 9:40 AM
Owuraku Agyekum
Owuraku Agyekum - avatar