IN C++!
I need things added to this code that would make it so if theuser inputed the wrong answer it would say game over and the gamewould end. And also that once the player earns 15 points in levelthree it displays you win and the game ends.
#include <iostream>
#include <cstdlib>
#include <string>
#include <ctime>
using namespace std;
int main()
{
char option;
int score=0;
cout <<“Welcome to Whac-A-Mole”<< endl;
cout << endl;
cout <<“Press T for controls” <<endl;
cout <<“Press P to play the game”<< endl;
cout <<“Press U for directions” <<endl;
cin >> option;
if (option == ‘T’ || option == ‘t’) {
cout<< “The controls for the first level are Q W AS”<<endl;
cout<< “The
PayPal Gateway not configured
PayPal Gateway not configured