This preview shows page 1. Sign up to view the full content.
Unformatted text preview: . A method named changePercent () that returns the percentage changed from previousClosingPrice to currentPrice . Assume all methods are public and all data fields are private. Draw the UML diagram for the class. Implement the class. Write a test program that creates a Stock object with the stock symbol SUNW, the name Sun Microsystems Inc, and the previous closing price of 100. Set a new current price to 90 and display the price-change percentage. Submission source code including the Stock class and the test program UML diagram report according to requirements in syllabus...
View Full Document
This note was uploaded on 04/29/2008 for the course CS 101L taught by Professor Vineyard during the Fall '07 term at Kettering.
- Fall '07