i am a beginner and i am stuck.
my homework is:First your program will input the number of games to simulate.
? Then the program should allow the user to pick a strategy ? 0 means stay with the door choice every
time it runs, and 1 means switch doors every time it runs.
? Then the program prompt the user to pick a door (1-3). The same door will be used for every trial.
? Create a for loop which will run based on the number of games being simulated. The body of the for
loop will contain statements to generate a random number for the door which has the car, an input
which allows the player to choose a door, and a counter to keep track of the number of wins based on
the strategy of staying or switching.
This is what i have(it does not work please help):
using namespace std;
double mydoor, goatdoor, lastdoor, winning_door;
double strategy, simulated, switch_1;