Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions