Day 4 (2.MAY.19)

Flowchart Design using Raptor - Flowchart Interpreter

  1. Exploring the Interface
      1. Menu Options
      2. Documentation
      3. Flowchart Symbols
      4. Flowchart Execution
      5. Code Generation
  2. Basic Problems
      1. Greet
      2. Greet a specific user (Output Formatting)
      3. Arithmetic Operations
      4. Built-in Mathematical Functions
          1. Non Trigonometric
          2. Trigonometric
  3. Sample Examples:
      1. Design a flowchart to evaluate the polynomial
            1. f(x)= x^3 + 2 X^2 + 3 X - 10 for x in the range [1, 1000]
      2. Determining whether a number is Even or Odd
      3. Finding the greatest of 3 numbers
      4. Testing Divisibility with 2 and 3 but not 4
      5. Given 2 ints, a and b, return True if one if them is 10 or if their sum is 10.
          • makes10(9, 10) → True
          • makes10(9, 9) → False
          • makes10(1, 9) → True
      6. Given 2 int values, return True if one is negative and one is positive. Except if the parameter "negative" is True, then return True only if both are negative.
          • pos_neg(1, -1, False) → True
          • pos_neg(-1, 1, False) → True
          • pos_neg(-4, -5, True) → True
      7. Given an int n, return True if it is within 10 of 100 or 200. Note: abs(num) computes the absolute value of a number.
          • near_hundred(93) → True
          • near_hundred(90) → True
          • near_hundred(89) → False
  4. Modular Solution Design ( using Procedures )
      1. Designing procedures for Basic Arithmetic operations

RESULT :

All the above programs have been worked out and saved here.