Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program will be a self-quizzing program for students learning basic arithmetic. Your program will quiz students on addition, subtraction, and multiplication. The program should

This program will be a self-quizzing program for students learning basic arithmetic. Your program will quiz students on addition, subtraction, and multiplication. The program should present a menu for the user to select the type of problems they want to solve:

  1. Practice Addition
  2. Practice Subtraction
  3. Practice Multiplication
  4. Exit

Once the user selects, they should be presented with 10 problems one at a time. After the user enters their answer to a problem, the program should provide a message that lets them know if the answer was correct or incorrect. For example, your program can prompt:

How much is 6 times 7?

The response should be "Excellent!" if they get the question correct or "No. Keep Trying" if the answer is incorrect. To make the program more interesting, your program should have different responses for correct and incorrect answers to provide some variety. Correct answers should be given one of these randomly selected responses:

  • Nice Job!
  • Excellent!
  • You are doing great!
  • You got this!

for incorrect answers, your program should randomly from these responses:

  • Sorry. Please try again.
  • Don't hang your head. Try once more.
  • You can do it. Don't stop now!
  • That was not it, but keep practicing!

Your program should have the student keep answering the same question if they get it incorrect.

Your program should use the random number generator for C++ to generate the random responses and to generate the random numbers used within the problems. The numbers for the problems should be selected between 0 and 50, and always use integer values.

Your program is also required to use functions. Therefore, you should consider your input tasks, processing tasks, and output tasks.

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

19 Setting objectives, determining strategy and tactics

Answered: 1 week ago