The Factorial Function of a positive integer, n, is defined as the product of the sequence n, n-1, n-2, ...1 and the factorial of zero, 0, is defined
Continue ReadingC++ String Algorithms
[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++: Fork
In this task, the goal is to spawn a new process which can run simultaneously with, and independently of, the original parent process. #include<
Continue ReadingC++: Dragon Curve
Create and display a dragon curve fractal. (You may either display the curve directly or write it to an image file.) This program will generate
Continue ReadingC++: Copy a Range of Elements
On line 7, we create a std::vector<int> called source containing a sequence of values that we wish to copy. On line 9, we have another std::v
Continue Reading




