java Exercise 1: Write a program to do the following using the Math class: Ask a user to enter two integer numbers Finds the square root of each number Finds the minimum Finds the maximum.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

java

Exercise 1:
Write a program to do the following using the Math class:

Ask a user to enter two integer numbers
Finds the square root of each number
Finds the minimum
Finds the maximum.

 

Exercise 2:
Write a program to calculate area of circle. The main method should pass the radius of the circle to a static method named calculateArea(). The program should display the calculated area inside the main method.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT