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 ]
- Host: GitHub
- URL: https://github.com/dreyyan/cipher-midterms-programming-cpp
- Owner: dreyyan
- Created: 2025-09-19T13:04:57.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-09-19T14:53:20.000Z (6 months ago)
- Last Synced: 2025-09-19T16:32:18.681Z (6 months ago)
- Topics: basic-programming, cpp
- Language: C++
- Homepage:
- Size: 1.98 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# π 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