Calculates the square root of each number

Assignment Help JAVA Programming
Reference no: EM13940465

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: EM13940465

Questions Cloud

Current state of water accounting in australia : Your task is to research the current state of water accounting in Australia. At a minimum you should be able to report on: Who currently has oversight responsibility and authority to direct water accounting in Australia?
Write an essay on lemonade stand activity : Lemonade Stand Activity. As you have read about in our lecture, we have used a lemonade stand to help us understand some basic concepts of business. As we pointed out, a lemonade stand has simple business; yet it can help us understand almost every f..
Three divisions -marketing, production : Charles Corporation has three divisions -marketing, production, and personnel. There is a manager in charge of each division. The flexible budgets for each division follow.
Can you distinguish between bad stocks and bad companies : Can you distinguish between bad stocks and bad companies? Does the fact that the industry is declining mean that the stock is a bad buy?
Calculates the square root of each number : Write a Java program that reads in 10 integers and displays the biggest and second biggest number from them.
Development of theoretical ethical approaches : Explain the background and development of theoretical ethical approaches 1.1. Explain the background and development of theoretical ethical approaches
How is blood alcohol measured and collected : How is blood alcohol measured and collected? How does the alcohol anatomically and physically get into the lungs to be measured by the police officer with a Breathalyzer?
Manufacture the spray containers : The company has contacted a number of packaging suppliers to determine whether it is better to buy or manufacture the spray containers. The lowest quote for the containers is $1.87 per 30 units.
What crime did able and boyd commit : Charlene's car was running and had the doors open. Able and Boyd empty the coin dish in Charlenes car. Able and Boyd run a red light at high speed and cause a crash that kills D. Able and Boyd are arrested. Charlene is rushed to the hospital and d..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Javas drawing capabilities

This week, we will be learning to use some of Java's drawing capabilities. The Graphics class provides methods for drawing many different shapes, using different colors, and for drawing strings using different fonts.

  Create a program in java that displays hello world

Create a program in Java that displays "Hello world!", No Design Section is required for this assignment, Copy and Paste your code into the Source Programs section and a screen shot of the results in the Output section.

  Creating a grade book that will use arrays

You will be creating a grade book that will use arrays to store students and their grades. The breakdown of the project is as follows. You must be able to add a student, remove a student, edit a student, remove all students, and exit the program

  Write a while loop that lets the user enter a number

1) Write a while loop that lets the user enter a number. The number should then be multiplied by 10, and stored in a variable called product. The loop should then iterate as long as product contains a value less than 100.

  Write a program for sending and receiving a file

Write a program for sending and receiving a file that uses Hamming code for error correction - The encoder should generate file encoded that consists of codewords and should be twice the size of the original dataFile.

  Invoice application that validates the data

Code to the Invoice application that validates the data the user enters. That includes exception handling code as well as specific data validation methods

  Public float usefulload()

public float usefulLoad() // this is the grossWeight - emptyWeight public float usefulLoadWithFuel( in gallons ) // this is the useful load - gallons x 6. The programmer user will pass in the number of gallons on board.

  Write a method named validate to help a local banker

write a method named validate to help a local banker. Your method will need to utilize two input parameters and the method's return value (for its output).

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Die class that can hold an integer

Design a die class that can hold an integer from 1 to 6. use the dice class to create a dice game. in this game, the user chooses a number between 2 and 12 inclusive

  Calculate state income tax for a single taxpayer

The second programming project involves writing a program to calculate state income tax for a single taxpayer that uses a GUI

  How is the location of the click point determined

When a mouse event is generated how is the location of the click point determined?

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