Enter the radius: The radius: 5.0 Enter the radius: The radius: 5.0 The circle circumference: 31.41592653589793 The circle circumference: 31.41592653589793 The circle area: 78.53981633974483 The circle area: 78.53981633974483 The sphere surface area: 314.1592653589793 The sphere surface area: 314.1592653589793 The sphere volume: 314.1592653589793 The sphere volume: 523.5987755982989

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Help me fix this code
43
77 Step 10: Display the radius and calculated values
// Sample output for radius 5
// The radius: 5.0
// The circle circumference: 31.41592653589793
// The circle area: 78.53981633974483
// The sphere surface area: 314.1592653589793
// The sphere volume: 523.5987755982989
System.out.println("The radius: "+radius);
System.out.println("The circle circumference: " +result);
System.out.println("The circle area: "+area);
System.out.println("The sphere surface area: "+ SurfaceArea);
System.out.println("The sphere volume: " + volume);
44
45
46
47
48
49
50
51
52
53
54
55
56
}
}
57
58
59
CodeCheck
Reset
Download
Testing CircleAndSphere.java
Test 1
Input:
Actual
Expected
Enter the radius: The radius: 5.0
The circle circumference: 31.41592653589793 The circle circumference: 31.41592653589793
The circle area: 78.53981633974483
The sphere surface area: 314.1592653589793 The sphere surface area: 314.1592653589793
The sphere volume: 314.1592653589793
Enter the radius: The radius: 5.0
The circle area: 78.53981633974483
The sphere volume: 523.5987755982989
fail
MacBook Air
80
888
esc
F1
F2
F3
F4
F5
F6
F7
!
@
#
2$
%
&
1
2
3
4
Q
W
E
R
T
tab
吕5
< cO
Transcribed Image Text:43 77 Step 10: Display the radius and calculated values // Sample output for radius 5 // The radius: 5.0 // The circle circumference: 31.41592653589793 // The circle area: 78.53981633974483 // The sphere surface area: 314.1592653589793 // The sphere volume: 523.5987755982989 System.out.println("The radius: "+radius); System.out.println("The circle circumference: " +result); System.out.println("The circle area: "+area); System.out.println("The sphere surface area: "+ SurfaceArea); System.out.println("The sphere volume: " + volume); 44 45 46 47 48 49 50 51 52 53 54 55 56 } } 57 58 59 CodeCheck Reset Download Testing CircleAndSphere.java Test 1 Input: Actual Expected Enter the radius: The radius: 5.0 The circle circumference: 31.41592653589793 The circle circumference: 31.41592653589793 The circle area: 78.53981633974483 The sphere surface area: 314.1592653589793 The sphere surface area: 314.1592653589793 The sphere volume: 314.1592653589793 Enter the radius: The radius: 5.0 The circle area: 78.53981633974483 The sphere volume: 523.5987755982989 fail MacBook Air 80 888 esc F1 F2 F3 F4 F5 F6 F7 ! @ # 2$ % & 1 2 3 4 Q W E R T tab 吕5 < cO
Expert Solution
Step 1

According to the information given:-

We have to fix the sphere volume value...

 

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Software products
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education