DEAL OR NO DEAL C++ CONFUSED AND NEED HELP

#include<iostream>
#include<cstdlib>
#include<stdio.h>
#include<time.h>
#include<string>
using namespace std;
int main()
{
double brief[20] = {1,5,10,25,50,75,100,200,300,400,500,750,1000,5000,10000,25000,50000,75000,100000,200000};
int randombrief;
double banker;
int number;
int remaining = 19;
int counter = 0;
int turn = 2;
int sentinel = 0;
int x = 19;
int randomoffer;
int answer = 1;
srand ((unsigned)time(NULL));
cout << "\n \n \n" << endl;
cout << " DDDDD EEEEEE A LL" << endl;
cout << " DD DD EE A A LL" << endl;
cout << " DD DD EEEEEE A A LL" << endl;
cout << " DD DD EE AAAAAAA LL" << endl;
cout << " DDDDD EEEEEE AAA AAA LLLLLLLL" << endl;
cout << " OOOOOOO RRRRR" << endl;
cout << " OO OO RR RR" << endl;
cout << " OO OO RR RR" << endl;
cout << " OO OO RRRRRRR" << endl;
cout << " OOOOOOO RR RR" << endl;
cout << " NN NN OOOOOOO DDDDD EEEEEE A LL" << endl;
cout << " NNN NN OO OO DD DD EE A A LL" << endl;
cout << " NN NNN OO OO DD DD EEEEEE A A LL" << endl;
cout << " NN NN OO OO DD DD EE AAAAAAA LL" << endl;
cout << " NN NN OOOOOOO DDDDD EEEEEE AAA AAA LLLLLLLL" << endl;
cout << "C++ Edition..." << endl;
cout << "\n \n \n \nSimple Gameplay: There are 20 briefcases. \nThey have prizes varying from 1-200000 dollars. \nThe program will prompt you to choose briefcases \nuntil only one remains. Be reminded that a banker exist \nto make offers on designated turns. The banker will prompt you \nto choose DEAL OR NO DEAL. \n" << endl;


while (counter <=20 && remaining != -1)
{
while (sentinel <=3 && turn != -1)
{
cout << "\nPlease Enter Briefcase number you want to open [1-20]: ";
cin >> number;
cout << "\n";
if (number > 20 || number < 1)
{
cout << "Invalid Input. Enter [1-20] only. Do not enter a previously entered number" << endl;
cout << "Click exit and play again.";
}
else if (number == 20 || number == 19 || number == 18 || number == 17 || number == 16 || number == 15 || number == 14 || number == 13 || number == 12 || number == 11 || number == 10 || number == 9 || number == 8 || number == 7 || number == 6 || number == 5 || number == 4 || number == 3 || number == 2 || number == 1)
{
randombrief = rand()% 20+1;
if (randombrief == 1)
{
cout << "Brief case "<< number << " is $" << brief[0] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 2)
{
cout << "Brief case "<< number << " is $" << brief[1] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 3)
{
cout << "Brief case "<< number << " is $" << brief[2] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 4)
{
cout << "Brief case "<< number << " is $" << brief[3] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 5)
{
cout << "Brief case "<< number << " is $" << brief[4] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 6)
{
cout << "Brief case "<< number << " is $" << brief[5] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 7)
{
cout << "Brief case "<< number << " is $" << brief[6] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 8)
{
cout << "Brief case "<< number << " is $" << brief[7] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 9)
{
cout << "Brief case "<< number << " is $" << brief[8] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 10)
{
cout << "Brief case "<< number << " is $" << brief[9] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 11)
{
cout << "Brief case "<< number << " is $" << brief[10] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 12)
{
cout << "Brief case "<< number << " is $" << brief[11] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 13)
{
cout << "Brief case "<< number << " is $" << brief[12] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 14)
{
cout << "Brief case "<< number << " is $" << brief[13] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 15)
{
cout << "Brief case "<< number << " is $" << brief[14] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 16)
{
cout << "Brief case "<< number << " is $" << brief[15] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 17)
{
cout << "Brief case "<< number << " is $" << brief[16] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 18)
{
cout << "Brief case "<< number << " is $" << brief[17] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 19)
{
cout << "Brief case "<< number << " is $" << brief[18] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}
else if (randombrief == 20)
{
cout << "Brief case "<< number << " is $" << brief[19] << endl;
cout << "There are still " << remaining << " remaining briefcases to be opened." << endl;
}



}
sentinel = sentinel + 1;
turn = 2 - sentinel;
counter = counter + 1;
remaining = x - counter;

}
randomoffer = (rand()% 100+15) * 1000;
counter = counter + 1;
remaining = remaining - counter;
cout << "Banker offers you: $" << randomoffer << endl;
cout << "Deal or No Deal? input[0/1] : ";
cin >> answer;
if (answer == 0)
{
cout << "THANKS FOR PLAYING!" << endl;
break;
}
else if (answer == 1)
{
continue;
}
}
cout << "CONGRATULATIONS!" << endl;
system ("pause");
return 0;
}

//
program description: banker offers random money every 3 turns of picking brief cases.
WHAT DO I DO TO MAKE THE LOOP IN THE PART WHERE THE BANKER ASKS YOU DEAL OR NO DEAL NOT REPEAT AFTER PICKING NO DEAL? IF I PICK DEAL, I MADE IT SO THE PROGRAM WOULD STOP AND END. BUT I DON'T KNOW HOW TO FIX THE NO DEAL PART.
Topic archived. No new replies allowed.