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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s