Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA Topics: Elementary Programming, Selection, Math functions, Characters and Strings, Loops, Methods, Single-dimensional Arrays, Multi-dimeinsional Arrays. 150 minutes) (40 points) write a program that takes
JAVA Topics: Elementary Programming, Selection, Math functions, Characters and Strings, Loops, Methods, Single-dimensional Arrays, Multi-dimeinsional Arrays.
150 minutes) (40 points) write a program that takes the from the users for the rows and columns of the multiplication table. You are required to implement the foll 1. A method to show the multiplication table (5 points) public static void print Multiplication Table (intri table, intti tows, A method that takes two integer arrays, a dimensional array, snd nasses the array to the previous method for showing (10 points). l public static void multiplicationTabletintu rows, intn columns) You will also need to change the multiplication table. You will change the tows and columns, and then create a new table based on the updated rows and The following methods (20 points) return the updated rows or columns, The input parameters rows and columns are the rows and columns of the existing multiplication Variables and colAdd and row colDelete Delere rows and columns. The following are method headers for changing the table: public atat int int [1 rows, int ti rovAdd) public static int lete add column (int columna, int coladd public static int public static intl) deletecolumn tint columna, int l 1 col Delete) [Hint: be careful of the length of the resulting rowlcolumn in the delete Rowldelete Column methods. The control strategy for the program that uses the aforementioned methods will be wing is a single test run. in the main method (5 points. The follo Enter the number of rows: 4 Enter row values: 1 2 5 8 Enter the number of columns: 3 Enter column values: 47 9 The multiplication table: List 51 20 81 32 56 720 rows/columns? ar (a) or delete (d How many rows to add? 2 Enter row values: 3 4 How many columns to add? 1 Enter column values 6 21 8 12 14 18 18 21 27 16 24 28 36 45 81 32 48 56 72 rows/columns? D Add (a) or delete (d) How many rows to delete? 4 Enter row values: 1 4 7 8 How many columns to delete? 12 14 18 31 12 18 21 27 (a) or delete (d) rows/columns? N Bye bye 150 minutes) (40 points) write a program that takes the from the users for the rows and columns of the multiplication table. You are required to implement the foll 1. A method to show the multiplication table (5 points) public static void print Multiplication Table (intri table, intti tows, A method that takes two integer arrays, a dimensional array, snd nasses the array to the previous method for showing (10 points). l public static void multiplicationTabletintu rows, intn columns) You will also need to change the multiplication table. You will change the tows and columns, and then create a new table based on the updated rows and The following methods (20 points) return the updated rows or columns, The input parameters rows and columns are the rows and columns of the existing multiplication Variables and colAdd and row colDelete Delere rows and columns. The following are method headers for changing the table: public atat int int [1 rows, int ti rovAdd) public static int lete add column (int columna, int coladd public static int public static intl) deletecolumn tint columna, int l 1 col Delete) [Hint: be careful of the length of the resulting rowlcolumn in the delete Rowldelete Column methods. The control strategy for the program that uses the aforementioned methods will be wing is a single test run. in the main method (5 points. The follo Enter the number of rows: 4 Enter row values: 1 2 5 8 Enter the number of columns: 3 Enter column values: 47 9 The multiplication table: List 51 20 81 32 56 720 rows/columns? ar (a) or delete (d How many rows to add? 2 Enter row values: 3 4 How many columns to add? 1 Enter column values 6 21 8 12 14 18 18 21 27 16 24 28 36 45 81 32 48 56 72 rows/columns? D Add (a) or delete (d) How many rows to delete? 4 Enter row values: 1 4 7 8 How many columns to delete? 12 14 18 31 12 18 21 27 (a) or delete (d) rows/columns? N Bye bye
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started