Programming and Algorithms: Week 2

Banner

Variables

What are we doing this week?


This week we are going to look at how to design software using TOP-DOWN DESIGN, as well as looking at the notion of SEQUENCE and explaining what a VARIABLE is.
Moving onto the Python side of things we will look at how to print out messages to the screen, we'll look at basic MATHS functions, and how to implement 
VARIABLES in Python,

PseudoCode Python Python Logo

Powerpoint:
Top Down Design


Powerpoint: Sequence


Powerpoint: Variables

Powerpoint:Print, Maths & Variables
 

Powerpoint: Some Common Issues


Printing to the screen


Simple Mathematics


Variables


Total running time of videos is 60 minutes.

Sample Code:
HelloWorldProgram * HelloWorldProgramNewLine * HelloWorldProgramTwoLines * HelloWorldProgramJoinedHelloWorldProgram10Times * HelloWorldProgramNewLine10Times * AddingNumbers * AddingNumbersFancy * SubtractingNumbers * MultiplyingNumbers * RegularDivision * IntegerDivision * DivisionRemainder * DivisionProblem * VariableAssignment * VariablePrint * AddOneVariablePrintTwoVariablePrint * RealVariablePrint * AnotherRealVariablePrint * CharacterVariablePrint * AnotherCharacterVariablePrint * ErrorProgram * StringVariablePrint * PrintMessage * ConvertFromCelsiusToFahrenheit

TED logo
Let's teach kids to code - Mitch Resnick 


Links
"Hello World" in Python and 318 other programming languages
http://rosettacode.org/wiki/Hello_world/Text#Python

Python Programming Examples
http://www.programiz.com/python-programming/examples

Python Wik: Simple Programs
https://wiki.python.org/moin/SimplePrograms

Lab #2
Lab #2 is all about checking if what you have learned in the episodes above all makes sense, and if you can print messages to the screen, do maths, and create variables.



Reminder: Running Python Programs



Back

If you have any suggestions, corrections, or comments, please feel free to e-mail me at:
Damian.Gordon(a)dit.ie