Programming Concept

Introduction

Problem solving, computing basics, program structure, and pseudocode conventions.

Chapter 1 (pp. 1–16) of Computer Science I.

Topics

SectionPageContent
Problem Solving2Computers automate solutions; humans solve problems.
Computing Basics4What a program/computer does at a basic level.
Basic Program Structure5Anatomy of a program.
Syntax Rules & Pseudocode12Pseudocode conventions used through the core.
Documentation, Comments, and Coding Style14Readability and style discipline.

Key Idea

Computers do not solve problems — they automate solutions at scale. CS1 is about problem solving; syntax is secondary. This chapter sets up the pseudocode used across the core concepts before the C / Java / PHP parts make it concrete.

Examples

Anatomy of a program

read radius
area ← 3.14159 × radius × radius
print area

Input → process → output: the skeleton of nearly every program.

Pseudocode carries intent

// Goal: greet the user by name
read name
print "Hello, " + name

The comment states the goal; the steps below carry it out.

In Java

double radius = in.nextDouble();
double area = 3.14159 * radius * radius;
System.out.println(area);

See the Java part for the full language treatment.

Citations

[1] Computer Science I, Ch. 1, pp. 1–16.