Code problem?

How to break down a coding problem

Input

What inputs need to be entered into the program?


Processing

How are the inputs going to converted to create the output?


Output

What does the program need to output?

Example: Write some code that asks for the width and length of a rectangle, then outputs the area.

#input

widthOfRec = input("Enter width of rectangle")

lengthOfRec = input("Enter length of rectangle")

#processing

areaOfRec = widthOfRec * lengthOfRec

#output

print("The area of rectangle is " + str(areaOfRec))

Meta cognition
MetaCog checklist- For each coding challenge….pdf

Code challenges