You are to create a java program that will compute the circumference and area of a circle, and the result of a division operation between two variables, based explicitly on the requirements stated in this document. Using exactly 1 integer constant, 4 double variables and 1 Scanner variable make sure to fulfill the following points: 1. Declare 1 constant integer number called CONSTANT and set it to 3. 2. Declare 4 unassigned double variables: radius, circumference, area and ratio. 3. Declare 1 Scanner variable that will record keyboard inputs. 4. Prompt the user through the console for the value of radius (use same format and wording as in sample figure below). 5. Record in circumference the result of implementing: 2*CONSTANT * radius 6. Record in area the result of implementing: CONSTANT * radius * radius 7. Record in ratio the result of area divided by circumference. 8. Output in the console a blank line followed by the message Circle circumference is , Circle area is , and the ratio number is . where , and are the values stored in the corresponding variables. 9. The box below illustrates how your program should behave and appear. REMEMBER in the output: ◦ is a space and ¿ is a new line. Text in green is user input. Note 1: You are to expect a perfect user who will always enter the required values; that is, do not verify the validity of user input. Note 2: All calculations, inputs and outputs should be in double format and the use of libraries other than java.util.Scanner is prohibited. Your program must work for any integer values entered, not just the ones in the sample box above. Note 3: Final thought, remember that your solution is case-sensitive and space-sensitive, fulfill the above instructions carefully and precisely.
You are to create a java program that will compute the circumference and area of a circle, and the
result of a division operation between two variables, based explicitly on the requirements stated in this
document. Using exactly 1 integer constant, 4 double variables and 1 Scanner variable make sure to fulfill the
following points:
1. Declare 1 constant integer number called CONSTANT and set it to 3.
2. Declare 4 unassigned double variables: radius, circumference, area and ratio.
3. Declare 1 Scanner variable that will record keyboard inputs.
4. Prompt the user through the console for the value of radius (use same format and wording as in
sample figure below).
5. Record in circumference the result of implementing: 2*CONSTANT * radius
6. Record in area the result of implementing: CONSTANT * radius * radius
7. Record in ratio the result of area divided by circumference.
8. Output in the console a blank line followed by the message
Circle circumference is <circumference>,
Circle area is <area>, and the ratio number is <ratio>.
where <circumference>,<area> and <ratio> are the values stored in the corresponding
variables.
9. The box below illustrates how your program should behave and appear.
REMEMBER in the output: ◦ is a space and ¿ is a new line. Text in green is
user input.
Note 1: You are to expect a perfect user who will always enter the required values; that is, do not verify the
validity of user input.
Note 2: All calculations, inputs and outputs should be in double format and the use of libraries other than
java.util.Scanner is prohibited. Your program must work for any integer values entered, not just the ones in the
sample box above.
Note 3: Final thought, remember that your solution is case-sensitive and space-sensitive, fulfill the above
instructions carefully and precisely.
![Input•circle•radius: 5.0J
Cirle circumference is 30.0,
cirle area is 75.0, and the ratio number•is 2.5..](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5201990e-0b72-442d-b4bb-894905e8e54c%2F8f29281b-d25f-44d2-bdc7-44c3c8ec5c5d%2Fxhgvysa_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)