Purchase Solution

Writing Programs in Java and C#

Not what you're looking for?

Ask Custom Question

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

Purchase this Solution

Solution Summary

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

Solution Preview

Please find attached the following:

LargestNum.java - the Java ...

Purchase this Solution


Free BrainMass Quizzes
Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.