KNOW:
BE ABLE TO:
Sample Exam Question:
Write a data definition for a baseball player. Your definition should record the player's name, batting average, number of homeruns, number of runs batted in, and the player's position in the field. Give two examples of baseball players. Finally, write a function worth-a-million that returns true if a given player has more than 20 homeruns, more than 100 RBI's, and an average above .280. Make sure you write a contract and purpose for your function.