cs161/assignments/assignment3.cpp
/*********************************************************************
 * ** Function: winCheck()
 * ** Description: This function returns however much money the user won or lost based on there total and the dealer total.
 * ** Parameters: x, total, bet, and value 
 * ** Pre-Conditions: All parameters have a value before using this function
 * ** Post-Conditions: Value has something in it 
 * *********************************************************************/
winCheck()
Description: This function returns however much money the user won or lost based on there total and the dealer total.
Parameters: x, total, bet, and value
Pre-Conditions: All parameters have a value before using this function
Post-Conditions: Value has something in it
winCheck () Description : This function returns however much money the user won or lost based on there total and the dealer total . Parameters : x total bet and value Pre - Conditions : All parameters have a value before using this function Post - Conditions : Value has something in it
int winCheck(int x, int total, int bet) {
	int value = 0;
	switch(x) {
		case 1: value = total + bet * 2; break; 
		case 2: value = total; break; 
		case 3: value = total + bet; break; 
		case 4: value = total; break; 
		default: value = total;
	}
	return value;
}
int winCheck ( int x , int total , int bet ) { int value = 0 ; switch ( x ) { case 1 : value = total + bet * 2 ; break ; case 2 : value = total ; break ; case 3 : value = total + bet ; break ; case 4 : value = total ; break ; default : value = total ; } return value ; }
** Function: winCheck()
 ** Description: This function returns however much money the user won or lost based on there total and the dealer total.
** Function : winCheck () ** Description : This function returns however much money the user won or lost based on there total and the dealer total .
//win //loss //tie //bust