Problem #5 (15 points): You all know I like sports, especially baseball, what is
ID: 2292254 • Letter: P
Question
Problem #5 (15 points): You all know I like sports, especially baseball, what is your favorite sport? Expected from this program Show the options in a menu form for the user for them to press either Baseball Football, Soccer, Track and Field, Other, and Quit Survey When display a fun fact for each sport as follows . o Baseball display "Bobby Richardson is the only player to win an MVP on the World Series losing team" o Football display "It takes 600 cows to make one full season's worth of NFL o Basketball display" Basketball was invented by a YMCA teacher in Springfield, o Soccer - display "FC Barcelona wears UNICEF logo in their shirt while donating o Track and Field - display "UNC Charlotte Men T&F; Team Won C-USA o Other - display " Golf: The average golf ball has 336 dimples, Tennis: Tennis balls o Quit Survey - display "Thanks for participate" footballs" MA" 1.5M euros each year - Reverse sponsorship" Championship this year" where change from white to yellow in 1972" Example Which team you think will win the superbowl 50? Panther: Keep Pounding Broncos are my option Thanks for participate PANTHERS Broncos Survey CompleteExplanation / Answer
count=0;
while count < 3
Gamename=input ('Enter the gamename: ' , ' s ');
switch Gamename
case 'baseball'
fprintf( 'Bobby Richardson is the only player to win an MPV on the World Series losing Team ');
count=0;
case 'football'
fprintf ( 'It takes 600 cows to make one full season's worth of NFL footballs ');
count=0;
case 'basketball'
fprintf ( 'Basketball was invented by a YMCA teacher in Springfield, MA ');
count=0;
case 'soccer'
fprintf ('FC Barcelona wears UNICEF logo in their shirt while donating 1.5M euros each year -Reverse sponsorship ');
count=0;
case 'TrackAndField'
fprintf ( 'UNC Charlotte men T & F teams won C-USA Championship this year ');
count=0;
case 'others'
fprintf ( ' The average golf ball has 336 dimples, Tennis: Tennis balls were change from white to yellow n 1972 ');
count=0;
otherwise
fprintf ( ' Thanks for participate ');
count=count+1;
end
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.