/************************************************************* * slugger.cpp determines a player's sluggin percentage using a * formula * Input: Number of singles, doubles, triples, home runs, at-bats * Output : Player's slugging percentage * Programmed By: Mark Cruz * Block 2B * Date 10/7/2002 ***************************************************************/ #include #include double main () { cout << "Welcome to Mark's Slugging Percentage Calculator! \n" "Please enter your player's data.....\n" "Singles: "; double singles; cin >> singles; cout << "Doubles: "; double doubles; cin >> doubles; cout << "Triples: "; double triples; cin >> triples; cout << "Home Runs: "; double homers; cin >> homers; cout << "At-Bats: "; double bats; cin >> bats; double slug = ((singles) + (2*doubles) +(3*triples) +(4*homers))/(bats); cout << "Here are you Player's stats: \n" "Singles:"<