Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions