Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

moiscoding/object-oriented-C-plus-plus

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 OBJECT ORIENTED C++ 🔥

object oriented C++ projects done during the course

IMPORTANT NOTE: the projects in this repo were done in my second semester of intro to computer science class. I had only ~4 months of real programming experience

Course Description:

Object-oriented algorithmic problem solving in C++, with attention to general as well as language-specific issues including pointer and pointer arithmetic; linked lists; memory management; recursion; operator overloading; inheritance and polymorphism; stream and file I/O; exception handling; templates and STL; applications of simple data structures; testing and debugging techniques.

==========================================

====== ===== === alt text ====== ===== ===

ASSIGNMENT # 1 - PERFECT SQUARE PROBLEM

Write a program to find and print the first perfect square (i*i) whose last two digits are both odd.

Very important:

Make sure to check that the answer you get is indeed a perfect square.

ASSIGNMENT # 2 - EQUIVALENT ARRAYS

a[] = {1,2,3,4,5} b[] = {3,4,5,1,2}

It is possible to transform array a into array b by right shifting each element of a to the “right” three places. If an element “falls off” the back of the array have it come around the front and keep counting positions. That is how 3 in array ended up in the first position of array b. One way to look at this is to imagine that we are moving the element around in a circular manner. In the example above, we have right shifted the array 3 positions to the right. Definition: Let a and b be two integer arrays of the same length. We say that they are “shift equivalent” if array a can be right shifted to create array b.

PROBLEM:

Write a function bool equivalent(int a[], int b[], int n) which takes two arrays a and b of length n and returns true is they are shift equivalent and false otherwise.

ASSIGNMENT # 3 - SCORE THE RACE

alt text

ASSIGNMENT # 4 - 2D 8 QUEENS

alt text

ASSIGNMENT # 5 - EQUIVALENT ARRAY 2.0

alt text

ASSIGNMENT # 6 - 1D 8 Queens V1.0

Redo the 2D 8 queens problems using a 1D array instead of a 2D array.

ASSIGNMENT # 7 - 1D 8 Queens V2.0

alt text

ASSIGNMENT # 8 - 8 Numbers In A Cross

alt text

ASSIGNMENT # 9 - Stable Marriage

alt text alt text

ASSIGNMENT # 10 - Understading Arrays as Pointers

alt text

ASSIGNMENT # 11 - Fancy Eight Queens

alt text

ASSIGNMENT # Practice - Integration

Inside a loop we sum up the area of rectangles with a small base (say .0001) and height f(x) for each x between a and b in increments of .0001. a = 1 b=5. Find the integral when f(x) = x, f(x) = x^2 and f(x) = x^3 between 1 and 5.

When the loop terminates, we return the value of the sum.

ASSIGNMENT # 12 - N- Queens

alt text

ASSIGNMENT # 13 - Towers Of Hanoi

alt text alt text

ASSIGNMENT # 14 - (RECURSIVE + NON-RECURSIVE) SHORTEST PATHS

alt text

ASSIGNMENT # 15 - RAT class

alt text

ASSIGNMENT # Extra Credit - K-Bishops

alt text

About

object oriented C++projects done during the course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.