Design, implement, and demonstrate a class of diamonds that display themselves as text using a character provided by the client. For example, a diamond of height 6 constructed from asterisks will...


Design, implement, and demonstrate a class of diamonds that display themselves as text using a character provided by the client. For example, a diamond of height 6 constructed from asterisks will display as follows:


*


***


*****


*****


***


*


Besides specifying a character, the client of your class also will specify one of three possible heights for each diamond —6, 12, or 22 characters —by providing one of the strings "short", "average", or "tall".



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here