Computer Science, asked by kartha15, 9 months ago

draw a flowchart to find the grade of a student based on marks. If mark>80 distinction. Mark >60 first class. Mark >50 pass​

Answers

Answered by Equestriadash
8

                     \tt User\ inp uts\ marks\ of\ different\ subjects\\\\{ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\Bigg\downarrow\\\\{ \ \ \ }Program\ calculates\ the\ total\ marks\\\\{ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }\Bigg\downarrow\\\\{ \ \ \ \ \ \ \ \ \ \  }\swarrow\ \ \ \ \ \ \ \ \ \ \ \ \ \ \downarrow\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \  \searrow\\\\If\ marks\ >\ 80\ \ \ \ If\ marks\ >\ 60\ \ \ \ If\ marks\ >\ 50\\\\

                      \tt {\ \ \ \ \ \  } \Bigg\downarrow\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \  \Bigg\downarrow\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \Bigg\downarrow\\\\ { \ \ \ \ }prints\ \ \ \ \  \ \ \ \ \ \ \ \ \ \ \   \ \  prints\ \ \ \ \ \ \ \ \  \ \ \ \ \ \ \ \ prints

                 \bf "Distinction"\ \ \ \ \ \ \ \  "First\ class"\ \ \ \ \ \ \ \ \ \ \ \ \ "Pass"

In python, the usage of the if-else statement follows a similar algorithm. It first calculates the required data, and according to the conditions, it will print the required output.


Tomboyish44: Woah, awesome!
Equestriadash: Thank you! ^_^"
Similar questions