ICS 103 - Example Programs
Computer Programming in C


Aiman H. El-Maleh


Office: Building 22, Room 405-7, Phone: 2811

Schedule and Office Hours

ICS 103 Home | Syllabus | Lectures | Course Resource

Chapter 2

Convert Miles to Kilometers

Integer Division and Remainder

Value of Coins

Chapter 3

Weight of a Batch of Flat Washers

Square Root Program

Draw a Stick Figure

Chapter 4

Letter Case Conversion

Computing Tax

Switch Statement

Chapter 5



Temperature Table

Sentinel Controlled Loop

Nested Counting Loop

Displaying Month

Displaying Stars

Do While

Get Integer within Range

Debugging a Program

Chapter 6


Output Parameters: function separate

Output Parameters: function order

File Input and Output

Detecting End-Of-File

Chapter 7

Array input and output, calculating mean and standard deviation

Array Parameters

Read array from file

Selection sort

2D Arrays

Chapter 8

String Input and Output

Reading a string with gets versus scanf

The fgets and fputs functions

Converting a string to uppercase

Counting letters, digits, spaces, etc.

The strcat function

The strtok function

The strstr function

Sorting names








  Last Updated: Thursday August 23, 2018, by Dr. Aiman El-Maleh