This repository contains a collection of C++ lab exercises related to intermediate programming. Each lab exercise focuses on a specific programming problem and includes a PDF file with the problem description and one or more C++ source code files to implement the solution.
-
Lab Exercise 3.pdf
- Description: Instructions for solving the Fibonacci Reciprocals problem.
-
fibonacci-reciprocals.cpp
- Description: C++ source code for calculating the reciprocals of Fibonacci numbers.
-
Lab Exercise 4 (1).pdf
- Description: Instructions for solving Goldbach's Conjecture in Array problem.
-
Goldbach's-Conjecture-in-Array.cpp
- Description: C++ source code for verifying Goldbach's Conjecture in an array.
-
Lab Exercise 5.pdf
- Description: Instructions for calculating the standard deviation of records.
-
standard-deviation-on-record-v1.cpp
- Description: C++ source code (version 1) to calculate the standard deviation.
-
standard-deviation-on-record-v2.cpp
- Description: C++ source code (version 2) to calculate the standard deviation.
-
standard-deviation-on-record-v3.cpp
- Description: C++ source code (version 3) to calculate the standard deviation.
-
Lab Exercise 6.pdf
- Description: Instructions for solving the Cylinder Tank Problem.
-
cylinder-tank-problem/CylinderTank.h
- Description: C++ header file defining the CylinderTank class.
-
cylinder-tank-problem/cylinderTankImp.cpp
- Description: C++ source code implementing the CylinderTank class.
-
cylinder-tank-problem/main.cpp
- Description: Main C++ source code for the Cylinder Tank Problem solution.
-
Lab Exercise 7.pdf
- Description: Instructions for implementing a Bank Account system.
-
bank-account/BankAccount.h
- Description: C++ header file defining the BankAccount class.
-
bank-account/BankAccountImp.cpp
- Description: C++ source code implementing the BankAccount class.
-
bank-account/CheckingAccount.h
- Description: C++ header file defining the CheckingAccount class.
-
bank-account/CheckingAccountImp.cpp
- Description: C++ source code implementing the CheckingAccount class.
-
bank-account/SavingsAccount.h
- Description: C++ header file defining the SavingsAccount class.
-
bank-account/SavingsAccountImp.cpp
- Description: C++ source code implementing the SavingsAccount class.
-
Lab Exercise 8.pdf
- Description: Instructions for simulating rolling dice.
-
rolling-dice-simulation/Dice.h
- Description: C++ header file defining the Dice class.
-
rolling-dice-simulation/RiggedDice.h
- Description: C++ header file defining the RiggedDice class.
-
rolling-dice-simulation/TwoDice.h
- Description: C++ header file defining the TwoDice class.
-
rolling-dice-simulation/diceImp.cpp
- Description: C++ source code implementing the Dice class.
-
rolling-dice-simulation/riggedDiceImp.cpp
- Description: C++ source code implementing the RiggedDice class.
-
rolling-dice-simulation/twoDiceImp.cpp
- Description: C++ source code implementing the TwoDice class.
-
main.cpp
- Description: Main C++ source code for testing and running various lab exercises.
To use any of the lab exercises, follow these steps:
- Clone the repository to your local machine.
- Choose the lab exercise you want to work on and open the corresponding directory.
- Review the
Lab Exercise [Number].pdf
file for instructions and problem details. - Implement your solution in the provided C++ source code file (if applicable).
- Compile and run the code using your preferred C++ compiler.
Contributions to this repository are welcome. If you wish to contribute to the lab exercises or make improvements, follow these steps:
- Fork this repository to your GitHub account.
- Create a new branch for your changes.
- Make your modifications and commit them with descriptive commit messages.
- Push the changes to your forked repository.
- Create a pull request to this repository's main branch with a detailed explanation of your changes.
This repository's lab exercises were created by Sir Michael Anthony Jay Regis as part of the C++ Intermediate Programming course. Credits to him for providing these problems and exercises.
Happy coding!