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

  Implementation of the vector data type

Described in general terms the implementation of the vector data type. Complete the implementation of the vector by providing definitions for the subsequent operations

  Write a java loop

write a java loop ( of your choice ) that produces exactly the following output to the screen: 2-4-6-8-

  Calculate the largest divide by the smallest number

Please also calculate the largest divide by the smallest number provide the quotient and remainder and also put the information as a string on the applet. All the numbers will presented in two decimal places.

  Approximate the volume of cheese in a rectangular hunk

You will create a program that will approximate the volume of cheese in a rectangular hunk of Swiss cheese. For this approximation you will assume that the holes in the Swiss cheese are of two types: spherical bubbles (all of the same size) or cyl..

  Declare a linkedlist that stores strings

Include a text file showing the output from at least 3 future value calculations

  What the code does logically in the program

Compile and run the program. There are ten lines of code marked (1)..(10) that you must explain after analyzing the code, running the program, and examining the output.

  How many bits are needed to represent the index size

How many bits are needed to represent the index size - what would be the index size if 8-way set associative cache were used with the same capacity and block size?

  In this project you will simulate some people catching fish

in this project you will simulate some people catching fish in a lake. the purpose of the assignment is to get used to

  What is an illustration of a javascriptreg framework in the

what is an example of a javascriptreg framework? in the framework you have described what is an example of an

  Recommend at least five factors which programmers must

propose at least five factors that programmers should consider when choosing between data types such as those used in c

  Create listener objects for each jcombobox

Create listener objects for each JComboBox that set the background color of the panel when the user selects an integer. Use the current values supplied by the JComboBox objects to determine the background color.

  Represent one book in java

Represent one book in java

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