How michael-david-afk/adse2609_cprogramming works
This repository is a collection of independent C teaching programs, not a single integrated application. The examples demonstrate language fundamentals, control flow, calculations, simple interactive scenarios, and student-score processing. Where source excerpts show console interaction, the user supplies input and receives printed output; the programs do not call one another. The README is empty, and links for files without excerpts are omitted because their runtime behavior was not verified.
Main entry points: do_while_phone_pin.c Phone PIN · do_while_restaurant.c Restaurant Ordering · switch_case_menu.c Restaurant Menu · for_loop_savings.c Savings Tracker
Components 34
C Fundamentals
- Hello World
hello_world.c - User Greeting
greet_user.c - Data Types
c17_data_types.c - Arithmetic Operators
arithmetic_operators.c - Modifier Operators
arithmetic_operators_for_modifiers.c - Comparisons
comparison_and_logical_operators.c - Logical and Ternary
comparison_and_logical_and_ternary_operators.c - Format Modifiers
field_width_modifier.c
Control Flow
- For Count
for_first_ten_ints.c - While Count
while_first_ten_ints.c - Do-While Count
do_while_first_ten_ints.c - Loop Multiplication
loops_multiplication.c - Multiples of Seven
even_multiples_of_7.c - Multiples of Eight
multiples_of_8.c - Number Triangle
number_triangle.c - Right Triangle
right_angled_triangle.c - Phone PIN
do_while_phone_pin.c - Restaurant Ordering
do_while_restaurant.c - Restaurant Menu
switch_case_menu.c
Calculations
- Savings Tracker
for_loop_savings.c - Sales Summary
while_sales.c - Payment Calculation
calc_payment.c - Change Amount
change_amount.c - Circle Dimensions
circle.c - Circle Variant
circle_v2.c - Add Numbers
add_nums.c - Formatted Bill
menu_formatting.c
Student Scores
- Score Average
single_dim_array_student_scores.c - Score Variant
single_dim_array_student_scores_v2.c - Score Statistics
single_dim_array_student_scores_v3.c - Student Details
student_details.c - Student Grade
student_grade.c - Exam Analysis
student_exam_analysis.c
Other components
- User
Connections 20
- User → Circle Dimensions: enters radius
circle.c - Circle Dimensions → User: prints dimensions
circle.c - User → Phone PIN: enters PIN
do_while_phone_pin.c - Phone PIN → User: prints status
do_while_phone_pin.c - User → Restaurant Ordering: enters orders
do_while_restaurant.c - Restaurant Ordering → User: prints bill
do_while_restaurant.c - User → Restaurant Menu: selects item
switch_case_menu.c - Restaurant Menu → User: prints selection
switch_case_menu.c - User → Sales Summary: enters purchases
while_sales.c - Sales Summary → User: prints summary
while_sales.c - User → Savings Tracker: enters savings
for_loop_savings.c - Savings Tracker → User: prints totals
for_loop_savings.c - User → Score Statistics: enters scores
single_dim_array_student_scores_v3.c - Score Statistics → User: prints statistics
single_dim_array_student_scores_v3.c - User → Exam Analysis: enters class scores
student_exam_analysis.c - Exam Analysis → User: prints analysis
student_exam_analysis.c - Comparisons → User: prints comparisons
comparison_and_logical_operators.c - Logical and Ternary → User: prints operators
comparison_and_logical_and_ternary_operators.c - Format Modifiers → User: prints formats
field_width_modifier.c - Formatted Bill → User: prints bill
menu_formatting.c