Complex Figure Classwork

posted by: Mr. Bergquist 22 September 2011 No Comment

Here’s a warm up for our next Project: Write a well-structured program that produces the following output. Focus on the design and development process. Make sure that you follow coding conventions as you write code out (don’t indent after you’ve written your code!).

The figure should be scalable using a class constant.

+---------+
|    *    |
|   /*\   |
|  //*\\  |
| ///*\\\ |
| \\\*/// |
|  \\*//  |
|   \*/   |
|    *    |
+---------+
| \\\*/// |
|  \\*//  |
|   \*/   |
|    *    |
|    *    |
|   /*\   |
|  //*\\  |
| ///*\\\ |
+---------+
1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 3.75 out of 5)
Loading ... Loading ...

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>