Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PSEUDOCODE for JAVA Create a driver program which does the following: 1) Using a loop print out the area and circumference of circles with

IN PSEUDOCODE for JAVA

image text in transcribed

Create a driver program which does the following: 1) Using a loop print out the area and circumference of circles with radius 1, 2, 3 ... 9, 10. Here is what the first line should look like: Area of a circle with radius 1 is 3.14159265358979 circumference is 6.28318530717959 2) Using nested loops, print out the area and perimeter of rectangles with width 1, 2 and 3 and heights 1, 2, and 3. le, you'll print out the area and perimeter for a rectangle 1x1, 1x2, 1x3,2x1,2x2, 2x3, 3x1, 3x2, and 3x3. The first line should look like: Area of a rectangle 1 by 1 is 1 it's perimeter is 4 3) Create a triangle with sides 18, 30 and 24. Calculate its area, perimeter and height and print them as follows: Area of a triangle 18x30x24 is 216 it's perimeter is 72 and it's height is 24 4) Create a triangle of size 3,4,5 by calling the constructor with no parameters. Calculate its area, perimeter and height and print like the one above

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions