Finish Chp 3 today

Today, we will be finishing the notes on Chp 3, going over elif and text comparisons in Python:

http://programarcadegames.com/index.php?chapter=conditional_statements&lang=en#section_3

When done, please take a look at your next Chapter lab:

http://programarcadegames.com/index.php?chapter=lab_create_a_quiz&lang=en

I will make any necessary modifications to the requirements and post them on Wed.

We will start a Hardware lab series starting Mon Nov 14.

Chapter 3, If statements, Indentation, Boolean

We are continuing our way through Python, by learning about If statements (SELECTION in pseudocode), indentation, and Boolean variables. If you get lost, you can follow along here, go to the end of section 3.4, booleans:

http://programarcadegames.com/index.php?chapter=conditional_statements&lang=en#section_3

Submit your lab tutorial to the dropbox as usual.

Chapter 1 Lab, custom calculator

For this assignment you will create 2 python programs using the variable assignment, print, input, and math operators from the lesson tutorial in Chapter 1.

http://programarcadegames.com/index.php?chapter=python_as_calculator&lang=en#section_1

The first will convert Fahrenheit to Celcius. And the second will calculate the area of a trapezoid.

Program 1: Fahrenheit to Celcius, the following should be the output of your program:

Sample run:

Enter temperature in Fahrenheit: 32
The temperature in Celsius: 0.0

Sample run:

Enter temperature in Fahrenheit: 72
The temperature in Celsius: 22.2222222222

You can take a look at this Snap! program I made to give you an idea (ie. pseudocode) for how your program should work, except you need to code it in python:

http://tinyurl.com/hsumz35

Program 2: Calculate the area of a trapezoid using the following formula:

trapezoid

The output of your program should look like:

Sample run:

Area of a trapezoid
Enter the height of the trapezoid: 5
Enter the length of the bottom base: 10
Enter the length of the top base: 7
The area is: 42.5

You can take a look at this Snap! program I made to give you an idea (ie. pseudocode) for how your program should work, except you need to code it in python:

http://tinyurl.com/h9etxz4

Please hand in the assignment through the dropbox. The assignment is due by end of class Wednesday.

Reminder that on Wednesday, there will be a quiz on Chapter 1 python commands. 

Python Finish Chapter 1

Today, we will finish off Chapter 1, from 1.5 assignment operators to 1.10 custom equation calculators.

http://programarcadegames.com/index.php?chapter=python_as_calculator&lang=en#section_1

When done, please take the chapter quiz:

http://programarcadegames.com/quiz/quiz.php?file=python_as_calculator&lang=en

There will be a short quiz on Chapter 1 next Monday.

Google Code-in Contest

For those of you who want a further challenge in coding and computer science, please take a look at the following presentation on the Google Code-in contest. It is available to any student 13-17 years old. It is an excellent way to get real-world experience in programming and working with industry experts in open-source software.

https://developers.google.com/open-source/gci/resources/downloads/Google-Code-in-2016-slides.pdf

Here is the link to past contests so you can see what other people have worked on in the past. There is a lot of projects based on python so if that interests you, you can choose those ones when they come out later in November:

https://developers.google.com/open-source/gci/history

If interested, I will hold weekly lunch meetings starting in November, to help out students who have signed up. We may also have FLEX time available for those who may wish to work during that time.