In this assignment you will write a (static) method that draws a "picture frame" like drawing in the console window. This assignment uses lots of loops and conditional statements. This assignment is due Wednesday, November 4.
Write a class file called ******************** ** ** * * * * * * * * * ************ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ************ * * * * * * * * * ** ** ********************The method call PictureFrame.printFrame(6, 24) should produce the following output. Notice that the larger of the two input integers should be the dimension of the outer "square".
************************ ** ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ****** * * * * * * * * * * * * * * * * * * ****** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** ** ************************ Be sure that your method works with the "boundary cases". For example, what should the following method calls produce? PictureFrame.printFrame(12, 12); PictureFrame.printFrame(12, 10); PictureFrame.printFrame(12, 2) PictureFrame.printFrame(12, 0)
Also write a
Turn in a zip file called |