Thứ Bảy, 7 tháng 11, 2015

Session 1: Try it yourself

1.      Write a pseodo code and draw a flowchart to accept a value in degrees Celsius and to convert it into Fahrenheit.

Pseodo code:                            Flowchart:



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








2.      Write a pseodo 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.

Pseodo code                                   Flowchart:

            
Begin
    Input Phy, Che, Bio
    Total = Phy + Che + Bio
    Average = Total / 3
    Display Total, Average
End


Không có nhận xét nào:

Đăng nhận xét