Write down a java program that reads in 10 integers

Assignment Help Computer Engineering
Reference no: EM1329570

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

Reference no: EM1329570

Questions Cloud

Explain kodak an expert review : Explain Kodak An Expert Review based on the following criteria Consistency and Accessibility
What is your definition of supply chain management : Supply Chain Management - Show What is your definition of Supply Chain Management?
Explain what should firm replace its old knitting machine : Explain what should the firm replace its old knitting machine, and if so, which new machine should it use.
Advantages in a supply chain : Do you think that research and development that reduces the time to make a product can have big advantages in a supply chain?
Write down a java program that reads in 10 integers : Write down 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.
Write an essay about a business : Write an essay about a business that you see has an opportunity to reach a business or an organization as a customer. You can either use a real world business or create a business that you want to use.
Illustrate percent have prices increased over the past : Illustrate percent have prices increased over the past thirty years. What average annual inflation rate would have resulted in this answer.
Write the program in java : Write the program in Java (with a graphical user interface) so that it would allow the user to select which way they want to calculate a mortgage: by input of the amount of the mortgage.
What is the importance of using concrete : What is the importance of using concrete, physical, and actionable terms when helping employees understand goals?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Speculate and share the perspective on the factors

Speculate and share your perspective on the factors mobile application developers must consider before deciding to charge or offer free/ad-sponsored products? If you decide to go with ad-support, is this a first release choice or as an update.

  Application showing sizes of two files and their ratio

Build a file which consists of your favourite movie quote. Make a use of a text editor like Notepad and save file as Quote.txt. Copy contents of the file and paste them into the word-processing program like Word. Save file as Quote.doc. Write down..

  Developing the lan for cpa firm

Instructed to develop a LAN for the very successful CPA firm with the five departments within one building and a total of the 560 employees, presently your team can offer.

  Determining the counterexample

Determine a counterexample for following algorithm on the basis of greedy strategy: Choose the largest subset for cover, and then delete all its elements from the universal set.

  Explain differences between the various graphic formats

explain differences between the various graphic formats. express some ways to increase your site's search engine ranking.

  What are an ethical dilemmas associated

What are the ethical dilemmas associated with using facial recognition software? Is this kind of software any different from a store asking to see your drivers license when you use your credit card.

  Generating the printstream object

Generate a PrintStream object utilizing the dos and allocate the resulting reference to ps, a PrintStream variable which has already been declared.

  How to establishing a secure computer room

Include the principles of separation of duties to find out who should be granted access into the computer room and the type of access they should have.

  Find out what restrictions should be imposed

he second law (the COPA), that is more narrowly focussed and covers only communications that are made for commercial purposes on World Wide Web, is the subject of a Court injunction (also on First Amendment grounds) preventing its enforcement pend..

  Tcp connections experience data segment loss

TCP connections experience data segment loss

  Identify the functions of a channel service unit

How are they used in the corporate environment.

  Explain substantial benefits to the company

A medium sized company requires to upgrade the computer facilities for administrative and design and development applications. At the moment all computer-based applications are processed on a very cold 'Batch' machine whose operating system does n..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd