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
Algorithms
Recipe (an algorithm)
Finding the Maximum Score
Languages and Compilers
Example: Palindromes
Algorithms in Pascal
Program Variables
program Sample (input, output);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 and Type Conversions
Example
|
Author: Dr. David Barnard
Email: barnarda@leroy.cc.uregina.ca
|