Class Notes (1,200,000)
CA (650,000)
UBC (10,000)
CPSC (200)
Lecture

CPSC 110 Lecture Notes - Operand


Department
Computer Science
Course Code
CPSC 110
Professor
Gregor Kiczales

This preview shows half of the first page. to view the full 3 pages of the document.
CPSC 110 -Sept 8, 11
INTRODUCTION CLASS ONE
FOCUS: Designing Programs
1. ADMINISTRATION + USEFUL LINKS
Course Website: http://sites.google.com/site/ubccpsc1102011w1a
Function Helpdesk: file:///C:/Program%20Files/Racket/doc/index.html
1. STEPS TO PROGRAMMING ILLUSTRATION
ie. When you have a problem, ie. For the solution, take the
break it down into its smallest smallest parts to build it up to
parts. the answer
1. NUMBERS (definitions in red)
Note: DrRacket will solve in BEDMAS order. ie:
(* (+ 1 2) (/ 4 2))
(* 3 (/ 4 2)))
(* 3 2)
6
OPERATOR OPERANDS NUMBER/VALUE
Order in which DrRacket solves (Note: may also be checked via the “step”
button within DrRacket):
(* (+ 1 2) (/ 4 2))
(* 3 (/ 4 2)))
1
(+ 1 2) Addition = 3
(* 3 4)  Multiplication = 12
(/ 4 2)  Division =2
You're Reading a Preview

Unlock to view full version