I). Write a program in c++ with class that will help an elementary school student learn multiplication. Use the rand function to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student's answer. If it's correct, display the message "Very good!" and ask another multiplication question. If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. A separate function should be used to generate each new question. This function should be called once when the application begins execution and each time the user answers the question correctly.

Question

I). Write a program in  c++ with class  that will help an elementary school student learn multiplication. Use the rand function to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student’s answer. If it’s correct, display the message "Very good!" and ask another multiplication question. If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. A separate function should be used to generate each new question. This function should be called once when the application begins execution and each time the user answers the question correctly.

I). Write a program in c++ with class that will help an elementary school student learn multiplication. Use the rand function
to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6
times 7? The student then inputs the answer. Next, the program checks the student's answer. If it's correct, display the
message "Very good!" and ask another multiplication question. If the answer is wrong, display the message "No. Please try
again." and let the student try the same question repeatedly until the student finally gets it right. A separate function should
be used to generate each new question. This function should be called once when the application begins execution and each
time the user answers the question correctly.

Image Transcription

I). Write a program in c++ with class that will help an elementary school student learn multiplication. Use the rand function to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student's answer. If it's correct, display the message "Very good!" and ask another multiplication question. If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. A separate function should be used to generate each new question. This function should be called once when the application begins execution and each time the user answers the question correctly.

Expert Answer

Want to see the step-by-step answer?

See Answer

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

See Answer
*Response times vary by subject and question complexity. Median response time is 34 minutes and may be longer for new subjects.

Related Computer Science Q&A

Find answers to questions asked by student like you

Q: Create a MySQL Database called “CSC306Class”. Create three (3) tables in the database called “studen...

A: CREATE DATABASE:A new SQL database is created using the CREATE DATABASE statement.Syntax:CREATE DATA...

Q: What is the file extension for JSON? name.xml name.JSON name.java name.py

A: The correct option is name.JSONJSON is abbreviated as Java Script Object Notation.A JSON file is a f...

Q: Write a program that reads a list of integers, and outputs whether the list contains all even number...

A: A C++ program that reads a list of integers, and outputs whether the list contains all even numbers,...

Q: Im working on homework and am stuck. I have created the code for taking the input of the user but I ...

A: Create a class named MainClassDeclare 2 dimensional array of students which contains 10 students, ea...

Q: Design a class named Employee. The class should keep the following information infields:• Employee n...

A: Program:Filename: “Test.java”public class Test{   public static void main(String args[])   {    Prod...

Q: Method: sumOdds(value: int): This method will sum all the odd values from 1 upto the value passed by...

A: A Python code for the given methods is as follows,File name: “main.py”import randomdef sumOdds(value...

Q: Using the provided Rental Car Transaction Java Classes  - Load the data to produce the results simil...

A: A “RentalCarTransaction.java” file is as follows,import java.time.LocalDate;public class RentalCarTr...

Q: Provide the code to create an input box for a data field named custPassword, with an input type suit...

A: The code and explanation to create an input box for a data field named custPassword of password type...

Q: 13.5 (Enable GeometricObject comparable) Modify the GeometricObject class to implement the Comparabl...

A: Unified Modeling Language (UML) class diagram: