Programming in C
Updated 2021-01-20
Install
the Tiny C Compiler (TCC) on your computer (technically, you don't
install it; you just copy it to your computer). Video.
·
An easy-to-use editor that knows C syntax: Notepad++. Note that
you can use any text editor to create programs. There are many free, good
alternatives. You can even use Notepad.
·
Some online resources: C
tutorial/documentation, Fresh,
Interactive tutorial, Beginner's
Book.
I have only skimmed these. Let me know if they are useful, or if you find
something better.
·
You will have to run TCC from the command line. Command
line tutorial (first in a series of videos).
Write a "Hello World!" program in C (prints out
the text "Hello, World!". Use printf
for output. Name your program hello-world.c. Put a comment at the top of the program with
your name and the name of the assignment (Hello World). Put the "hello-world.c"
file in the drop box. Due Sunday, 1/24/2021 at 11:59 p.m.
Topics: Character data, while
loops. Identifying characters. Problem
description. Due Sunday, 1/31/2021 at 11:59 p.m.
Topics: Functions, for
loops, formatted output. Loan payments. Problem description. Due Sunday,
2/07/2021 at 11:59 p.m.
Topics: Input, output, arithmetic. Irrigation pivot. Problem description. Due Sunday, 2/14/2021 at 11:59 p.m.
Topics: Bit-wise operators in C. Counting bits. Problem description. Due Sunday, 2/21/2021 at 11:59 p.m.
Topics: Arrays. The drunk jailer. Problem description. Due Sunday, 2/28/2021 at 11:59 p.m.
Topics: More arrays: Passing an array to a function, stepping through an array, finding min, max, sum, average. Sorting an array. Problem description. Due Sunday, 3/14/2021 at 11:59 p.m.
Topics: Functions, loops. Odometer palindromes. Problem description. Due Sunday, 3/21/2021 at 11:59 p.m.
Topics: More arrays: Using pointers to access an array. Problem description. You will need to know how to "de-reference" the array pointer in the function. Due Sunday, 3/28/2021 at 11:59 p.m.
Topic: Text input files. Problem description. Some useful functions: fopen, feof, fscanf. Due
Sunday, 4/04/2021 at 11:59 p.m.
Topic: Strings. Problem description. Due Sunday, 4/11/2021 at 11:59 p.m.