Docsity

CS1371 Week 5 Teaching Outline: Arrays, Strings, and Recursion, Exams of Computer Science

Toggle sidebar
bg1
CS1371 Teaching Outlines
Week 5
Next Week’s Homework: Structures, Arrays, Strings
Wed February 7th, 2007
Test 1
Fri February 9th, 2007
Speech about not giving up:
changing study habits,
final grade replacing test average
Objective: Finish up Arrays from Monday
Creating
Accessing elements
Removing whole rows or columns
Scalar and logical operations
Concatenation
Ranges of indices
Slicing
Linearizing (access as if it were a vector, result of find(…) )
Objective: Understanding Character Strings
Distinction between ASCII code / screen presentation and strings representing a character
vector of ASCII codes
Input conversions – using input(...) not sccanf
Output conversions – fprintf(...) and sprintf(...)
Problem solving: counting words, capitalizing words, write islower(...).
Mon February 12th, 2007
Objective: Reprise Character Strings
Objective: Recursion
Activation Stack
Distinction between Function and Instance (stack frame)
3 attributes of recursion
Factorial
fibonacci

Partial preview of the text

Download CS1371 Week 5 Teaching Outline: Arrays, Strings, and Recursion and more Exams Computer Science in PDF only on Docsity!

CS1371 Teaching Outlines

Week 5

Next Week’s Homework: Structures, Arrays, Strings

Wed February 7th, 2007

Test 1

Fri February 9th, 2007

Speech about not giving up:

 changing study habits,

 final grade replacing test average

Objective: Finish up Arrays from Monday

 Creating  Accessing elements  Removing whole rows or columns  Scalar and logical operations  Concatenation  Ranges of indices  Slicing  Linearizing (access as if it were a vector, result of find(…) )

Objective: Understanding Character Strings

 Distinction between ASCII code / screen presentation and strings representing a character  vector of ASCII codes  Input conversions – using input(...) not sccanf  Output conversions – fprintf(...) and sprintf(...)  Problem solving: counting words, capitalizing words, write islower(...).

Mon February 12th, 2007

Objective: Reprise Character Strings

Objective: Recursion

 Activation Stack  Distinction between Function and Instance (stack frame)  3 attributes of recursion  Factorial  fibonacci