Question: 6.1 Question 1 Create a package named QI. . Create a pas des named Circle us shown in the UMI. diagram, Circle Specifications for the

 6.1 Question 1 Create a package named QI. . Create a

6.1 Question 1 Create a package named QI. . Create a pas des named Circle us shown in the UMI. diagram, Circle Specifications for the Cleck Clan radius: double -Pl: double . In the care dau add the following field radius a double +Circiel) Pra final double initialined with the value Circlerad: double) 3.14159 setRadiusirad: double: vold -getRadius: double The das should be the following methode getArea: double Doule Constructor. Accepts no arguments *getDiameter: double getCircumferencedouble Print. This is the default constructor Constructor. Acceps the radius of the circle wanarument Radius. Amitator method for the radius field Radius. An accormethod for the radius field. getArea. Return the area of the circle, which is calculated as Prasad petameter. Returns the diameter of the circle, which is calculated diameter-radius 2 perCircumference. Return the circumference of the circle, which le calculated as circumference 21 radius Ol package . Now you need to write a driver program that demonstrates the Circle class. Righ-Click the se folder and choose new lava class, name this driver class as CirceInfo Your FirstName. If your fint name in Quasi, the name of this des should be Girdelafo Quasi. Page 7 of 12 ES1036 - Programming Fundamentals for Engineen La 04 Specifications for the Driver Class In the dar (the driver program) write the main mahod (the main driver method) that will foow this sequence Outputs aheader with your name, lab number and question number. Recycle printHeader method from laba3 k the wet for the circle's radius, creating a Circke esbject using that radim, and then print the circle'sara diameter and circumference . Ourpots anal meu Goodbye from Your FullNana! Edit the public state vold printFooter method from labd3cuch that it does not take any argument, The program output should be comething similar to the following Your Full Nane Lab), Question 1 Enter the radius of a circle: 5 The circle's area is 78.53975 The circle's diameter is 10.0 The circle's circunference is 31.4159 *** Goodbye from Your Fullname *** Run your program and make sure it peines the correct output. Do not forget to add proper comments to make your program df-documenting Hint: choose the right contractor to landare the object. Read question instruction pain if you are not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!