Assigned: 10/23
Due: 10/30
NO CREDIT: 11/02
Now add a second file named Rectangle.java to this project, in which you define a Rectangle class as described in Programming Exercise 7.1, p. 255. Be sure to place your Rectangle class in the same homework7 package where NetBeans wrote its freebie Main class for you. Finally, use the main() method of the class Main to create two distinct Rectangle objects and test all their methods.
When you have written, compiled, and run your project, test it and correct any runtime and/or logic errors. When you are satisfied that it runs correctly, open a terminal (command) window and create a JAR file named Homework7.jar containing your NetBeans project source folder, as described in class. Note: lists of basic JAR file commands are available for both Linux and Windows users.
If you created your project on one of the Computer Science lab PCs in Robinson 004, simply leave your NetBeans Homework7 project folder and your Homework7.jar file in your csci/201/ directory. If you developed it elsewhere, copy your Homework7.jar file into your Computer Science csci/201 directory. Then open a terminal window and extract your project from the JAR file, using the commands
cd ~/csci/201
jar xf Homework7.jar
| 201.003 Home Page | Homework | Lab Projects | Tests | Demo Projects |