Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program called Findsmallest to create a 1D array with 10 integer variables. The value of each integer variable in the 1D array will
Write a program called Findsmallest to create a 1D array with 10 integer variables. The value of each integer variable in the 1D array will be set as a random number between 1 and 100. After the 1D array is initialised, write a method to find the smallest number among the 10 integers in the 1D array. The output of the program should firstly display all integers in the 1D array, and then indicate the smallest integer among them as well as the index of the smallest integer in the 1D array. Write a program called Time Table2DArray to produce the multiplication table of l to 9 as shown using two nested for loops and 2D array, i.e. products in the table must be stored by using a 2D array. In the output table, each number takes a field of exact two digits (using printf() method) and the distance between two neighbouring numbers is a single whitespace. The output of the program should be: * | 1 2 3 4 5 6 7 8 9 ------------------------- 1 | 1 2 3 4 5 6 7 8 9 2 | 2 4 6 8 10 12 14 16 18 3 | 3 6 9 12 15 18 21 24 27 4 | 4 8 12 16 20 24 28 32 36 5 | 5 10 15 20 25 30 35 40 45 6 | 6 12 18 24 30 36 42 48 54 7 | 7 14 21 28 35 42 49 56 63 8 | 8 16 24 32 40 48 56 64 72 9 | 9 18 27 36 45 54 63 72 81
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