The task is to produce a sequential count in octal, starting at zero, and using an increment of a one for each consecutive number. Each number should
Continue ReadingC++: Draw a Clock
Task: draw a clock. More specific: Draw a time keeping device. It can be a stopwatch, hourglass, sundial, a mouth counting "one thousand an
Continue ReadingC++: Kaprekar Numbers
A positive integer is a Kaprekar number if: It is 1 The decimal representation of its square may be split once into two parts consisting of po
Continue ReadingC++: Black Scholes Put Option Rho
// Calculate the Black Scholes European put option Rho double BS_Put_Option_Rho(double S, double K, double r, double v, double T) // Parameters
Continue ReadingC++: Foreach Loop
Loop through and print each element in a collection in order. Use your language's "for each" loop if it has one, otherwise iterate through the collect
Continue ReadingC++: Environment Variables
Show how to get one of your process's environment variables. The available variables vary by system; some of the common ones available on Unix include
Continue ReadingC++: Greyscale Bars
The task is to display a series of vertical greyscale bars (contrast bars) with a sufficient number of bars to span the entire width of the display.
Continue ReadingC++: Loop Continue
Show the following output using one loop. 1, 2, 3, 4, 5 6, 7, 8, 9, 10 Try to achieve the result by forcing the next iteration within the loop up
Continue ReadingC++: Exceptions
This task is to give an example of an exception handling routine and to "throw" a new exception. C++ has no finally construct. Instead you can do t
Continue ReadingC++: Count in Factors
Write a program which counts up from 1, displaying each number as the multiplication of its prime factors. For the purpose of this task, 1 may be show
Continue Reading