Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that asks the user What is the circle radius?, then creates a new circle with that radius. If the area of the
Write a program that asks the user "What is the circle radius?", then creates a new circle with that radius. If the area of the circle is >= 10, then print the message "This circle is big." otherwise print the message "This circle is small." taking note that the message has a fullstop at the end of the sentence.
The following sample I/O shows how your program should behave for a big circle:
What is the circle radius? user inputs 3.7 This circle is big.
And for a small circle:
What is the circle radius? user inputs 1.2 This circle is small.
public class Exercise4 {
public static void main(String[] args) {
// INSERT YOUR CODE HERE
}
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started