Monday, September 8, 2014

[Delivery] 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]


  • Flowchart


  • Pseudocode
BEGIN
INPUT C
F = (9/5 x C) + 32
DISPLAY 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.

  • Flowchart
  • Pseudocode
BEGIN
INPUT P, C, B
TOTAL = P + C + B 
AVERAGE = (P+C+B)/ 3
DISPLAY TOTAL, AVERAGE
END

3. Write flowchart to check a any number  (0-N), is it a prime?














No comments:

Post a Comment