Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c. If you entered 4.2 import java.util.Scanner; public class CircleCalculation public static void main (String ] args double radius://in inches double area; //in square inches
c. If you entered 4.2 import java.util.Scanner; public class CircleCalculation public static void main (String ] args double radius://in inches double area; //in square inches Scanner keyboard = new Scanner (System.in); System.out.println ("Enter the radius of a circle in inches:"); radius=keyboard.nextDouble 0; area = 3.14159 * radius * radius; System.out.println ("A circle of radius " + radius + " inches"); System.out.println("has an area of " + area + " square inches."); Q3) Create a java class called product with three data ele and at least three Cons c. If you entered 4.2 import java.util.Scanner; public class CircleCalculation public static void main (String ] args double radius://in inches double area; //in square inches Scanner keyboard = new Scanner (System.in); System.out.println ("Enter the radius of a circle in inches:"); radius=keyboard.nextDouble 0; area = 3.14159 * radius * radius; System.out.println ("A circle of radius " + radius + " inches"); System.out.println("has an area of " + area + " square inches."); Q3) Create a java class called product with three data ele and at least three Cons
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