(Computer-assisted instruction) the use of computers in education is referred to
ID: 3760835 • Letter: #
Question
(Computer-assisted instruction) the use of computers in education is referred to as computer-assisted instruction.(CAI)
Make an activity diagram and write a program that will help an elementary school student learn to multiply.
-Use a SecureRandom object to produce two possible one-digit integers. -The program should then prompt the student with a question, such as how much is 6 times 7? The student then inputs the answer. Next, the program checks the students answer. If it is correct, display the message "Very Good!" And ask another question. If the answer is wrong, display the message"No. Please try again." And let the student try to answer the question repedidly until they finally get the answer correct. -A separate method should be used to generate each new question. This method should be called once when the application begins execution and each time the student answers the question correctly.
(Computer-assisted instruction) the use of computers in education is referred to as computer-assisted instruction.(CAI)
Make an activity diagram and write a program that will help an elementary school student learn to multiply.
-Use a SecureRandom object to produce two possible one-digit integers. -The program should then prompt the student with a question, such as how much is 6 times 7? The student then inputs the answer. Next, the program checks the students answer. If it is correct, display the message "Very Good!" And ask another question. If the answer is wrong, display the message"No. Please try again." And let the student try to answer the question repedidly until they finally get the answer correct. -A separate method should be used to generate each new question. This method should be called once when the application begins execution and each time the student answers the question correctly.
(Computer-assisted instruction) the use of computers in education is referred to as computer-assisted instruction.(CAI)
Make an activity diagram and write a program that will help an elementary school student learn to multiply.
-Use a SecureRandom object to produce two possible one-digit integers. -The program should then prompt the student with a question, such as how much is 6 times 7? The student then inputs the answer. Next, the program checks the students answer. If it is correct, display the message "Very Good!" And ask another question. If the answer is wrong, display the message"No. Please try again." And let the student try to answer the question repedidly until they finally get the answer correct. -A separate method should be used to generate each new question. This method should be called once when the application begins execution and each time the student answers the question correctly.
Explanation / Answer
import java.util.Random; import java.util.Scanner; class CAI { public static int[] generateQuestion(){ Random r = new Random(); int arr[] = new int[2]; arr[0] = r.nextInt(9); arr[1] = r.nextInt(9); return arr; } public static void main(String args[]) { Scanner sc = new Scanner(System.in); int num[] = new int[2]; int ans; String choice; do{ num = generateQuestion(); do{ System.out.print(" How much is " + num[0] + " times " + num[1] + " ? :"); ans = sc.nextInt(); if(ans == (num[0]*num[1])){ System.out.print(" Very Good!"); }else{ System.out.print(" No.Please try again."); } }while(ans != (num[0]*num[1])); System.out.print(" Do you want more questions(y/n) :"); sc.nextLine(); choice = sc.nextLine(); }while(choice.equalsIgnoreCase("y")); } }
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.