Explore BrainMass

Explore BrainMass

    Writing Programs in Java and C#

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    1. 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.

    2. Write 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 ...

    © BrainMass Inc. brainmass.com November 30, 2021, 5:24 am ad1c9bdddf
    https://brainmass.com/computer-science/java/programming-java-c-454239

    Solution Preview

    Please find attached the following:

    LargestNum.java - the Java ...

    Solution Summary

    The following posting helps with problems that involve writing java and C# programs.

    $2.49

    ADVERTISEMENT