Click here to Skip to main content
15,886,831 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Write a method squareOfSymbols that displays a solid rectangle of symbols whose height and width are specified in integer parameter height and width respectively. And this method also receive a third parameter of type char called fillCharacter. For example, if height is 5, weight is 4, and the fillCharacter is *, the method should display ****
****
****
****
****
Incorporate this method into an application that reads an integer value for side from the user and outputs the asterisks with the squareOfAsterisks method.
Posted
Updated 23-Sep-14 17:31pm
v2
Comments
Sergey Alexandrovich Kryukov 23-Sep-14 23:31pm    
Not a question, just a pure abuse. If you need this square, write some code. If you have questions, you are welcome to ask them.
Homework?
—SA

1 solution

So, happy coding: it is your homework and you should do it (it's just matter of a couple of loops). Ask here only specific questions when you get stuck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900