An open API service indexing awesome lists of open source software.

https://github.com/dreyyan/cipher-midterms-programming-cpp

[ CIPHER R&D Committee Β· C++ Midterms Programming Materials & Practice Problems ]
https://github.com/dreyyan/cipher-midterms-programming-cpp

basic-programming cpp

Last synced: 6 months ago
JSON representation

[ CIPHER R&D Committee Β· C++ Midterms Programming Materials & Practice Problems ]

Awesome Lists containing this project

README

          

![CodeQuest-Header](.assets/banner.png)

# πŸ“˜ C++ Midterms Programming - 1st Semester

## πŸ“Œ Overview
A collection of **C++ topic materials and practice problems** designed to reinforce concepts
ranging from **basic syntax to data structures**.
This repository was prepared by the **Research and Development Committee of CIPHER**
to serve as a resource for **midterm preparation**.

---

## 🎯 Objectives
- Reinforce understanding of **C++ fundamentals and syntax**
- Provide **progressive practice problems** to build problem-solving skills
- Support WVSU-CICT 1st year students in preparing for **midterms and beyond**

---

## πŸ“š Topics Covered
- **Basic Syntax & Fundamentals** β†’ Variables, operators, conditionals, loops
- **Data Structures** β†’ Strings only
- **Applied Practice** β†’ Midterm-focused problems and challenges

---

## πŸ“‹ Details
- **Prepared by:** CIPHER Β· Research & Development Committee
- **Purpose:** Midterms preparation & practice reinforcement
- **Focus Language:** C++

---

## πŸ“‘ Table of Contents

Click any filename below to open the example code.
You can view it directly here on GitHub without downloading anything.

---

### 🟒 Basics (Start Here)
- [helloWorld.cpp](1-Basics/01-helloWorld.cpp) – Your very first C++ program
- [comments.cpp](1-Basics/02-comments.cpp) – How to write notes inside your code
- [dataTypes.cpp](1-Basics/03-dataTypes.cpp) – Different kinds of values (int, float, char, etc.)
- [variables.cpp](1-Basics/04-variables.cpp) – Storing values in memory
- [arithmeticOperations.cpp](1-Basics/05-arithmeticOperations.cpp) – Adding, subtracting, multiplying, dividing
- [escapeSequences.cpp](1-Basics/06-escapeSequences.cpp) – Special characters like `\n` (new line)
- [output.cpp](1-Basics/07-output.cpp) – Different ways to print text (cout, variables, printf)
- [outputFormatting.cpp](1-Basics/08-outputFormatting.cpp) – Making your program’s output look neat

---

### 🟑 Control Flow
- [if.cpp](2-Control-Flow/01-if.cpp) – Making simple decisions
- [switch.cpp](2-Control-Flow/02-switch.cpp) – Choosing between many options
- [forLoop.cpp](2-Control-Flow/03-forLoop.cpp) – Repeating code a set number of times
- [whileLoop.cpp](2-Control-Flow/04-whileLoop.cpp) – Repeating code while a condition is true
- [doWhileLoop.cpp](2-Control-Flow/05-doWhileLoop.cpp) – Repeating code at least once

---

### 🟠 Functions
- [functions.cpp](3-Functions/01-functions.cpp) – Breaking code into reusable pieces

---

### πŸ”΅ Data Structures
- [strings.cpp](4-Data-Structures/01-strings.cpp) – Working with text in C++
- [arrays.cpp](4-Data-Structures/02-arrays.cpp) – Storing many values together in one variable

---

## 🧩 Think You’re Ready? (Practice Problems)

Try solving these small challenges using what you’ve learned so far.
Click any file to see the problem description or solution.

- [01-helloWorldMod.cpp](Practice-Problems/01-helloWorldMod.cpp) – Ask the user for their name and print a hello world message
- [02-commentsPractice.cpp](Practice-Problems/02-commentsPractice.cpp) – Add comments to a program that prints a message
- [03-dataTypesExplore.cpp](Practice-Problems/03-dataTypesExplore.cpp) – Work with different data types (int, float, etc.)
- [04-variableSwap.cpp](Practice-Problems/04-variableSwap.cpp) – Swap the values of two variables
- [05-arithmeticCalc.cpp](Practice-Problems/05-arithmeticCalc.cpp) – Perform basic arithmetic operations on two numbers
- [06-escapeSequencePractice.cpp](Practice-Problems/06-escapeSequencePractice.cpp) – Use escape sequences to format output
- [07-formattedOutput.cpp](Practice-Problems/07-formattedOutput.cpp) – Format output neatly with variables
- [08-gradeChecker.cpp](Practice-Problems/08-gradeChecker.cpp) – Determine a letter grade from a score
- [09-dayOfWeek.cpp](Practice-Problems/09-dayOfWeek.cpp) – Print the day of the week using a switch statement
- [10-countEvenNumbers.cpp](Practice-Problems/10-countEvenNumbers.cpp) – Print even numbers using a loop
- [11-sumUntilZero.cpp](Practice-Problems/11-sumUntilZero.cpp) – Sum numbers until zero is entered
- [12-guessNumber.cpp](Practice-Problems/12-guessNumber.cpp) – Create a simple number guessing game
- [13-rectangleArea.cpp](Practice-Problems/13-rectangleArea.cpp) – Calculate the area of a rectangle using a function
- [14-maxOfThree.cpp](Practice-Problems/14-maxOfThree.cpp) – Find the largest of three numbers using a function
- [15-stringReverse.cpp](Practice-Problems/15-stringReverse.cpp) – Reverse a string using a loop
- [16-arraySum.cpp](Practice-Problems/16-arraySum.cpp) – Sum the elements of an array
- [17-arrayMinMax.cpp](Practice-Problems/17-arrayMinMax.cpp) – Find the smallest and largest values in an array
- [18-PrimeNumberCheck.cpp](Practice-Problems/18-PrimeNumberCheck.cpp) – Check if a number is prime using loops
- [19-PalindromeString.cpp](Practice-Problems/19-PalindromeString.cpp) – Check if a string is a palindrome
- [20-FibonacciSequence.cpp](Practice-Problems/20-FibonacciSequence.cpp) – Generate Fibonacci numbers up to a limit
- [21-GCDCalculator.cpp](Practice-Problems/21-GCDCalculator.cpp) – Find the GCD of two numbers using a loop
- [22-NumberPattern.cpp](Practice-Problems/22-NumberPattern.cpp) – Print a number pattern using nested loops
- [23-StringVowelCount.cpp](Practice-Problems/23-StringVowelCount.cpp) – Count vowels in a string
- [24-AveragePositiveNumbers.cpp](Practice-Problems/24-AveragePositiveNumbers.cpp) – Calculate average of positive numbers
- [25-MultiplesInRange.cpp](Practice-Problems/25-MultiplesInRange.cpp) – Print multiples of a number in a range
- [26-ReverseArray.cpp](Practice-Problems/26-ReverseArray.cpp) – Reverse an array in-place
- [27-DigitSum.cpp](Practice-Problems/27-DigitSum.cpp) – Sum the digits of a number
- [28-TriangleValidator.cpp](Practice-Problems/28-TriangleValidator.cpp) – Check if three sides form a valid triangle
- [29-CountOccurrences.cpp](Practice-Problems/29-CountOccurrences.cpp) – Count occurrences of a character in a string
- [30-FactorialRange.cpp](Practice-Problems/30-FactorialRange.cpp) – Print factorials within a range
- [31-PerfectNumber.cpp](Practice-Problems/31-PerfectNumber.cpp) – Check if a number is perfect
- [32-StringCaseToggle.cpp](Practice-Problems/32-StringCaseToggle.cpp) – Toggle case of characters in a string
- [33-ArrayRotation.cpp](Practice-Problems/33-ArrayRotation.cpp) – Rotate an array by k positions
- [34-PrimeFactors.cpp](Practice-Problems/34-PrimeFactors.cpp) – Find prime factors of a number
- [35-BinaryConverter.cpp](Practice-Problems/35-BinaryConverter.cpp) – Convert a number to binary
- [36-MatrixDiagonalSum.cpp](Practice-Problems/36-MatrixDiagonalSum.cpp) – Sum the diagonals of a square matrix
- [37-LongestWord.cpp](Practice-Problems/37-LongestWord.cpp) – Find the longest word in a sentence

βœ‰οΈ **Want your code checked or reviewed?**
Feel free to reach out to **CIPHER's Research & Development Head** on **Messenger**!
πŸ‘‰ [Facebook](https://www.facebook.com/baka.drey.yan): *Adrian Dominic Tan*

Happy coding! πŸš€

> "The only way to learn a new programming language is by writing programs in it."
> β€” Dennis Ritchie