Question: Create a Java console program that prompts a user to enter a number. The program uses the input value to calculate and list the products

 Create a Java console program that prompts a user to enter

Create a Java console program that prompts a user to enter a number. The program uses the input value to calculate and list the products of two numbers up to the entered number. For instance, if a user has entered 3, the program calculates the products between two numbers (e.g., 1 times 1, 1 times 2, 1 times 3, 2 times 1, 2 times 2, 2 times 3, 3 times 1, 3 times 2, and 3 times 3), stores the products into a two-dimensional array, and list the multiplied numbers. The program then asks the user whether to continue or quit. If the user enters q, the program stops. If the user enters any other key but q, the program continues as shown in the following example. C:\Java Code>java Exam04TomJones Enter a positive integer: 3 Enter q to quit or any other key to continue: c Enter a positive integer: 4 Enter q to quit or any other key to continue: q C:\Java Code>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!