Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This program will be a simple multiplication program that will generate and score simple two factor multiplication problems for the user. The program should ask

This program will be a simple multiplication program that will generate and score simple two factor multiplication problems for the user. The program should ask the user how many simple multiplication problems they want (between 1 and 10). for the problem that user ask, your program should do the following:

1) generate a random multiplication problem where each of two factors is an integer between 0 and 12.

2) display the problem for the user, like this:

What is 5 * 3?

3) give the user up to 3 chances to enter the correct answer for this multiplication problem. If the user provides the correct answer for this problem, then your program should move on to the next multiplication problem. If the user enters 3 incorrect answers to a problem your program should then display the correct answer for that problem, and then move on to the next multiplication problem.

Your program should keep track of the total number of correct answers given by the user and the total number of incorrect answers given by the user. After all multiplication problems have been finished, your program should display the total number of correct answers given by the user and the total number of incorrect answers given by the user.

Sample Output, with user input in red.

Sample run 1:

How many multiplication problems would you like (1 to 10)? 3 Problem 1: what is 5 * 3? Your Answer --> 8 8 is incorrect. Your Answer --> 15 15 is correct. Problem 2: what is 4 * 9? Your Answer --> 1 1 is incorrect. Your Answer --> 2 2 is incorrect. Your Answer --> 3 3 is incorrect. The correct answer is 36. Problem 3: what is 2 * 7? Your Answer --> 14 14 is correct. You gave 2 correct answers and 4 incorrect answers.

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

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions