Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me do the code for this question so it runs properly Problem 2: Cows go M00! [15pt] A Kindergarden teacher wants to test

image text in transcribed
image text in transcribedPlease help me do the code for this question so it runs properly
Problem 2: Cows go M00! [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- sibilities. For example a sample question is: Enter the sound that a duck makenquack.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) . If they exceed 3 tries give them the answer (providing positive support) 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 randiO 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. LG

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions