This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
class Blackjack | |
{ | |
private Deck deck = new Deck(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
public enum Suits | |
{ | |
S = 1, H, C, D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
class Dealer : Player | |
{ | |
public Dealer(decimal m) : base(m) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
class Deck | |
{ | |
private int _topCard = 51; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
class Player | |
{ | |
private decimal _money; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace HedgesBlackjack | |
{ | |
class User : Player | |
{ | |
private int _numWins = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************** | |
* Name: Eduardo Hernandez-Hedges * | |
* Date: 10/20/2010 * | |
* Assignment: Project 5: Fractions * | |
*********************************************** | |
* This project asks the user for two fractions | |
then asks the user whether they want to add, | |
subtract, multiply, or divide them. Then it | |
prints out the correct reduced value * | |
***********************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************** | |
* fraction.cpp: this handles all of the actual | |
computations done to the fractions. * | |
***********************************************/ | |
#include <iostream> | |
using namespace std; | |
#include "fraction.h" | |
/********************************************** | |
* setValues function: this function is pretty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************** | |
* fraction.h: this header file has the private | |
fields used in fraction.cpp and also has the | |
prototypes for the functions in fraction.cpp. * | |
***********************************************/ | |
#ifndef FRACTION_H | |
#define FRACTION_H | |
/********************************************** | |
* class Fraction: this class allows us to make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Teams | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
OlderNewer