/**
 * Demonstrates casting a variable to a certain type
 * and automatically changing a double to a String in a print statement.
 *
 * @author Sara Sprenkle
 */
public class WinPercentage {

    public static void main(String[] args) {
        int wins = 95;
        int losses = 56;
        int numGames = wins + losses;

        /* try removing the (double) below to see what happens. */
        double winPct =(double) wins/numGames;

        System.out.println("Your win percentage is " + winPct);
        System.out.println("Nice job!");
    }
    
}
