Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

1. Identify outcomes (e.g., quality, accidents).

Answered: 1 week ago