clipboard-list-checkFlowchart Activities

Before we start, it's worth noting that in an online exam environment you will actually need to create flowcharts using blocks in the exam window itself. We will look at this later in the course, but it is in that spirit that I would suggest we use Lucid Chart for now so you get used to creating charts in a digital environment. You could also just use the drawing tools in Google Docs. You are also welcome to draw them on paper first if you would like.

  1. Create a flowchart based on the following algorithms (one at a time):

    1. BEGIN 
          read (num1)
          read (num2)
          Set total to num1 + num2
          Set average to total / 2
          Display average
      END
    2. BEGIN
          read (score)
          IF score >= 85
              Display "Excellent"
          ELSEIF score >= 70
              Display "Good"
          ELSEIF score >= 50
              Display "Average"
          ELSE
              Display "Fail"
          ENDIF
      END
    3. BEGIN
          read (N)
          Set totalSum to 0
          FOR i = 1 to N
              Add i to totalSum
          NEXT i
          Display totalSum
      END
    4. BEGIN
          read (N)
          Set totalSum to 0
          FOR i = 1 to N
              Call CheckEven (i, totalSum)
          NEXT i
          Display totalSum
      END
      
      BEGIN CheckEven (num, totalSum)
          IF num MOD 2 = 0
              Add num to totalSum
          ENDIF
      END CheckEven

  1. Write pseudocode AND produce a flowhcart for each of the following Python programs:

Last updated