MVP Story

MVP Story - The MVP of the game, as chosen by our online...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
MVP Story The Internet has created a demand for shortened delays between events and the appearance of news stories about the events on the web. Suppose your online sports magazine determines the MVP of the NBA All-Star using the same rating formula each year. The formula assigns a weight of 50% for points scored, 10% for rebounds, 10% for steals, 10% for blocked shots, 10% for assists, and 10% for the number of years a player has been in the league. You have been asked to write a program that will produce the following article immediately following the game’s conclusion, given as input the statistics from the game: (name of player selected as MVP) Shines in NBA All-Star Game The ( East or West ) All-Stars won the NBA All-Star Game. The score was (winning team: East or West ) (their score), (losing team: East or West ) (their score). The leading scorer for the (winning team: East or West ) was (player with the most points for the winning team).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The MVP of the game, as chosen by our online sports magazine staff was (player with the highest rating on the winning team) with an overall rating of (MVPs rating). Input: The input is a line with the team name followed by the name and game statistics for each of 5 players on each team separated by colons. Sample Input: East LeBron James 20:5:2:0:0:1 Allen Iverson 18:3:4:0:7:7 Tracy McGrady 13:2:3:0:6:4 Paul Pierce 10:8:2:1:4:9 Jermaine ONeal 8:8:0:3:7:4 West Tim Duncan 22:8:0:3:6:9 Carmelo Anthony 23:5:2:2:0:1 Yao Ming 11:9:0:5:1:4 Steve Francis 15:2:4:0:0:4 Kevin Garnett 12:8:0:1:8:9 Sample Output Tim Duncan Shines in NBA All-Star Game The West All-Stars won the NBA All-Star Game. The score was West 83, East 69. The leading scorer for the West was Carmelo Anthony. The MVP of the game, as chosen by our online sports magazine staff was Tim Duncan with an overall rating of 13.6....
View Full Document

This document was uploaded on 05/01/2011.

Page1 / 2

MVP Story - The MVP of the game, as chosen by our online...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online