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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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..
Transcribed Image Text:Input•circle•radius: 5.0J Cirle circumference is 30.0, cirle area is 75.0, and the ratio number•is 2.5..
Expert Solution
steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY