CS110: Programming and Problem Solving for Natural Sciences

09/09/99


Click here to start


Table of Contents

CS110: Programming and Problem Solving for Natural Sciences

Calendar Description

Practical Details

What is computer science?

What is a (digital) computer?

Simple Computer Architecture

Memory

Your Program

Units of Memory

Algorithms

Recipe (an algorithm)

Languages and Compilers

Example: Palindromes

Our Jobs

Algorithms in Pascal

Finding the Maximum Score

Program Variables

program Sample (input, output); {Page 24 text} var N1, N2, Sum: integer; begin writeln (‘Enter two numbers’); readln (N1, N2); Sum := N1 + N2; writeln (N1, ‘ Plus ‘, N2, ‘ Equals ‘, Sum); writeln (‘Enter another two numbers’); readln (N1, N2); Sum := N1 + N2; writeln (N1, ‘ Plus ‘, N2, ‘ Equals ‘, Sum); end.

Storing and Retrieving Values

Data Types (Introduction)

Values

Operators and Type Conversions

Example

Author: Dr. Larry Symes

Email: symes@cs.uregina.ca