Create a program-calculates the square root of number


Discuss the below:

Q1. Write a Java program that reads in 10 integers and displays the biggest and second biggest number from them.
For instance, if the input is 2 4 1 2 5 8 9 1 3 2, the output would show 9 and 8.

You can choose to use the console for input and output, or to use dialog boxes.

Test data in this case is simply a list of inputs and corresponding outputs like the example above.

Q2. Create a C# program that calculates the square root of each number in the multiplication table for values from 1*1 up to 10*10. Be sure to provide labels for your rows and columns. You should truncate your numbers to round down to the nearest integer for display purposes. Place an asterisk each time the square root is greater than or equal to 6.

A possible partial output for your program is shown below:

1 2 3 4 5 6 7 8 9 10
1 1 1 1 2 2 2 2 2 3 3
2 ...

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a program-calculates the square root of number
Reference No:- TGS01934490

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)