Home / Expert Answers / Computer Science / nbsp-1-create-a-java-program-that-computes-and-produce-the-multiplication-table-from-1-to-10-i-pa350

(Solved):   1. Create a java program that computes and produce the multiplication table from 1 to 10 i ...



1. Create a java program that computes and produce the multiplication table from 1
to 10 implementing multi-dimensional array

 

1. Create a java program that computes and produce the multiplication table from 1 to 10 implementing multi-dimensional array. Sample Output: MULTIPLICATION TABLE 3 4 5 6 ? 8 9 10 16 18 20 8 10 12 14 9 12 15 18 21 24 27 30 8 12 16 20 24 28 32 36 40 10 15 20 25 30 35 40 45 50 12 18 24 42 48 54 60 14 21 30 36 28 35 42 49 70 16 56 63 48 56 64 72 80 18 24 32 40 27 36 45 72 81 90 30 40 50 60 70 80 90 100 54 63 10 20 2. Write a program that reads 10 integers into an array, computes the average, largest, and smallest numbers in the array. 3. Write a program that allows the user to type in up to 10 positive numbers and then echoes back the numbers typed in but in reverse order. 4. Write a program that reads an m by n matrix row by row, then reads in an n by p matrix row by row, and then computes the product matrix and displays the two matrices as well as their product matrix on the screen. Write a Java method to find the smallest number among three numbers. Test Data: Input the first number: 25 Input the Second number: 37 Input the third number: 29 Expected Output: The smallest value is 25.0 5. Write a Java method to compute the average of three numbers. Go to the editor Test Data: Input the first number: 25 Input the second number: 45 Input the third number: 65 Expected Output: The average value is 45.0 6. A prime number is a number that is evenly divisible only by itself and 1. For example, the number 5 is prime because it can be evenly divided only by 1 and 5. The number 6, however, is not prime because it can be divided evenly by 1, 2, 4, and 6. Write a method named isPrime, which takes an integer as an argument and returns true if the argument is a prime number, or false otherwise. Also write main method that displays prime numbers between 1 to 500. GOOGSAWNE 8


We have an Answer from Expert

View Expert Answer

Expert Answer


Solution - Programming language - Java All solution steps are included in program codes. Solution 1 - Program code - public class MultiplicationTable{ public static void main(String[] args) { // declare a 2d array of size 10x10 i
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe