WAP to help the school student to learn mathematical operations. Use the rand function to produce two Positive one digit integers

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

As computer costs declined, 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 the students worldwide. The use of computers in education is referred to as computer assisted instruction. 

 

Module 1: WAP to help the school student to learn mathematical operations. Use the rand function to produce two Positive one digit integers. The program should then prompt the user with such a question as 

 

“how much is 6 * 7?” 

 

“how much is 5+4?” 

 

The student then input the answer. Next the program checks the answer. If it's correct display the message “very good” and ask another question if the answer is wrong display the message “no please try again” 

 

Module 2: one problem in CAI environment is student fatigue this can be reduced by varying the computer's response to hold the student’s attention. Modify the program so that various comments are displayed for each answer as follows 

 

Very good! 

 

Excellent! 

 

Nice work! 

 

Keep up the good work! 

 

Possible responses to an incorrect answer 

 

No, please try again. 

 

Wrong, try once more. 

 

Don’t give up! 

 

No, keep trying! 

 

Use random number generation to choose a number from 1-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. 

 

Module 3: More sophisticated computer assisted instruction systems monitor the students’ performance over a period. The decision to begin a new topic is often based on the student success with previous topics. Add a module to count the number of correct and incorrect responses type by student. After the student types 10 answers, your program should calculate the percentage that are correct. If the percentage is lower than 75%, display “ please ask your teacher for the extra help”, then reset the program so another student can try it if the percentage is 75% or higher display “congratulations you are ready to go to the next level”. 

 

Module 4: Modify the program to enter a difficulty level at a difficulty level of 1 the program should use only single digit numbers in the problems at a difficulty level of two the number as large as two digits and so on 

 

Module 5: Modify the program to allow the user to pick up a type of automatic problem to study an option of 1 means and problem leaks two means subtraction problems only three means multiplication problems only four means division problems only and five means a random mixture of all these dates 

 

 

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education