CSIS 610: Example Programs Reference function example
Phone bill program with functions
Grading program with functions
Line equation program with functions
Example of local variables
More function examples
Function for converting Fahrenheit to Celsius
Nested loops for printing rectangles
Nested loops for computing averages for many students
Guessing game with limited guesses
For loop for listing and summing squares
Simple for loop
Using a running total to compute an average
Inverse program using sentinel loop
Inverse program using do-while loop
Guessing game using loop
Character-based menu
Example of the switch statement
Program to demonstrate while loop
Program to demonstrate the switch
Program to compute pay and taxes
Program to demonstrate nesting
Program to demonstrate logical operators
Program to demonstrate the else
Tax program with nested input validation
Tax program with nested tax brackets
Example of logic operators
Grade program with multiple branches
Tax program with nested input validation
Tax program with nested tax brackets
Tax program with branch
Examples of relational operators
Final version of tax program using constants
Final version of tax program
Program to convert polar to Cartesian coordinates
Program to compute roots of a quadratic equation
Program to convert feet to miles
Program to convert miles to feet
"Hello world" program