Unit #2-01
Learning Outcome
At the end of this lesson, you will be able to:
understand what a variable is and how to use one
create an application that accepts input and saves it into a variable
understand what a top-down design is and how to create one
Review
review basic output and formatting
Lesson
go over what a Top-Down Design is
we use square line connectors and rectangular boxes
arrows always point down
normally left black & white
go over how to create one using draw.io
once again, this is a Chrome extension
go over what a variable is
we will always use this rule:
lowercase with words separated by underscores as necessary to improve readability
ex: area_of_rectangle, time_of_day, number_of_students
this "=" IS NOT an equal sign, it is an assignment statement
Activity
nill
Daily Assignment
create a program that calculates the area and perimeter of a rectangle with dimensions entered by user
come up with three (3) test case, BEFORE YOU WRITE THE CODE to ensure you know what the answer should be BEFORE you start coding
note, you can not use my test cases!
then check to ensure your answers are correct!
remember to create a new folder in Cloud9 (Unit2-02) and the GitHub repo first and then clone it into Cloud9
when done, add to your notebook
include storyboard(s), top-down design, test case, screenshot, style check, code & GitHub link
Extra
create the same above program in C++