Skip to Main Content

Introduction to Programming: Course Content

Programming refers to a technological process for telling a computer which tasks to perform in order to solve problems. You can think of programming as a collaboration between humans and computers, in which humans create instructions for a computer to fol

Course Outline

Week 1

Lecture 1: Introduction to Programming Important Terminology

Lecture 2: Algorithm, Class exercise Getting ready for university

Making a cup of cold coffee

Lab 1:

  • Introduction to Atom and Installation
  • Variables
  • Initialization and assignments of Variables
  • Concatenation of variables

Week 2

Steps in Problem Solving Data and Variables

Data types and Operations Arithmetic Operations Exercises

Writing the first program Quiz 1

Lab 2:

  • Input and Output
  • prompt () function
  • alert 0 function
  • document. write () function
  • Arithmetic operations

Week 3

Working with strings

The idea of built-in functions

Using some string built-in functions Assignment 1

Lab 3:

  • Sequential statements
  • Input from user
  • Calculations
  • Displaying the output
  • Built-in Functions
  • String Built-in Function
  • Date Built-in Function

Course Outline

Week 4

Writing statements in a sequence

Using operators and string functions to build small programs

Coding Exercises

Quiz 2

Week 5

Introduction to the idea of selection and decision The Selection Construct (if ) Exercise

Week 6

selection if else and exercise Chained If Else Assignment 2

Week 7

Selection Construct (Switch) Exercise

Week 8

Midterm Exam Review

Week 9

Notion of Repeating The Iteration Construct For loop Exercises Quiz 3

Week 10

Iteration Construct – For loop continues Assignment 3

Week 11

Iteration Construct (nested For);

Week 12

Iteration Construct - While and do While Loops Quiz 4

Week 13 -14

Introduction to Canvas 

Basic drawings on Canvas

 

Related Books

Learning Objectives

Goal: Students should be able to develop an algorithm/program using JavaScript

Learning Objectives: Students should be able to

  • Recognize programming as problem solving activity
  • Recognize three programming constructs
  • Develop an algorithm/program to compute a mathematical function
  • Develop an algorithm/program using selection constructs
  • Develop an algorithm/program using iteration constructs
  • Be able to use the build-in functions