Improve the programs functionality by utilizing at least 5


Improve the program's functionality by utilizing at least 5 of the concepts from the list below. Document how the game works, including how you utilized each of the chosen concepts and what it's role is inthe overall program.

List of Concepts
1. Vectors with iterators
2. Do or while loops
3. Operator overloading
4. Pointers/references
5. The heap(objects with 'new')
6. Destructor overloading
7. Constructor overloading
8. Copy constructor overloading
9. STL algorithms (sort, shuffle, etc..)
10. Private/protected data members/functions
11. Block scope
12. Function overloading
13. Multidimensional arrays
14. Functions, parameters, return values
// Guess my number
// The classic number guessing game
#include
#include
#include
using namespace std;
int main()
{
srand(static_cast(time(0))); //seed random number generator

int secretNumber = rand() % 100 + 1; // random number between 1 and 100
int tries = 0;
int guess;
cout << "\tWelcome to Guess My Number\n\n";
do
{
cout << "Enter a guess: ";
cin >> guess;
++tries;
if (guess > secretNumber)
{
cout << "Too high!\n\n";
}
else if (guess < secretNumber)
{
cout << "Too low!\n\n";
}
else
{
cout << "\nThat's it! You got it in " << tries << "guesses!\n";
}
} while (guess != secretNumber);
return 0;
}

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Improve the programs functionality by utilizing at least 5
Reference No:- TGS0647111

Expected delivery within 24 Hours