Intro to Computer Science

Math Home

Intro to Computer Science

powered by cs50

Today is Friday
October 24th , 2025

We are in week 5

Powered by Google Translate

Lectures

WEEKS: 1-5|6-10|11-15|16-20|21-25|26-30|31-35|36-40|

Week 6

Monday: No School
Tuesday: Getting Started with own IDE
Objectives:
  • Register for an edX account and set up their programming enviroment via cloud9
  • Utilize some basic linux commands (mkdir, ls, cd, rm, mv, touch, update50)
Notes: GOOGLE DOC
Homework: Log into your cs50 IDE from home. Notes will walk you through if your were absent. Also watch the following video.
Where it all began: VIDEO
Wednesday - Thursday: Starting to Code
Objectives:
  • Write and compile our first c-Program named hello.c
  • Utilize make, check50, style50, clang, make
  • What is the newline character
  • Edit source code and rerun program
David writes first program and explaines IDE: VIDEO
David relating Stratch to c: VIDEO
Hello PSET: HTML

Week 7

Monday: Variables
Objectives:
  • Define a variable and discuss what it can do
Notes: PDF
David on variables: VIDEO
cs50 SHORT on variables: VIDEO
For Hackers: Doug on variables SCOPE: VIDEO
Tuesday - Wedneday: Variables Continued
Objectives:
  • Review all data types
  • Write a program div_0.c that prompts users for two numbers and prints the quotient to the screen
  • Round a float to 27 decimals places and discuss floating point imprecision
cs50 Page on Data Types: HTML
Homework: Finish / CleanUp programs completed in class
Thursday: Integer Overflow
Objectives:
  • Review all data types
  • Update yesterday's float_imp.c with doubles
  • Write a short program that demonstrates integer overflow
David on variables on physical structures i.e. MEMORY: VIDEO
Homework: Finish / CleanUp programs completed in class
Friday: Modulus
Objectives:
  • Write a program that prompts user for two values and prints the remainder after division
Homework: TBA

Week 8

Monday: Formula
Objectives:
  • Write a program that calculates Denisty for a user when given mass and volume
  • Start the basics of the quadratic formula program
Homework: Finish what we worked on in class
Tuesday - Thursday: Fahrenheit
Objectives:
  • Work on Fahrenheit PSET
  • Hacker Option 1: Write convert_1.c that converts from F to C
  • Hacker Option 2: Write convert_2.c that asks user which way to convert
Farenheit PSET: HTML
Homework: Work on the PSET or hacker additions.
Friday - WHILE Loops
Objectives:
  • Identify the three main constructs in a WHILE loop
  • Write while_0.c, while_1.c, and while_2.c
cs50 Short On Loops: VIDEO
Homework: Finish watching the cs50 short on loops and finish writing countdown.c

Week 9

Monday: FOR Loops
Objectives:
  • Write two equivalent countdown programs first using a WHILE loop then using a FOR LOOP
Homework: Finish Problems Started in Class
Tuesday - Wednesday: DO WHILE Loops
Objectives:
  • Watch video segment on DO WHILE loops
  • Implement a DO WHILE loops in our 'add.c' program.
Doug on Loops: VIDEO
Homework: Finish doWhile 0 - 2 . c files
Thursday: Problem Solve Day
Objectives:
  • Work on the problems in the GOOGLE DOC
CLASSWORK: GOOGLE DOC
Homework: Breathe
Friday: Loops for repeated multiplication
Objectives:
  • Write a program that does exponential arithmetic with and without math.h
Homework: Write a program that does exponential computations. Try to account for all corner cases. Big numbers, 0 to the 0, only positive exponents, etc.

Week 10

Monday - Wednesday: Pennies
Objectives:
  • Work on Pennies PSET
Pennies PSET: HTML
Homework: Work on Pennies
Thursday: Investigating Mod and Division
Objectives:
  • Write a program that uses mod to print out each digit of a positive integer on a separate line
Homework: Complete mod_0.c mod_1.c and mod_2.c started in class
Friday: Rounding and Type Casting
Objectives:
  • Type cast a float to an int
  • Use the round() function to round (not floor) a decimal
  • Use the cs50 reference website
Type Casting: VIDEO
Homework: Enjoy the weekend