Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Description and Given Info For this project you will write, run, test, correct, and submit a Java program that computes and displays information about

Problem Description and Given Info

For this project you will write, run, test, correct, and submit a Java program that computes and displays information about the various properties of a circle, such as radius, circumference, and area.

For the calculations that require Pi, you must use the value 3.1415.

Example Output

The output of your program must look exactly like this:

Properties of a Circle Radius : 10.25 Diameter : 20.5 Circumference : 64.40075 Area : 330.05384375 Area of Semicircle : 165.026921875 Properties "Rounded" Down Radius : 10 Diameter : 20 Circumference : 64 Area : 330 Area of Semicircle : 165 

Other Details

Note that, for this assignment, all of the numeric values, except the radius (10.25) will be computed and not "hard-coded".

For reference, here are some useful formulas and definitions for computing the properties of a circle:

diameter = radius * 2

circumference = Pi * diameter

area = Pi * radius2

a semicircle is half of a circle

Helpful Hints

Use spaces instead of tabs to line up your outputs

Your program output must match the expected output exactly, including spelling, capitalization, punctuation, spaces, and number of decimal places.

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

In the network shown determine Vo using PSPICE. 12 2mA 24V

Answered: 1 week ago

Question

2. What should an employer do when facing an OSHA inspection?

Answered: 1 week ago