IT 116: Introduction to Scripting
Class 5

Today's Topics

Tips and Examples


Review


New Material

Reading Assignment

You should read Chapter 3, Decision Structures and Boolean Logic, from our textbook, Starting Out with Python, before next weeks's class.

Homework 3

I have posted homework 3 here.

It is due this coming Sunday at 11:59 PM.

Late Penalty

You will lose 2 points for every day that your assignment is late.

Every Unix file has a time stamp that changes every time the file is modified

I look at this time stamp to determine whether a submission is late.

If your assignment is not working by the due date, you can continue to work on it but you will lose a few points.

If your assignment is working, do not go back and change it, because that will change the time stamp and result in a late penalty.

Do Not Email Me about Missing Assignments

If you get an email from me saying an assignment is missing do not email me about this.

I get far too many emails.

Instead of emailing me fix the problem.

I collect homework assignments and and check Class Exercises several times during the week.

I will check or collect your assignment later in the week.

Class Exercises

Scripts for each Class Exercise must have the correct name and be in the correction location or my scripts will not see them.

If my scripts do not see them, your score with be zero.

If you receive no email from me about your Class Exercise script, that means your script will get full credit, less any late penalty that applies.

Tips and Examples

Do Not Fall Behind in This Course

Read the Homework Assignments Carefully

Review

Comments

Variable Naming Rules

Choosing Good Variable Names

Printing Multiple Values

Numeric Data Types and Literals

Reading Input from the Keyboard

Reading Numbers with the input Function

New Material

Performing Calculations

Decimal and Integer Division

Exponent Operator

Remainder Operator

Operator Precedence

Grouping with Parentheses

Mixed-Type Expressions and Data Type Conversion

Breaking Long Statements into Multiple Lines

Converting Algebra Into Python

Turning a Formula into a Python Program

Attendance

Graded Quiz