Take some additional notes that you would like here for 3.12 and 3.13. We will be looking for additional notes from the presentation.

What are procedures?

Fill in the blanks please:

Procedure:

Parameters:

Arguments:

Modularity:

Procedural Abstraction:

What are some other names for procedures?:

Why are procedures effective?:

Challenge 1 below: Add the command that will call the procedure.

decimal = 7

def convertToBinary(n):


    (decimal) 
print()

Challenge 2 below: Complete the Min and Max procedure in either JavaScript and Python using the instructions from the JavaScript page. (JavaScript may get you extra)

Homework/Hacks: For the hw, you have two options. The first hack is for a 0.7 + extra work for the full 1. Simply create your own procedure with your own creativity. Since there is a lot of leeway for this one, you must do a LOT additional work to get a 1. For the other option, below is the start to a character to binary convertor. This is just a template, but the goal is to translate "APCSP" into binary. The only contraint is that you must use a procedure. If this is completed along with extra work, you can get a 1.

def charToBinary(x):()

# The output shown below is the output you are supposed to get
''APCSP'' in binary is 
[1000001, 1010000, 1000011, 1010011, 1010000]