[pt_view id="ce50e34ece"]
Continue ReadingC++: Fibonacci N-Step Number Sequences
These number series are an expansion of the ordinary Fibonacci sequence where: For n = 2 we have the Fibonacci sequence; with initial values [1,1
Continue ReadingC++: Bitwise Operations
Write a routine to perform a bitwise AND, OR, and XOR on two integers, a bitwise NOT on the first integer, a left shift, right shift, right arithmetic
Continue ReadingC++: Array Concatenation
Show how to concatenate two arrays in your language. If this is as simple as array1 + array2, so be it. #include <vector> #include <ios
Continue ReadingC++: Integer Literals
Some programming languages have ways of expressing integer literals in bases other than the normal base ten. Show how integer literals can be expre
Continue ReadingC++: Black Scholes Call Option Vega
// Calculate the Black Scholes European call option Vega double BS_Call_Option_Vega(double S, double K, double r, double v, double T) // Parame
Continue ReadingC++: Animate a Pendulum
One good way of making an animation is by simulating a physical system and illustrating the variables in that system using a dynamically changing grap
Continue ReadingC++: Classes
In object-oriented programming class is a set (a transitive closure) of types bound by the relation of inheritance. It is said that all types derived
Continue ReadingC++: Delete a File
In this task, the job is to delete a file called "input.txt" and delete a directory called "docs". This should be done twice: once "here", i.e. in the
Continue ReadingC++ Sorts
[pt_view id="cd7c62717a"]
Continue Reading