EMT1111 : Logic and Problem Solving

Lesson 1 : Tip Calculator

Explore the applications of Python with a real world example, using the knowledge from the previous lesson.

Lesson 2 : Taking a Vacation

Using functions, create a program that can calculate the total cost of a trip. Break down the total cost into three separate functions (Cost of the hotel per night, cost the plane ride, and cost of car rental per day). Then create a function that sums up the total cost.

Lesson 3 : Turtle Graphics

Using the Turtle module, create 100 lines with random lengths (between 0 and 150 pixels) that are a random angle (between 0 and 45 apart from each other) on a red background.

Lesson 4 : PygLatin

Using what we learned about conditionals, write a Pig Latin translator. In this lesson we will be using “if”, “else”, “and”, and also inequalities (!=,==,<,>,<=,>=).