From c088ed7fd6db61c3cabc901e9a13064888d47fdd Mon Sep 17 00:00:00 2001
From: pelibby16 <pelibby16@earlham.edu>
Date: Wed, 8 Jan 2025 16:55:46 -0500
Subject: [PATCH] promote C subunit to a full topic

---
 README.md                                                     | 4 ++--
 cs-fundamentals/c.md => topical-units/env-c/README.md         | 2 +-
 .../env-c}/c-examples/auc-trapazoidal-serial.c                | 0
 .../env-c}/c-examples/average-ints.c                          | 0
 .../env-c}/c-examples/command-line-arguments.c                | 0
 {cs-fundamentals => topical-units/env-c}/c-examples/primes.c  | 0
 {cs-fundamentals => topical-units/env-c}/hello-world.md       | 2 +-
 topical-units/env-cpp/README.md                               | 3 ---
 8 files changed, 4 insertions(+), 7 deletions(-)
 rename cs-fundamentals/c.md => topical-units/env-c/README.md (95%)
 rename {cs-fundamentals => topical-units/env-c}/c-examples/auc-trapazoidal-serial.c (100%)
 rename {cs-fundamentals => topical-units/env-c}/c-examples/average-ints.c (100%)
 rename {cs-fundamentals => topical-units/env-c}/c-examples/command-line-arguments.c (100%)
 rename {cs-fundamentals => topical-units/env-c}/c-examples/primes.c (100%)
 rename {cs-fundamentals => topical-units/env-c}/hello-world.md (97%)
 delete mode 100644 topical-units/env-cpp/README.md

diff --git a/README.md b/README.md
index e357b95..4f812ba 100644
--- a/README.md
+++ b/README.md
@@ -43,6 +43,8 @@ Each student must complete one topical unit as part of enrolling in CS266. Click
 * NPM
 * Routing
 
+### [Programming Environments - C](topical-units/env-c)
+
 ### [Programming Environments - SQL](topical-units/env-sql)
 * Installation
 * Working with data (`.csv`, `.sql`)
@@ -73,8 +75,6 @@ Each student must complete one topical unit as part of enrolling in CS266. Click
 * Sensors and values
 * LCDs and Display
 
-### [Programming Environments - C](topical-units/env-cpp) (Under Construction)
-
 ### [Programming Environments - OpenMP](topical-units/env-openmp) (Under Construction)
 
 
diff --git a/cs-fundamentals/c.md b/topical-units/env-c/README.md
similarity index 95%
rename from cs-fundamentals/c.md
rename to topical-units/env-c/README.md
index f01a26d..cb2bbb3 100644
--- a/cs-fundamentals/c.md
+++ b/topical-units/env-c/README.md
@@ -1,4 +1,4 @@
-# Sub-Unit: Write a program in C
+# <img width=28px height=30px style='margin-right: 10px; margin-bottom: -5px;' src="https://upload.wikimedia.org/wikipedia/commons/1/19/C_Logo.png"> C Topical Unit
 
 C is a procedural programming language that gives developers a high degree of control over resource consumption. It is widely used in high-performance computing, scientific computing, embedded systems programming, operating systems, and other contexts where performance is critical. Numerous other languages are derived from C (e.g. C++), written in C (e.g. Python), or in important respects comparable to C (e.g. Go). Earlham CS in particular uses C programming often and has resources that can take advantage of its approach. As such, it is a valuable language to learn.
 
diff --git a/cs-fundamentals/c-examples/auc-trapazoidal-serial.c b/topical-units/env-c/c-examples/auc-trapazoidal-serial.c
similarity index 100%
rename from cs-fundamentals/c-examples/auc-trapazoidal-serial.c
rename to topical-units/env-c/c-examples/auc-trapazoidal-serial.c
diff --git a/cs-fundamentals/c-examples/average-ints.c b/topical-units/env-c/c-examples/average-ints.c
similarity index 100%
rename from cs-fundamentals/c-examples/average-ints.c
rename to topical-units/env-c/c-examples/average-ints.c
diff --git a/cs-fundamentals/c-examples/command-line-arguments.c b/topical-units/env-c/c-examples/command-line-arguments.c
similarity index 100%
rename from cs-fundamentals/c-examples/command-line-arguments.c
rename to topical-units/env-c/c-examples/command-line-arguments.c
diff --git a/cs-fundamentals/c-examples/primes.c b/topical-units/env-c/c-examples/primes.c
similarity index 100%
rename from cs-fundamentals/c-examples/primes.c
rename to topical-units/env-c/c-examples/primes.c
diff --git a/cs-fundamentals/hello-world.md b/topical-units/env-c/hello-world.md
similarity index 97%
rename from cs-fundamentals/hello-world.md
rename to topical-units/env-c/hello-world.md
index cc28930..c751dc0 100644
--- a/cs-fundamentals/hello-world.md
+++ b/topical-units/env-c/hello-world.md
@@ -1,4 +1,4 @@
-# Sub-Unit: Hello World
+# Hello World in C
 
 You are likely familiar with "Hello World" as the traditional first program to write in any language. Your first assignment is to write "Hello World" in C.
 
diff --git a/topical-units/env-cpp/README.md b/topical-units/env-cpp/README.md
deleted file mode 100644
index 5ccbad0..0000000
--- a/topical-units/env-cpp/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# <img width=30px height=30px style='margin-right: 10px; margin-bottom: -3px;' src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/18/ISO_C%2B%2B_Logo.svg/1822px-ISO_C%2B%2B_Logo.svg.png"> C++ Topical Unit (Under Construction)
-
-C++ is a superset of C that more directly supports OOD and OOP. With the Boost library and Standard Template Library it has been widely deployed across application domains. 
\ No newline at end of file
-- 
GitLab