Try it yourself

1. Write a pseudo code and draw a flowchart to accept a value in degrees Celsius and to
convert it into Fahrenheit. [Hint: C/5 = (F-32)/9]

  • Pseudo Code
BEGIN

INPUT C

F=C/5*9+32

DISPLAY F

END

 

  • Flowchart

Temperature - Page 1

 

2.  Write a pseudo code and flowchart to accept a student’s marks in Physics, Chemistry, and Biology. The total of these marks as well as the average should be displayed.

  • Pseudo Code
BEGIN

INPUT P, C, B

SUM = P+C+B

AVE = SUM/3

DISPLAY SUM, AVE

END
  • Flowchart

Temperature - Page 1

 

Advertisements