Write the method design which takes an integer size as


Write the method "design" which takes an integer size as parameter, and prints a "design square" with the following characteristics: • The length of each side of the square is the size passed as parameter (i.e., the number of characters on each side equals the size passed as parameter). • The main diagonal of the square (from upper-left to lower-right) should be composed of the ‘=' character. • The area to the left/below the main diagonal should be composed of the ‘-‘ character. • The area to the right/above the main diagonal should be composed of the ‘+' character. Examples: design(4); Should output: =+++ -=++ --=+ ---= design(3); Should output: =++ -=+ --= design(1); Should output: =

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write the method design which takes an integer size as
Reference No:- TGS0569432

Expected delivery within 24 Hours