Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

B: Quiz Application In this part, you are required to implement Quiz Application for small children learning arithmetic operations (addition, subtraction and multiplication). Generate ten

image text in transcribed
B: Quiz Application In this part, you are required to implement Quiz Application for small children learning arithmetic operations (addition, subtraction and multiplication). Generate ten questions and trace the child's score. Your MATLAB program should do the following: 1. For each question, generate two integers in the range 1 to 9 . 2. For each question, generate also 4 integers in the range 1 to 3 corresponding to the three above arithmetic operations: ( 1 for addition, 2 for subtraction and 3 for multiplication). 3. For each question, generate a question using the two integers in (1) above and the operation in (2) above using the following template: What is XX op YY? Where XX, YY, op are the two integers and the operation in (1) and (2) above respectively. For subtraction, subtract the smallest from the largestto ensure positive output. 4. Output this question to the child and accept the answer in a variable. 5. The child will score a point if his/her answer is correct, otherwise repeat the question for incorrect answer no more than three tries, and then show the correct answer. 6. Repeat the steps 1 through 5 above for all the ten questions. 7. At the end of the Quiz, the child should be able to see the summary of his/her performance in the Quiz such as showing the number of correct answers, number of incorrect answers and the final score

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

Step: 3

blur-text-image

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

=+ How would you advise those problems be resolved?

Answered: 1 week ago