Tuesday, September 9, 2014

Day 1 - Delivery 3: Exercise for drawing

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].

Begin
Input C
F = 9/5*C + 32
Output F
End

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.

Begin
Input: P,C,B
TB = (P+C+B)/3
Output TB
End

No comments:

Post a Comment