Tag

cpp

3 articles

  • Simple C++ Bean machine program @KTSI

    This is a simple Bean machine program done in C++ for KTSI. This is how it works, you drop 100 balls and they fall in 6 different boxes. And this is how the C++ output should…

  • Simple C++ rect2polar program @KTSI

    This is another simple C++ program done for KTSI. This one converts rectangular to polar coordinates. #include #include using namespace std; void rect2polar(double &value, double &angle, double x, double y) { value = sqrt(pow(x, 2) +…

  • Simple C++ lottery program @KTSI

    Here is a simple C++ lottery program done for the KTSI. #include #include using namespace std; int main (int argc, char * const argv[]) { int numberCount; int maxNumbers; cout