IT 117: Intermediate Scripting
Class 17

Tips and Examples


Review

New Material


Microphone

Graded Quiz

You can connect to Gradescope to take weekly graded quiz today during the last 15 minutes of the class.

Once you start the quiz you have 15 minutes to finish it.

You can only take this quiz today.

There is not makeup for the weekly quiz because Gradescope does not permit it.

Readings

If you have the textbook read Chapter 10, Classes and Object-Oriented Programming, sections 10.1 and 10.2, Classes and Object-Oriented Programming and Procedural and Object-Oriented Programming.

Solution to Homework 6

I have posted a solution to homework 6 here.

Let's take a look.

Homework 8

I have posted homework 8 here.

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

Midterm Scores

If you believe I have scored one of your Midterm answers incorrectly you can request a rescore for that question on Gradescope.

If your score on the Final is significantly better than your score on the Midterm, I will replace your Midterm grade with that of the Final when calculating your grade for the course.

If you want to discuss how you can improve your grade in this course, come see me during Office Hours.

You do not have to make an appointment to see me during Office Hours, but you may have to wait your turn if I am helping another student.

I want students to pass this course, and will do what I reasonably can to make that happen.

Your Current Standing in This Course

If you want to know your grade as of this moment, send me an email.

In performing this calculation, I will assume that your score on the final exam will be the same as that of you Midterm score.

I can do this only for your grade as of the Midterm.

I can't do this for your grade later in the semester.

Final Exam

The final for this course will take place in this room on Thursday, May 16, from 3:00PM - 6:00PM.

You will also find this information at the top of the class web page.

Questions

Are there any questions before I begin?

Tips and Examples

Common Exam Mistake - Creating a File Object When You Don't Need To

Review

The SQLite Command Line

Database Structure

Data Checking

Queries

Changing Data in a Table

Adding a Record to a Table

Changing the Values in a Record

Deleting Records

Using SQLite in Python

Connecting to a SQLite Database

The SQLite Cursor Object

Running a SQLite Query in Python

Adding a Record Using SQLite

Committing Changes to a Table

Changing a Record Using SQLite

Deleting a Record Using SQLite

A Python Function to Add an Entry to the enrollment Table

Attendance

New Material

Writing Better Programs

Demonstrating Different Approaches to Programming

An Example Problem

First Approach

Procedural Programming Approach

Object Oriented Programming

Object Oriented Approach

Ethics and Technology

The Spiderman Principle

Class Exercise

Class Quiz