Generate 100 <x,y> coordinate pairs such that x and y are integers sampled from the uniform distribution with the condition that . Then display/
Continue ReadingBjarne Stroustrup: Why I Created C++
https://www.youtube.com/watch?v=JBjjnqG0BP8
Continue ReadingC++: Split a string in C++
What’s the most elegant way to split a string in C++? The string can be assumed to be composed of words separated by whitespace. (Note that I’m
Continue ReadingC++ Full Course Lesson 7: Basic Arithmetic
https://www.youtube.com/watch?v=L1z2dpCosXU&index=7&list=PLAE85DE8440AA6B83
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++: 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++: Flatten a List
Write a function to flatten the nesting in an arbitrary list of values. Your program should work on the equivalent of this list: [[1], 2, [[3,4], 5
Continue ReadingC++ Programmer
https://www.youtube.com/watch?v=x1TsOHyJPpw
Continue ReadingC++: ABC Problem
You are given a collection of ABC blocks. Just like the ones you had when you were a kid. There are twenty blocks with two letters on each block. You
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 Reading




