-
Javascript code for mortgage amortization table
The below source code is deployed on this post: https://ericsweeten.wordpress.com/wp-content/uploads/2022/07/amortization.html
-
Making an array with a “starting index” other than 0 in C++
Running Source Code main.cpp lbarray.h
-
Using malloc and overriding operators with a simple polynomial sorter, all written in C++
Running Source Code
-
Example of inheritance in C++
Running Source Code main.cpp square.h
-
Simple Calculator with command-line GUI in C++
Running Source Code main.cpp display.h display.cpp value.h value.cpp
-
Example of overriding operators in C++ using a class that deals with fractions
C++ allows for the ability to overwrite operators. This program shows an example using various operators in a class that deals with fractions. It also throws a runtime exception if a divide by zero is attempted. Running Source Code main.cpp fraction.h fraction.cpp
-
Abstract data types using typename in C++
C++ has some really great advantages over languages like Java. It allows for abstract data types using the keyword typename. In this simple program, I create a class called Array and pass to it a typename and an integer to declare its size. I’m then able to assign array elements a value that corresponds to…
-
Binary Search in C++
This is a recursive binary search algorithm written in C++. It only works with presorted lists going up in value. If the value is not found, it says it is at position -1. Bubble sort is a great way to sort small lists. You can see a bubble sort algorithm written in Java here: Running…
-
2×2 Matrix in C++
This is a fairly simple 2×2 matrix calculator written in C++ with the values hard-coded. Running Download You can copy the source code from below, or you can download it from here for $1. Be sure to click on “2×2 Matrix (source code)” in the dropdown list. Source Code main.cpp matrix.h matrix.cpp vector.h vector.cpp
-
Space Invaders (Java desktop app w/source code)
The complete source code is below. The resources are not included, but you can see a hierarchy of what resources I used, along with their names, below. The download comes with a text file that includes the exact dimensions of each sprite, sprite sheet, and the sprites on each sprite sheet along with how many…