Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Collapse Lesson 3 B - Lab 3 - Circle Stuff Data File Input Java Module - Lesson 3 B - Lab 3 - Circle Stuff

Collapse
Lesson 3B- Lab 3- Circle Stuff Data File Input
Java Module - Lesson 3B - Lab 3- Circle Stuff
Write a program to input from a data file the radius values of two circles into double variables radl and rad2. Calculate and assign to the variables areal, area2, circl and circ2 the area and circumference of cach circle. Use Math.PI in your calculations. Be sure to label and format each output value properly as shown below. Align the "=" signs in eolumn 24. Remember to label all seetions and elose the input object.
Data File Input ("lab3B3,in"):
10.03.5
Expected output:
+******,**************************
Radius =10.0
Area =314.2
Circumference =62.8
************************************
Radius =3.5
Area =38.5
Circumference =22.0
image text in transcribed

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions