This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Types of all variables: -The number of rows of pyramid: int -The set of printed characters: String -Type of pyramid: int Classes: Driver Properties: none Methods : -main method: get the inputs and use pyramid class to draw pyramid Pyramid Properties: -type: int -characterSet: String -numberOfRow: int Methods: -Get/set methods for each properties -Draw(): draw the pyramid In the draw method, each row is draw iteratively. In each row, print the characters and blank space. The width of each row is 2*numberOfRow -1. Grade: Analysis and Design: 7 points for each Implementation: 16 points Compile without error: 3 points Comment: 2 Minus: No hard copy or soft copy: -5 No staple: -2...
View Full Document
- Spring '08
- Computer Programming