Question: must be in java please do whole code with comments In this laboratory & assignment, you will draw a series of 16 dot patterns using



In this laboratory \& assignment, you will draw a series of 16 dot patterns using nested for loops. You may think of the dot patterns as geometric puzzles to be solved using loop structures. Compiling \& Running: Assume you are using java compiler and java virtual machine in command-line as follows: - Using java compiler and java virtual machine in command-line: Open the command line by typing cmd in "search programs and files" window; then, go into your working directory, compile, and run it. For example, > cd Desktop \cosC1437\ Lab Assignment \ Dots p javac Dots.jaya 7 java Dota These are Windows commands. The first command goes to your working directory (i.e., folder). The second command compiles the . Java files and creates . class files. The third command run/execute your Dots application. Otherwise, you are using TextPad as your IDE as follows: - Using TextPad: Read Dots. java onto TextPad; then, compile and run the code through "Tools External Tools Compile Java" or "Tools External Tools Run Java Applications", respectively. Getting started When you run the program you can enter numbers for the various patterns you have to draw. In Dots. Java, you will find that the shape of Pattem 1 is controlled by the following nested loop structure in the first block of the switch statement in drawPattern: switch (pattern) I case 1 : for(row-0,row
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
