Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code as in java, Please dont use any Array or Arraylists This program will be a simple multiplication tutor program that will generate and score

image text in transcribed

Code as in java, Please dont use any "Array or Arraylists"

This program will be a simple multiplication tutor 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 each of the number of problems that the user requested, your program should do the following 1) generate a random multiplication problem where each of two factors is an integer between 0 and 12 There are a couple of different ways that yo might go about generating random factors in your program. One common way would be to use the Math.random& method 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 incorredt answers to a problem your program should then display the correct answer for that problem, and then move on to the next multiplication problenm 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 How many multiplication problems would you like (1 to 10)? 3 Problem 1: what is 5 * 3? Your Answer-8 8 1S incorrect. Your Answer-15 15 is correct Problem 2: what is 4 *9? Your Answer1 1 is incorrect. YourAnswer-2 2 1S incorrect. Your Answer-3 3 1S 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. Note: Do not use any Java language or library features that we have not already covered in class. For example, do not use arrays or ArrayLists

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_2

Step: 3

blur-text-image_3

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

Students also viewed these Databases questions

Question

Explain the difference between matrix and project organization.

Answered: 1 week ago