|Phase 4 DB:|
Write an application that uses the GeneralPath to draw a large arrow. Fill your arrow with a randomly generated color. Each time your application runs, the color of your arrow will be randomly generated. Draw multiple copies of the message “Which way?” 10 times. Each copy of the message should be in a random color, font, and location. Hint: Refer to your book for examples of using random with drawing graphics. Also check out the index for use of Random in earlier chapters.
In the text area of the discussion board discuss, write an essay that describes any challenges you had while completing this assignment. When you respond to your classmates, comment on any differences you see from their coded solutions and yours.
Upload your NetBeans zipped project to the discussion with essay in the discussion
Phase 4 IP:
Using Graphics and Graphics2D, create a neon sign for your business logo. Create your logo to include a shape and the name of your business. The logo should flash off and on continuously. You may get as creative as you wish with your logo.
Collapse Phase 3 Assignments Updated: 4/2/2009 11:08:35 AM
Topic: Building Graphical User Interfaces using NetBeans GUI Builder
Reading: Complete NetBeans GUI Builder tutorials found on http://www.netbeans.org
Chapter 11 GUI Components
Phase 3 DB:
Using the NetBeans GUI Builder implement a GUI that contains 2 buttons with labels “Time” and “Quit”. The GUI also has a text area for displaying the time. You are only creating the GUI. The buttons do not have to be functional.
then in word explain how you would provide functionality to this GUI if the application displays the current time when the “Time” button is clicked and exits the application when the “Quit” button is clicked. You should discuss how event handling works. Discuss any challenges you encountered developing the GUI using NetBeans GUI Builder.
Phase 3 IP:
Develop a car loan payment calculator. Design a GUI to enter price of car, down payment, interest rate, and length of loan in years. Your bank only offers 3 interest rates 5%, 10%, and 12% based on credit rating. Use grouped radio buttons to select between great credit (5% interest), average credit (10% interest), and poor credit ( 12% interest). Monthly payment should be calculated by the application.
Collapse Phase 2 Assignments Updated: 4/2/2009 11:07:59 AM
Topic: Inheritance and Polymorphism
Reading: Chapter 9 Inheritance and Chapter 10 Polymorphism
Phase 2 DB1:
Write an essay that describes the characteristics of an abstract class. Explain its role in inheritance hierarchies and its role with supporting polymorphism.
Phase 2 DB2:
Implement the Java code for the online eFax subscription inheritance hierarchy in Phase 1 IP. Write a test application that instantiates at least one of each subclass type and prints the contents. Use an overridden toString() method to provide a readable string representation of each subclass instantiated.
Use the NetBeans debugger to set at least 2 breakpoints while testing your code. Submit at least 2 screenshots demonstrating your use of the debugger.
Upload your NetBeans zipped project, including test files to the discussion area. Upload screenshots of using debugger.
Phase 2 IP2:
Using the principle of polymorphism provide implementation for the calculateFees() method for each Online Fax Subscription type.
Subscription is the superclass for the Online Fax Subscription hierarchy. Trial, Basic, and Premium are subclasses of Subscription. All subscriptions have first and last names, email address, and subscription start date. Trial has number of faxes sent attribute. Basic has monthly fee attribute. Premium has monthly fee attribute and number of faxes received. Premium packages are the only subscription that allows incoming efaxes.
Trial calculateFees() returns the number of Faxes sent multiplied by .50.
Basic subscription calculateFees() returns the monthly rate.
Premium calculateFees() returns the monthly rate + faxes received multiplied by .20.
Collapse Phase 1 Assignments Updated: 4/3/2009 9:32:24 AM
Note: You'll need to install the NetBeans UML plugin first via the Plugin Manager. Tools>Plugins.
Topic: UML in NetBeans and designing with Inheritance
Reading: Chapter 9 Inheritance
Phase 1 DB1:
Part 2: Get familiar with the NetBeans Debugger. Write a brief essay to discuss how you can use the features to set breakpoints, step through your code, and watching variables to help you developing working applications.
Essays for part 1 and 2 = 80%
Responses to classmates = 20%
Phase 1 IP:
Using the NetBeans UML plugin, draw a UML class diagram. Draw an inheritance hierarchy for Online eFax Subscription types. Use Subscription as the superclass. Trial, Basic, and Premium are subclasses of Subscription. All subscriptions have first and last names, email address, and subscription start date. Trial has number of faxes sent attribute. Basic has monthly fee attribute. Premium has monthly fee attribute and number of faxes received. Premium packages are the only subscription that allows incoming efaxes.