Last modified on 19:00:00 PST Tuesday September 22, 1998 by Fire

Homework Help

C programming codes written by Fire

Introduction
Hello World! hello.c
Convert inches to centimeters inches.c
Convert fahrenhiet to celsius celsius.c
Compute the sides of a right triangle triangle.c
Compute value of root1 and root2 for a quadratic equation root.c
Compute the length of one side of a triangle given values for b, c, and alpha length.c

Functions
Compute the area and circumference of a circle function.c
Draw 2 rectangles and 2 trianglesdraw.c
Compute the area of a triangle semip.c
Compute duration of flight and height of projectile constant.c
Convert given temperature to either fahrenhiet or celsius fahren.c

The Switch and If-Else Statements
Compute the brightness of a light bulb using Switch Statements lumens.c
Compute the brightness of a light bulb using If-Else statements lumens2.c
Compute the area of either triangle or square using If-Else ST.c
Compute the sides of a right triangle only if the values are postive triangle2.c

Repetition and Loop Statements
Compute total payroll and average payroll using While statement employ.c
Verify whether the sum and product are equal using For statement prodsum.c
Display inches and centimeters conversion table using For statement table.c
Determine class enrollment using Functions and If enroll.c
Find largest, smallest and average values in a collection of N numbers using For statement sumsq1.c
Find largest, smallest and average values in a collection of N numbers and display range and standard deviation sumsq2.c
Display a sequence of numbers - Fibonnaci sequence using For loop sequence.c
Display a sequence of numbers using nested loop nested.c

Pointers
Compute average and sum using pointers pointer1.c
Convert a program that is using pointer to a program using function pointer2.c
Compute the area of triangle or square using pointers pointerST.c
Create a table showing the various lumber measurements lumber.c
Compute the greatest common divisor gcd1.c

Arrays
Store an input list of 10 integers in an array array1.c
Request a min range and returns a subcript of the smallest value in a portion of an array containing type int values getmin.c
Sort a set of array select.c

Data Types
Print the name, ID number, pay, hrs and total pay using user-defined structure types structemp.c
Operators to process complex numbers complex1.c

Case Study
A program that add, subtract, multiply and divide two fractions gcd2.c

Input/Output Files
Convert distances from miles to kilometers using I/O Files miles.c
Input of miles.c distance.dat
Output of miles.c distance.out


Home  |  FAQ  |  Search  |  Site Guide  | Contact


Copyright � 1998 The Fireplace. All Rights Reserved.
Designed by WeissCreations

Hosted by www.Geocities.ws