Question: Part Three: Use Eclipse to write the code and when you are ready copy the code to a word document and submit it on Blackboard

 Part Three: Use Eclipse to write the code and when you

Part Three: Use Eclipse to write the code and when you are ready copy the code to a word document and submit it on Blackboard or submit the java file. Write a program in a class NumberAboveAverage that counts the number of days that the temperature is above average. 1) a. Read ten temperature from the keyboard and place them in an array. b. Compute the average temperature. c. Count and display the number of days on which the temperature was above average 2) Write a program that calculates the hypotenuse of a right triangle using Pythagorean Theorem. The program should ask the user to enter 2 values. The first value is the length of the first triangle side, and the second value is the length of the second triangle side. Assume the values to be double. Your program should contain three methods: calculateHypotenuse, addSquares, and main. The first method (calculateHypotenuse) should use addSquares method. addSquares will first check the validity of the input (remember the sides of a triangle cannot be negative!), and if the input is valid then it will add the squares of the two sides and return the result. Otherwise, it will return -1. The method calculateHypotenuse will then do the rest of the calculation to get the length of the Hypotenuse. Otherwise it will return -1. h: Hypotenuse a: side 1 of right triangle b: side 2 of right triangle

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!