Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Times Tables! In elementary school, you likely had to memorize the times tables - for instance, the times table for 2 might look something like

Times Tables! In elementary school, you likely had to memorize the "times tables" - for instance, the times table for "2" might look something like this:

2 * 1 = 2

2 * 2 = 4

2 * 3 = 6

2 * 4 = 8

2 * 5 = 10

2 * 6 = 12

and so on. Since you're not in elementary school anymore, you can write a program that will calculate these for you. Your program will take in the number you want to multiple as well as a number that represents how far you want to multiply to. In our prior example, that would be "2" and "6" respectively. You will need to use loops to verify the user entered positive numbers before continuing (if they did not, keep prompting them until they do). Then, you will generate the times table for the first number, starting at multiplying by 1 and continuing until you reach the second number.

Sample Output #1: [Times Table Generator]

Enter your start number: 5

Enter the limit you want to multiply to: 8

5 * 1 = 5

5 * 2 = 10

5 * 3 = 15

5 * 4 = 20

5 * 5 = 25

5 * 6 = 30

5 * 7 = 35

5 * 8 = 40

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Here is my JAVA code for this problem import javautilScanner class Homewor... 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

Elementary Statistics

Authors: Robert R. Johnson, Patricia J. Kuby

11th Edition

978-053873350, 9781133169321, 538733500, 1133169325, 978-0538733502

More Books

Students also viewed these Programming questions