Table of Contents
CSC 171 – SPRING 1999
OVERVIEW OF LECTURE 2
Computational Science
Algorithms
Control Structures
Some Control Structures
Sequence
Conditional - if
Conditional - if / else
Conditional – if / else
Repetition - while
Repetition - while
Variables
Variables
JAVA Primitive Data Types
Integers
Strings
Generate strings of set length
Generate Strings of Set Length
Alternating Strings *-*-*-*-
Example : Decimal to Binary
Decimal to Binary
Algorithm for D to B conversion
Example DtoB
Decimal to Binary Conversion
|
Author: Thaddeus F. Pawlicki
|