Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help. Thank you. Q4. (20 points) (Computer Assisted Instruction) The use of computers in education is referred to as computer-assisted instruction (CAl). As computer

Need help. Thank you. image text in transcribed
Q4. (20 points) (Computer Assisted Instruction) The use of computers in education is referred to as computer-assisted instruction (CAl). As computer costs decline, it becomes feasible for every student, regardless of economic circumstance, to have a computer and use it in school. This creates exciting possibilities for improving the educational experience of all students worldwide as suggested by the following exercise Write a program for a math quiz for an elementary school student. Use the rand function to produce two positive integers and choose a random operation. The quiz will test 4 main operations (ie. +,-, *, /) in 3 levels:1 (one-digit integers), level 2 (two-digit integers), and level 3 (three-digit integers). The program should prompt the user with 10 random questions (each question with different numbers and operations) for each level, such as How much is 8 times 7? The student then inputs the answer. Next, the program checks the student's answer. If it's correct, display one of the following messages (randomly) Very good! Excellent! Nice Work! Keep up the good work! and ask another question. If the answer is wrong, display one of the following messages (randomly) No. Please try again Wrong. Try once more Don't give up! No. Keep trying and let the student try the same question for a second time (i.e. students have at most two tries for each question). Use random-number generation to choose a number from 1 to 4 that will be used to select one of the four appropriate responses to each correct or incorrect answer. Use a switclh statement to issue the responses. Use a separate function to generate each new question. This function should be called once when the application begins execution, each time the user answers the question correctly, or when the user answers incorrectly for two times. At the end of the quiz, print the evaluation for each level (e.g. Your score: Level 1: 10/10, Level 2: 7/10, Level 3: 6/10)

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions