Question
Problem 3B (50 points + 5 bonus) Implement a program that inputs two integers, m and n, and draws m2 squares, each of the size
Problem 3B (50 points + 5 bonus) Implement a program that inputs two integers, m and n, and draws m2 squares, each of the size n n, arranged in an m m table. That is, it draws a table with m rows and m columns, each element of which is an n n square. For example, if the input integers are 4 and 6, it draws 16 squares, each of the size 6 6, arranged in a 4 4 table. The perimeter of each square is composed of the symbol * (asterisk), and the space inside is filled with the symbol o (lowercase letter o). Input and output: Your program should prompt the user to enter two integers, m and n, between 2 and 8, and draw m2 squares, each of the size n n.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started