Write the program with java class and filename pythagorasxy

Assignment Help JAVA Programming
Reference no: EM13978762

This exercise is to write a program to compute the hypotenuse of a right triangle, using the Pythagorean Theorem.

1. Review the Pythagorean Theorem, in case your geometry is rusty.

2. Write pseudocode in a text editor that shows the program sequence: 1) output explanation of the program purpose, 2) query the user for the sides of the triangle, 3) compute the length of the hypotenuse, 4) output the result.

3. Save the pseudocode as PythagorasXY.txt.

4. Write the program with Java class and filename PythagorasXY. Assume the user may input any decimal value. Use the Scanner class to read input, System.out.println for output. Use Math.pow and Math.sqrt in the program.

5. Compile and run.

6. Save a screenshot of the program run from the command line using the sides of 8 and 15 with a filename of PythagorasXY.png
How to Submit Your Work

Zip the .txt, .java, and .png file together into Pythagoras.zip.

Reference no: EM13978762

Questions Cloud

Firm net income exceeded return on shareholds equity : How Disney dealt with the Principal - Agent Problem: In 1984, the Walt Disney Company brought in Michael Eisner, a Paramount executive as CEO. The firm's board of directors agreed to pay Eisner a salary of $750,000, plus a $750,000 bonus for signing ..
Describe a pattern that you would like to change : STEP ONE: DETERMINING WHY CHANGE IS DESIRED- Describe a "pattern" that you would like to change.  Describe the relationship in which it exists. Discuss the: Problems it creates for you
What is the estimated loan rate for the five-year bank loan : Cartco needs to borrow $4 million for an upgrade to its headquarters and manufacturing facility. Management has decided to borrow using a five-year term loan from its existing commercial bank. The prime rate is 3 percent, and Cartco’s current rating ..
Assume investment is low risk-no riskier than putting momey : How much are you willing to invest today to receive $150 a year for seven years and an additional $1,200 at the end of the seventh year? Assume this investment is low risk, that is, no riskier than putting money in a bank earning 2%.
Write the program with java class and filename pythagorasxy : Write pseudocode in a text editor that shows the program sequence: 1) output explanation of the program purpose, 2) query the user for the sides of the triangle, 3) compute the length of the hypotenuse, 4) output the result.
Describe how you might approach photography differently : Consider the effect of composing photographs using the fundamental principles of photography you have studied in this course.
What is approximate total amount of money issuing these bond : The Biltmore Equipment Co. just issued 250,000 zero coupon bonds. These bonds mature in 30 years, have a par value of $1,000, and have a yield to maturity of 7.25 percent. What is the approximate total amount of money the company raised from issuing ..
Planning to save for retirement : You are planning to save for retirement over the next 35 years. To do this, you will invest $840 per month in a stock account and $440 per month in a bond account. The return of the stock account is expected to be 10.4 percent, and the bond account w..
Calculate the NPV of going directly to market : Ang Electronics, Inc., has developed a new DVDR. If the DVDR is successful, the present value of the payoff (when the product is brought to market) is $34.7 million. If the DVDR fails, the present value of the payoff is $12.7 million. If the product ..

Reviews

Write a Review

JAVA Programming Questions & Answers

  The class date was designed and implemented

In Programming Exercise 2, the class Date was designed and implemented to keep track of a date, but it has very limited operations. Redefine the class date so that, it addition to the operations already defined, it can perform the following operation..

  Write a generic class pair which has two type parameters

I need to write a generic class Pair which has two type parameters F and S (first and second) each representing the first and second elements of the pair. Add get and set elements so that the values of the pair can be changed.

  Create a java class called student

Create a Java class called student with the following instance variables: private String studentName

  Writing a class using conditionals that test double values

To approximate the square root of a positive number n using Newton's method, you need to make an initial guess at the root and then refine this guess until it is "close enough.

  Create a 2-dimensional array for the volume of concrete

Your Company constructs concrete hemispherical domes that range in diameter from 40 to 90 feet and increments of 5 feet.

  Write a java sorting application with two classes

Write a Java Sorting Application with two classes, JavaSort and JavaSortTest. Your JavaSort Class, as a minimum must contain sorting methods for BubbleSort, InsertionSort, ShellSort, MergeSort, and QuickSort.

  Create a class for services offered by a hair-styling salon.

The Curl Up and Dye Salon offers a variety of salon services for its customers. Jane Fields, the owner, has contracted to have you write a program that allows reports to be output, sorted by each type of service offered. Table below shows the vari..

  History of java

Add a class FillInQuestion to the question hierarchy of How To 10.1. An object of this class is constructed with a string that contains the answer, surrounded by _ _, for example, "The inventor of Java was _James Gosling_". The question should be ..

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

  Write an application that uses an array

Write an application that uses an Array to store 10 messages of type String. You will store this Array with 10 messages of your choosing.

  What challenges in planning solution for programming problem

what are the three biggest challenges in planning and designing a solution for a programming problem? What can you do to overcome these challenges? How would you apply these techniques to the programs in this class?

  The federal acquisition regulation

According to the text, the Federal Acquisition Regulation (FAR) is a body of law that governs U.S. Federal Government's procurement process. The FAR is prepared, issued and maintained under the joint command of the Secretary of Defense, the Administr..

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