Problem #5 (15 points): You all know I like sports, especially baseball, what is
ID: 1766140 • 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 Baseball - display "Bobby Richardson is the only player to win an MVP on the World Series losing team" o o Football display "It takes 600 cows to make one full season's worth of NFL footballs" Basketball - display "Basketball was invented by a YMCA teacher in Springfield, MA" Soccer-display "FC Barcelona wears UNICEF logo in their shirt while donating 1.5M euros each year - Reverse sponsorship" Track and Field -display "UNC Charlotte Men T&F; Team Won C-USA Championship this year" Other-display "Golf: The average golf ball has 336 dimples, Tennis: Tennis balls where change from white to yellow in 1972" Quit Survey-display "Thanks for participate" o o o o o 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
matlab code
Clc
Clear;
Disp(`this is accuracy about the sports’);
Disp(`take the option corresponding to your choice);
Disp(`what is your favorite sport ?’);
Disp(`1.base ball 2.basket ball 3.soccer 4.oter 5.quit’)
Disp(`take relant option “1” , 2” ,etc’);
X=input(`enter your option (1-5)=’);
If x= =1,
Disp(boddy Richardson is only player to win an MVP on the world sories using team’);
Else if x= =2,
Disp(basket ball was inveted by a Rmca teacher in spring field,MA’);
Else if x= =3,
Disp (`FC bar celona wears UNICEF logo in their shift while donating 1.5 meuros each gcer-reverse sponsorship’);
Else if x= =5,
Disp(`golf: the arrange golf ball has 336 dimples,tennis: tennis balls where change from white to yellow in 1972’);
Else if x= =5),
Disp(thanks for participate’);
Else if (x>5),
Disp (your choice not relavent in the serrcy’);
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.