Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use Matlab. Thanks Problem 2: Cows go MOO![15pt] A Kindergarden teacher wants to test her students to determine whether they know what sounds different
Please use Matlab. Thanks
Problem 2: Cows go MOO![15pt] A Kindergarden teacher wants to test her students to determine whether they know what sounds different animals make by asking them a question and giving them a series of pos- si bilities. For example a sample question is: Enter the sound that a duck make?Iquack,moo,ruff She asks you to create a program which tests the students. The program must: Display a message and instructions on how to use the program Have at least 10 different animals Must give the students 3 chances to get the question correct. .If they get it right then display a message (saying something positive) ay cuedl ss gie iem he aer piding paslie appoto .Questions must be randomized (choose a random animal for each question) There must be three possible sounds to choose from (in a random order) Two of the incorrect sounds must be randomly chosen for each new question Must repeat until quit is inputted as an answer. Must output a message when done which includes the number of questions attempted and the percentage correct All output should be formatted (neat and orderly) . All output must be age (0-10) appropriate! Hint the functions randi) and randperm may be useful. Make sure to email your code to your lab instructor so that we can play your game. A sample output of the code is shown on the following page Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started