Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java language needed! One assignment illustrated in 3 steps! I have posted the template code to start with. 4.12 LAB: Multiplication Tables This program prints

Java language needed!

One assignment illustrated in 3 steps!

I have posted the template code to start with.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

4.12 LAB: Multiplication Tables This program prints out the first ten lines of a multiplication table of the number 5. Example output: 5 x 1 = 5 5 x 2 = 10 5 x 5 = 5 x 6 = 30 6 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 5 x 10 = 50 (1) Modify the program so the user chooses the number to multiply. (3 pts) Example output if the user enters 7. Enter a number: 7 x 1 = 7 7 x 2 = 14 3 = 21 7 x vou 7 = 49 7 x 8 = 56 7 x 9 = 63 7 x 10 = 70 (2) Extend the program so the user chooses how many lines of the table to display. This will generate a second table (3 pts) Example output if the user enters 7 and 6 Enter a number: x 1 = 7 2 = 14 x 6 = 42 = 49 7 x 8 = 56 7 x 9 = 63 7 x 10 = 70 Enter the number of rows to display: 7 x 1 = 7 x 2 = 14 7 x 3 = 21 a una w 7 x 5 = 35 7 x 6 = 42 (3) Extend the program so the second table is displayed backwards. Leave a blank line between the tables. (4 pts) Example output if the user enters 7 and 6. Enter a number: 7 x 1 = 7 7 x 2 = 14 00 0) 7 x 6 = 42 7 x 7 7 x 8 = 56 7 x 9 = 63 7 x 10 = 70 Enter the number of rows to display: 7 7 x 7 x 1 2 = = 7 x 6 = 7 x 6 = 42 7 x 5 = 35 NN wa ua a una w 7 x 3 7 x 2 = 14 7 x 1 = LAB ACTIVITY 4.12.1: LAB: Multiplication Tables 0/10 Sequence.java Load default template... import java.util.Scanner; public class Sequence { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); int num = 5; for (int counter = 1; counter

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

Perform the indicated divisions. (5sT)(88T ) 10s7 2

Answered: 1 week ago