Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C please, thank you! Q4. (20 points) (Computer Assisted Instruction) The use of computers in education is referred to as computer-assisted instruction (CAl). As

In C please, 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 (i.e. +, -, *,/) in 3 levels: level 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 switch 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

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

example of a written on - site audit activity in a audit plan

Answered: 1 week ago