Unit 4-04

Learning Outcome

At the end of this lesson, you will be able to:

  • understand and use functions

Movie Watching

Review

  • procedures

Lesson

  • go over functions
    • go over "Random Number Function"

Activity

  • look at:

Daily Assignment

  • create a program and a function that takes the level to grade and returns the middle percentage mark
    • accept a string type (ex. 4+ or R) as a level and return an integer as the percentage
      • conversion chart here
    • if an invalid level is entered return a -1 (this is very common in programming. A return value of -1 means there has been an error).
    • create:
      • GUI
      • flowchart
      • Test cases
      • code
      • screenshots
      • GitHub link

Extra

  • work on the weekly assignment

Homework!

  • read over functions, Chapter 4
    • Computer Based Problem Solving