Question: . ---- POCO DIJOJECT 2. Create a Java project named FirstName-LastName-HW1 (e.g., Jane-Doe-HW1). a. Add a new package named hw1p1 to the project. b. Add
. ---- POCO DIJOJECT 2. Create a Java project named FirstName-LastName-HW1 (e.g., Jane-Doe-HW1). a. Add a new package named hw1p1 to the project. b. Add two classes (i.e., three source code files with the suffix .java) named Square and Circle to the package hw1p1, each of which includes a main method. Note that in Java a class name should begin with a capital letter. 3. Write code for the main method of the Square class to print the following output when run. a. You need to declare three local variables of type double; width, area, perimeter. b. Use System.out.print() and/or System.out.println() statements to print output. The width is 5.6 The area is 31.359999999999996 The perimeter is 22.4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
