question: output: Question 01 - Computer-Assisted Instruction (70 points) Part (a): Computer-Assisted Instruction - Computer- assisted
Fantastic news! We've Found the answer you've been seeking!
Question:
question:
output:
Transcribed Image Text:
Question 01 - Computer-Assisted Instruction (70 points) • Part (a): Computer-Assisted Instruction - Computer- assisted instruction (CAI) refers to the use of computers in education. Write a program to help an elementary school student learn multiplication. Create a function that randomly generates and returns a tuple of two positive one- digit integers. Use that function's result in your program to prompt the user with a question, such as How much is 6 times 7? For a correct answer, display the message "Very good!" and ask another multiplication question. For an incorrect answer, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. • Part(b): Reducing Student Fatigue - Varying the computer's responses can help hold the student's attention. Create a function that returns a random response to user answer so various comments are displayed for each answer. Possible responses to a correct answer should include 'Very good!", "Nice work!' and 'Keep up the good work!" Possible responses to an incorrect answer should include 'No. Please try again.', 'Wrong. Try once more.' and 'No. Keep trying. Choose a random number from 1 to 3, then use that value to select one of the three appropriate responses to each correct or incorrect answer. • Part(c): Difficulty Level-Modify part (b) to allow the user to enter a difficulty level. At a difficulty level of 1, the program should use only single-digit numbers in the problems and at a difficulty level of 2, numbers as large as two digits. • Part(d): Varying the Types of Problems - Modify part (c) to allow the user to pick a type of arithmetic problem to study -I means addition problems only, 2 means subtraction problems only, 3 means multiplication problems only, 4 means division problems only (avoid dividing by 0) and 5 means a random mixture of all these types. Create a function that prints type of arithmetic operations and returns user selection. • Part(e): Main program - Test your program generating multiple random questions until the user exits the program. • Part (f): additional requirements - For subtraction operator, if the left operand is smaller than the right operand, swap right operand with left operand. For division operator use integer division and if the denominator is zero, change it to one. • Part(g): Score - at the end of the program, print number of correct and wrong answers. Question 01 - Computer-Assisted Instruction (70 points) • Part (a): Computer-Assisted Instruction - Computer- assisted instruction (CAI) refers to the use of computers in education. Write a program to help an elementary school student learn multiplication. Create a function that randomly generates and returns a tuple of two positive one- digit integers. Use that function's result in your program to prompt the user with a question, such as How much is 6 times 7? For a correct answer, display the message "Very good!" and ask another multiplication question. For an incorrect answer, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. • Part(b): Reducing Student Fatigue - Varying the computer's responses can help hold the student's attention. Create a function that returns a random response to user answer so various comments are displayed for each answer. Possible responses to a correct answer should include 'Very good!", "Nice work!' and 'Keep up the good work!" Possible responses to an incorrect answer should include 'No. Please try again.', 'Wrong. Try once more.' and 'No. Keep trying. Choose a random number from 1 to 3, then use that value to select one of the three appropriate responses to each correct or incorrect answer. • Part(c): Difficulty Level-Modify part (b) to allow the user to enter a difficulty level. At a difficulty level of 1, the program should use only single-digit numbers in the problems and at a difficulty level of 2, numbers as large as two digits. • Part(d): Varying the Types of Problems - Modify part (c) to allow the user to pick a type of arithmetic problem to study -I means addition problems only, 2 means subtraction problems only, 3 means multiplication problems only, 4 means division problems only (avoid dividing by 0) and 5 means a random mixture of all these types. Create a function that prints type of arithmetic operations and returns user selection. • Part(e): Main program - Test your program generating multiple random questions until the user exits the program. • Part (f): additional requirements - For subtraction operator, if the left operand is smaller than the right operand, swap right operand with left operand. For division operator use integer division and if the denominator is zero, change it to one. • Part(g): Score - at the end of the program, print number of correct and wrong answers.
Expert Answer:
Answer rating: 100% (QA)
Question code import random imported for generating random numbers This function is for printing the result of the leavegame Two variables are passed number of correct answer and number of wrong answe... View the full answer
Related Book For
Posted Date:
Students also viewed these general management questions
-
Perform a Net Present Value Analysis for a Project Learning outcome: Student is able to apply NPV analysis to project decisions. Assume a student is planning to pursue a two year masters degree in...
-
Write a one to two-page commentary (using current APA format) on how selected technological innovations have impacted society in a positive way. PROJECT OVERVIEW In this assignment, you will visually...
-
public class A5Tests { /** The pass/fail status of the tests. */ private boolean allTestsPassed = true; /** The List used to test the outcomes. */ private LinkedList movieList; /** The starting point...
-
Refer to the situation described in P 192. Assume Pastner measures the fair value of all options on January 1, 2021, to be $4.50 per option using a single weighted-average expected life of the...
-
Name an economic institution and explain how it affects economic decision making or how its actions reflect economic principles
-
Consider an airfoil at 12 angle of attack. The normal and axial force coefficients are 1.2 and 0.03, respectively. Calculate the lift and drag coefficients.
-
Consider the following cash flow profile and assume MARR is 10 percent/year and the finance rate is 4 percent/year. a. Determine the MIRR for this project. b. Is this project economically attractive?...
-
Clampett Oil purchases crude oil products from suppliers in Texas (TX), Oklahoma (OK), Pennsylvania (PA), and Alabama (AL), from which it refines four end-products: gasoline, kerosene, heating oil,...
-
Display Oracle database employee last_name and salary for employee_ids between 100and 102. Include a third column that divides each salary by 1.55 and rounds the result two decimal places.
-
Assume today is t=0. A 10-year fixed rate bond with a 5% coupon rate is selling at par (annual coupons). From $200 FV of this bond, we form a floater and an inverse floater by equally splitting its...
-
Jordan wants to retire in 20 years when he turns 65. Jordan wants to have enough money to replace 80% of his current income less what he expects to receive from Social Security at the beginning of...
-
What are some advantages of using the decision-making procedures? What are some disadvantages? Explain
-
Describe three positive and negative effects of globalization on tourism. Explain in detail.
-
What is the business definition of stakeholder, and how is it different from the public?
-
Explain why communication skills are important in moving the workflow forward for successful job performance
-
According to the Pew Research Center, the average informed person has how many sources of daily information?
-
Which of the following are used in the calculation of the budget variance? (Check all that apply.) Multiple select question. Actual fixed overhead Budgeted fixed overhead Budgeted variable overhead...
-
The financial statements of Eastern Platinum Limited (Eastplats) are presented in Appendix A at the end of this textbook. Instructions (a) Does East plats report any investments on its statement of...
-
What is the approximate P- value for the following values of X2 and df? a. X2 = 34.52, df = 13 b. X2 = 39.25, df = 16 c. X2 = 26.00, df = 19
-
The report How Teens Use Media (Nielsen, June 2009) says that 37% of U.S. teens access the Internet from a mobile phone. Suppose you plan to select a random sample of students at the local high...
-
In an AP- AOL sports poll (Associated Press, December 18, 2005), 394 of 1,000 randomly selected U. S. adults indicated that they considered themselves to be baseball fans. Of the 394 baseball fans,...
-
Describe a job in which you think an employee recognition program might be an effective means for changing and improving employee behaviour. Explain how you would design the program and how you would...
-
Describe a situation in which you think an employer could use organizational behaviour modification and an employee recognition program to improve or correct employee behaviour. Can you anticipate...
-
A supervisor in a textile factory observes that one of her employees is violating a safety rule that could result in severe injury. What combination of reinforcement, punishment, and extinction could...
Study smarter with the SolutionInn App