diff --git a/.gitignore b/.gitignore
index 2fc2a82..0d710d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,8 @@
/Assignments/InClassOct6th/build/
/Assignments/lab11_CalebFontenot/nbproject/private/
/Assignments/lab11_CalebFontenot/build/
+/Assignments/lab11_ForLoop_CalebFontenot/nbproject/private/
+/Assignments/lab11_ForLoop_CalebFontenot/build/
+/Assignments/lab12_CalebFontenot/nbproject/private/
+/Assignments/lab12_CalebFontenot/build/
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/Menu2.html b/Assignments/lab11_ForLoop_CalebFontenot/Menu2.html
new file mode 100644
index 0000000..f9501da
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/Menu2.html
@@ -0,0 +1,71 @@
+
+
+
+Menu2.java
+
+
+
+
+/home/caleb/ASDV-Java/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/Menu2.java |
+
+
+nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
+nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
+
+package lab11_forloop_calebfontenot;
+
+import java.util.Scanner;
+
+
+
+@author
+
+public class Menu2 {
+
+ public static void main(String[] args)
+ {
+ Scanner scan = new Scanner(System.in);
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ String s = scan.next();
+
+ while (s.charAt(0) != 'Q' && s.charAt(0) != 'q')
+ {
+ if (s.charAt(0) == '1' || s.charAt(0) == '2') {
+ System.out.println("enter the number:");
+ double number = scan.nextDouble();
+ System.out.println((s.charAt(0) == '1')
+ ? "the square : " + (number * number)
+ : "the square root : " + Math.pow(number, 0.5));
+ } else if (s.charAt(0) != 'Q' && s.charAt(0) != 'q') {
+ System.out.println("invalid character");
+ }
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ s = scan.next();
+ }
+ }
+}
+
+
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/MenuDoWhile.html b/Assignments/lab11_ForLoop_CalebFontenot/MenuDoWhile.html
new file mode 100644
index 0000000..7efb9c4
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/MenuDoWhile.html
@@ -0,0 +1,71 @@
+
+
+
+MenuDoWhile.java
+
+
+
+
+/home/caleb/ASDV-Java/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuDoWhile.java |
+
+
+nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
+nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
+
+package lab11_forloop_calebfontenot;
+
+import java.util.Scanner;
+
+
+
+@author
+
+public class MenuDoWhile {
+
+ public static void main(String[] args)
+ {
+ Scanner scan = new Scanner(System.in);
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ String s = scan.next();
+
+ do
+ {
+ if (s.charAt(0) == '1' || s.charAt(0) == '2') {
+ System.out.println("enter the number:");
+ double number = scan.nextDouble();
+ System.out.println((s.charAt(0) == '1')
+ ? "the square : " + (number * number)
+ : "the square root : " + Math.pow(number, 0.5));
+ } else if (s.charAt(0) != 'Q' && s.charAt(0) != 'q') {
+ System.out.println("invalid character");
+ }
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ s = scan.next();
+ } while (s.charAt(0) != 'Q' && s.charAt(0) != 'q');
+ }
+}
+
+
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/MenuFor.html b/Assignments/lab11_ForLoop_CalebFontenot/MenuFor.html
new file mode 100644
index 0000000..aa9e197
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/MenuFor.html
@@ -0,0 +1,70 @@
+
+
+
+MenuFor.java
+
+
+
+
+/home/caleb/ASDV-Java/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuFor.java |
+
+
+nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
+nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
+
+package lab11_forloop_calebfontenot;
+
+import java.util.Scanner;
+
+
+
+@author
+
+public class MenuFor {
+
+ public static void main(String[] args)
+ {
+ Scanner scan = new Scanner(System.in);
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ for (String s = scan.next();
+ s.charAt(0) != 'Q' && s.charAt(0) != 'q';
+ s = scan.next())
+ {
+ if (s.charAt(0) == '1' || s.charAt(0) == '2') {
+ System.out.println("enter the number:");
+ double number = scan.nextDouble();
+ System.out.println((s.charAt(0) == '1')
+ ? "the square : " + (number * number)
+ : "the square root : " + Math.pow(number, 0.5));
+ } else if (s.charAt(0) != 'Q' && s.charAt(0) != 'q') {
+ System.out.println("invalid character");
+ }
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ }
+ }
+}
+
+
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/build.xml b/Assignments/lab11_ForLoop_CalebFontenot/build.xml
new file mode 100644
index 0000000..338ec55
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/build.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+ Builds, tests, and runs the project lab11_ForLoop_CalebFontenot.
+
+
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/manifest.mf b/Assignments/lab11_ForLoop_CalebFontenot/manifest.mf
new file mode 100644
index 0000000..328e8e5
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/manifest.mf
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+X-COMMENT: Main-Class will be added automatically by build
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/nbproject/build-impl.xml b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/build-impl.xml
new file mode 100644
index 0000000..9e27333
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/build-impl.xml
@@ -0,0 +1,1771 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set src.dir
+ Must set test.src.dir
+ Must set build.dir
+ Must set dist.dir
+ Must set build.classes.dir
+ Must set dist.javadoc.dir
+ Must set build.test.classes.dir
+ Must set build.test.results.dir
+ Must set build.classes.excludes
+ Must set dist.jar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No tests executed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set JVM to use for profiling in profiler.info.jvm
+ Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ To run this application from the command line without Ant, try:
+
+ java -jar "${dist.jar.resolved}"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+ Must set fix.includes
+
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set profile.class
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+
+ Must select some files in the IDE or set test.includes
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+ Must select one file in the IDE or set applet.url
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set test.includes
+
+
+
+ Some tests failed; see details above.
+
+
+
+ Must select some files in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+ Must select one file in the IDE or set test.class
+
+
+
+ Must select one file in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set applet.url
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set applet.url
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/nbproject/genfiles.properties b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/genfiles.properties
new file mode 100644
index 0000000..9e3df63
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=e3bf3192
+build.xml.script.CRC32=e7445d80
+build.xml.stylesheet.CRC32=f85dc8f2@1.104.0.48
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=e3bf3192
+nbproject/build-impl.xml.script.CRC32=df56be46
+nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/nbproject/project.properties b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/project.properties
new file mode 100644
index 0000000..72da8e3
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/project.properties
@@ -0,0 +1,95 @@
+annotation.processing.enabled=true
+annotation.processing.enabled.in.editor=false
+annotation.processing.processor.options=
+annotation.processing.processors.list=
+annotation.processing.run.all.processors=true
+annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
+build.classes.dir=${build.dir}/classes
+build.classes.excludes=**/*.java,**/*.form
+# This directory is removed when the project is cleaned:
+build.dir=build
+build.generated.dir=${build.dir}/generated
+build.generated.sources.dir=${build.dir}/generated-sources
+# Only compile against the classpath explicitly listed here:
+build.sysclasspath=ignore
+build.test.classes.dir=${build.dir}/test/classes
+build.test.results.dir=${build.dir}/test/results
+# Uncomment to specify the preferred debugger connection transport:
+#debug.transport=dt_socket
+debug.classpath=\
+ ${run.classpath}
+debug.modulepath=\
+ ${run.modulepath}
+debug.test.classpath=\
+ ${run.test.classpath}
+debug.test.modulepath=\
+ ${run.test.modulepath}
+# Files in build.classes.dir which should be excluded from distribution jar
+dist.archive.excludes=
+# This directory is removed when the project is cleaned:
+dist.dir=dist
+dist.jar=${dist.dir}/lab11_ForLoop_CalebFontenot.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+dist.jlink.dir=${dist.dir}/jlink
+dist.jlink.output=${dist.jlink.dir}/lab11_ForLoop_CalebFontenot
+excludes=
+includes=**
+jar.compress=false
+javac.classpath=
+# Space-separated list of extra javac options
+javac.compilerargs=
+javac.deprecation=false
+javac.external.vm=true
+javac.modulepath=
+javac.processormodulepath=
+javac.processorpath=\
+ ${javac.classpath}
+javac.source=1.8
+javac.target=1.8
+javac.test.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+javac.test.modulepath=\
+ ${javac.modulepath}
+javac.test.processorpath=\
+ ${javac.test.classpath}
+javadoc.additionalparam=
+javadoc.author=false
+javadoc.encoding=${source.encoding}
+javadoc.html5=false
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.private=false
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+# The jlink additional root modules to resolve
+jlink.additionalmodules=
+# The jlink additional command line parameters
+jlink.additionalparam=
+jlink.launcher=true
+jlink.launcher.name=lab11_ForLoop_CalebFontenot
+main.class=lab11_forloop_calebfontenot.Lab11_ForLoop_CalebFontenot
+manifest.file=manifest.mf
+meta.inf.dir=${src.dir}/META-INF
+mkdist.disabled=false
+platform.active=default_platform
+run.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+# Space-separated list of JVM arguments used when running the project.
+# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
+# To set system properties for unit tests define test-sys-prop.name=value:
+run.jvmargs=
+run.modulepath=\
+ ${javac.modulepath}
+run.test.classpath=\
+ ${javac.test.classpath}:\
+ ${build.test.classes.dir}
+run.test.modulepath=\
+ ${javac.test.modulepath}
+source.encoding=UTF-8
+src.dir=src
+test.src.dir=test
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/nbproject/project.xml b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/project.xml
new file mode 100644
index 0000000..00de639
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/nbproject/project.xml
@@ -0,0 +1,15 @@
+
+
+ org.netbeans.modules.java.j2seproject
+
+
+ lab11_ForLoop_CalebFontenot
+
+
+
+
+
+
+
+
+
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/Lab11_ForLoop_CalebFontenot.java b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/Lab11_ForLoop_CalebFontenot.java
new file mode 100644
index 0000000..6ac6d71
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/Lab11_ForLoop_CalebFontenot.java
@@ -0,0 +1,21 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
+ */
+package lab11_forloop_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class Lab11_ForLoop_CalebFontenot {
+
+ /**
+ * @param args the command line arguments
+ */
+ public static void main(String[] args)
+ {
+ // TODO code application logic here
+ }
+
+}
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/Menu2.java b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/Menu2.java
new file mode 100644
index 0000000..1beb841
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/Menu2.java
@@ -0,0 +1,42 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab11_forloop_calebfontenot;
+
+import java.util.Scanner;
+
+/**
+ *
+ * @author caleb
+ */
+public class Menu2 {
+
+ public static void main(String[] args)
+ {
+ Scanner scan = new Scanner(System.in);
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ String s = scan.next();//2. INITIALIZATION OF THE CONDITION
+
+ while (s.charAt(0) != 'Q' && s.charAt(0) != 'q')//1. THE CONDITION
+ {
+ if (s.charAt(0) == '1' || s.charAt(0) == '2') {
+ System.out.println("enter the number:");
+ double number = scan.nextDouble();
+ System.out.println((s.charAt(0) == '1')
+ ? "the square : " + (number * number)
+ : "the square root : " + Math.pow(number, 0.5));
+ } else if (s.charAt(0) != 'Q' && s.charAt(0) != 'q') {
+ System.out.println("invalid character");
+ }
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ s = scan.next();//3.UPDATE OF THE CONDITION
+ }
+ }
+}
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuDoWhile.java b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuDoWhile.java
new file mode 100644
index 0000000..6c3e7a6
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuDoWhile.java
@@ -0,0 +1,42 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab11_forloop_calebfontenot;
+
+import java.util.Scanner;
+
+/**
+ *
+ * @author caleb
+ */
+public class MenuDoWhile {
+
+ public static void main(String[] args)
+ {
+ Scanner scan = new Scanner(System.in);
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ String s = scan.next();//2. INITIALIZATION OF THE CONDITION
+
+ do
+ {
+ if (s.charAt(0) == '1' || s.charAt(0) == '2') {
+ System.out.println("enter the number:");
+ double number = scan.nextDouble();
+ System.out.println((s.charAt(0) == '1')
+ ? "the square : " + (number * number)
+ : "the square root : " + Math.pow(number, 0.5));
+ } else if (s.charAt(0) != 'Q' && s.charAt(0) != 'q') {
+ System.out.println("invalid character");
+ }
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ s = scan.next();//3.UPDATE OF THE CONDITION
+ } while (s.charAt(0) != 'Q' && s.charAt(0) != 'q'); //1. THE CONDITION
+ }
+}
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuFor.java b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuFor.java
new file mode 100644
index 0000000..ba7c026
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/MenuFor.java
@@ -0,0 +1,41 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab11_forloop_calebfontenot;
+
+import java.util.Scanner;
+
+/**
+ *
+ * @author caleb
+ */
+public class MenuFor {
+
+ public static void main(String[] args)
+ {
+ Scanner scan = new Scanner(System.in);
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ for (String s = scan.next();
+ s.charAt(0) != 'Q' && s.charAt(0) != 'q';
+ s = scan.next())
+ {
+ if (s.charAt(0) == '1' || s.charAt(0) == '2') {
+ System.out.println("enter the number:");
+ double number = scan.nextDouble();
+ System.out.println((s.charAt(0) == '1')
+ ? "the square : " + (number * number)
+ : "the square root : " + Math.pow(number, 0.5));
+ } else if (s.charAt(0) != 'Q' && s.charAt(0) != 'q') {
+ System.out.println("invalid character");
+ }
+
+ System.out.println("\nQ/q: to quit");
+ System.out.println("1: to calculate the square of a number");
+ System.out.println("2: to calculate the square root of a number");
+ }
+ }
+}
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestBreak.java b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestBreak.java
new file mode 100644
index 0000000..25a502f
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestBreak.java
@@ -0,0 +1,33 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab11_forloop_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class TestBreak {
+
+ public static void main(String[] args)
+ {
+ int count = 0;
+ int sum = 0;
+ while (true) {
+ while (count <= 100000000) {
+ count ++;
+ sum += count;
+ if (sum >= 100) {
+ System.out.println(count + ", " + sum);
+ break;
+ }
+ count++;
+ }
+ if (sum >= 200) {
+ break;
+ }
+ System.out.println(count + ", " + sum);
+ }
+ }
+}
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestContinue.java b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestContinue.java
new file mode 100644
index 0000000..9492fa5
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestContinue.java
@@ -0,0 +1,22 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab11_forloop_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class TestContinue {
+ public static void main(String[] args)
+ {
+ for (int i=0; i < 10; ++i) {
+ System.out.println(i + " ");
+ if (i % 2 == 0)
+ continue;
+ System.out.println(i * 2 + " ");
+ }
+ System.out.println("");
+ }
+}
diff --git a/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestContinue1.java b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestContinue1.java
new file mode 100644
index 0000000..00eda94
--- /dev/null
+++ b/Assignments/lab11_ForLoop_CalebFontenot/src/lab11_forloop_calebfontenot/TestContinue1.java
@@ -0,0 +1,26 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab11_forloop_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class TestContinue1 {
+ public static void main(String[] args)
+ {
+ int i=0;
+ while (i < 10) {
+ System.out.println(i + " ");
+ if (i % 2 == 0) {
+ ++i;
+ continue;
+ }
+ System.out.println(i * 2 + " ");
+ }
+ System.out.println("");
+ ++i;
+ }
+}
diff --git a/Assignments/lab12_CalebFontenot/build.xml b/Assignments/lab12_CalebFontenot/build.xml
new file mode 100644
index 0000000..6b21365
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/build.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+ Builds, tests, and runs the project lab12_CalebFontenot.
+
+
+
diff --git a/Assignments/lab12_CalebFontenot/lab12-2-1.pdf b/Assignments/lab12_CalebFontenot/lab12-2-1.pdf
new file mode 100644
index 0000000..8ff1a92
Binary files /dev/null and b/Assignments/lab12_CalebFontenot/lab12-2-1.pdf differ
diff --git a/Assignments/lab12_CalebFontenot/manifest.mf b/Assignments/lab12_CalebFontenot/manifest.mf
new file mode 100644
index 0000000..328e8e5
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/manifest.mf
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+X-COMMENT: Main-Class will be added automatically by build
+
diff --git a/Assignments/lab12_CalebFontenot/nbproject/build-impl.xml b/Assignments/lab12_CalebFontenot/nbproject/build-impl.xml
new file mode 100644
index 0000000..e31905f
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/nbproject/build-impl.xml
@@ -0,0 +1,1771 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set src.dir
+ Must set test.src.dir
+ Must set build.dir
+ Must set dist.dir
+ Must set build.classes.dir
+ Must set dist.javadoc.dir
+ Must set build.test.classes.dir
+ Must set build.test.results.dir
+ Must set build.classes.excludes
+ Must set dist.jar
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No tests executed.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must set JVM to use for profiling in profiler.info.jvm
+ Must set profiler agent JVM arguments in profiler.info.jvmargs.agent
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ To run this application from the command line without Ant, try:
+
+ java -jar "${dist.jar.resolved}"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+ Must select one file in the IDE or set debug.class
+
+
+
+
+ Must set fix.includes
+
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set profile.class
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+
+
+
+
+ This target only works when run from inside the NetBeans IDE.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+
+ Must select some files in the IDE or set test.includes
+
+
+
+
+ Must select one file in the IDE or set run.class
+
+
+
+
+ Must select one file in the IDE or set applet.url
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set javac.includes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+
+
+
+
+ Must select some files in the IDE or set test.includes
+
+
+
+ Some tests failed; see details above.
+
+
+
+ Must select some files in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+ Some tests failed; see details above.
+
+
+
+
+ Must select one file in the IDE or set test.class
+
+
+
+ Must select one file in the IDE or set test.class
+ Must select some method in the IDE or set test.method
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set applet.url
+
+
+
+
+
+
+
+
+ Must select one file in the IDE or set applet.url
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Assignments/lab12_CalebFontenot/nbproject/genfiles.properties b/Assignments/lab12_CalebFontenot/nbproject/genfiles.properties
new file mode 100644
index 0000000..5950cab
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=17a8d3a4
+build.xml.script.CRC32=a9e1d374
+build.xml.stylesheet.CRC32=f85dc8f2@1.104.0.48
+# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
+# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
+nbproject/build-impl.xml.data.CRC32=17a8d3a4
+nbproject/build-impl.xml.script.CRC32=c0af7950
+nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48
diff --git a/Assignments/lab12_CalebFontenot/nbproject/project.properties b/Assignments/lab12_CalebFontenot/nbproject/project.properties
new file mode 100644
index 0000000..415b9af
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/nbproject/project.properties
@@ -0,0 +1,95 @@
+annotation.processing.enabled=true
+annotation.processing.enabled.in.editor=false
+annotation.processing.processor.options=
+annotation.processing.processors.list=
+annotation.processing.run.all.processors=true
+annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
+build.classes.dir=${build.dir}/classes
+build.classes.excludes=**/*.java,**/*.form
+# This directory is removed when the project is cleaned:
+build.dir=build
+build.generated.dir=${build.dir}/generated
+build.generated.sources.dir=${build.dir}/generated-sources
+# Only compile against the classpath explicitly listed here:
+build.sysclasspath=ignore
+build.test.classes.dir=${build.dir}/test/classes
+build.test.results.dir=${build.dir}/test/results
+# Uncomment to specify the preferred debugger connection transport:
+#debug.transport=dt_socket
+debug.classpath=\
+ ${run.classpath}
+debug.modulepath=\
+ ${run.modulepath}
+debug.test.classpath=\
+ ${run.test.classpath}
+debug.test.modulepath=\
+ ${run.test.modulepath}
+# Files in build.classes.dir which should be excluded from distribution jar
+dist.archive.excludes=
+# This directory is removed when the project is cleaned:
+dist.dir=dist
+dist.jar=${dist.dir}/lab12_CalebFontenot.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+dist.jlink.dir=${dist.dir}/jlink
+dist.jlink.output=${dist.jlink.dir}/lab12_CalebFontenot
+excludes=
+includes=**
+jar.compress=false
+javac.classpath=
+# Space-separated list of extra javac options
+javac.compilerargs=
+javac.deprecation=false
+javac.external.vm=true
+javac.modulepath=
+javac.processormodulepath=
+javac.processorpath=\
+ ${javac.classpath}
+javac.source=1.8
+javac.target=1.8
+javac.test.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+javac.test.modulepath=\
+ ${javac.modulepath}
+javac.test.processorpath=\
+ ${javac.test.classpath}
+javadoc.additionalparam=
+javadoc.author=false
+javadoc.encoding=${source.encoding}
+javadoc.html5=false
+javadoc.noindex=false
+javadoc.nonavbar=false
+javadoc.notree=false
+javadoc.private=false
+javadoc.splitindex=true
+javadoc.use=true
+javadoc.version=false
+javadoc.windowtitle=
+# The jlink additional root modules to resolve
+jlink.additionalmodules=
+# The jlink additional command line parameters
+jlink.additionalparam=
+jlink.launcher=true
+jlink.launcher.name=lab12_CalebFontenot
+main.class=lab12_calebfontenot.Lab12_CalebFontenot
+manifest.file=manifest.mf
+meta.inf.dir=${src.dir}/META-INF
+mkdist.disabled=false
+platform.active=default_platform
+run.classpath=\
+ ${javac.classpath}:\
+ ${build.classes.dir}
+# Space-separated list of JVM arguments used when running the project.
+# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
+# To set system properties for unit tests define test-sys-prop.name=value:
+run.jvmargs=
+run.modulepath=\
+ ${javac.modulepath}
+run.test.classpath=\
+ ${javac.test.classpath}:\
+ ${build.test.classes.dir}
+run.test.modulepath=\
+ ${javac.test.modulepath}
+source.encoding=UTF-8
+src.dir=src
+test.src.dir=test
diff --git a/Assignments/lab12_CalebFontenot/nbproject/project.xml b/Assignments/lab12_CalebFontenot/nbproject/project.xml
new file mode 100644
index 0000000..887df95
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/nbproject/project.xml
@@ -0,0 +1,15 @@
+
+
+ org.netbeans.modules.java.j2seproject
+
+
+ lab12_CalebFontenot
+
+
+
+
+
+
+
+
+
diff --git a/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/ForNested1.java b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/ForNested1.java
new file mode 100644
index 0000000..4e6c758
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/ForNested1.java
@@ -0,0 +1,24 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab12_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class ForNested1 {
+ public static void main(String[] args)
+ {
+ for (int i = 0; i < 3; ++i)
+ {
+ System.out.print("(i, j) = ");
+ for (int j = 0; j < 4; ++j)
+ {
+ System.out.print("(" + i + ", " + j + ") ");
+ }
+ System.out.println("");
+ }
+ }
+}
diff --git a/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/Lab12_CalebFontenot.java b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/Lab12_CalebFontenot.java
new file mode 100644
index 0000000..2fadb09
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/Lab12_CalebFontenot.java
@@ -0,0 +1,21 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
+ */
+package lab12_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class Lab12_CalebFontenot {
+
+ /**
+ * @param args the command line arguments
+ */
+ public static void main(String[] args)
+ {
+ // TODO code application logic here
+ }
+
+}
diff --git a/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedForPatternA.java b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedForPatternA.java
new file mode 100644
index 0000000..3ecdfdd
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedForPatternA.java
@@ -0,0 +1,30 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab12_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class NestedForPatternA {
+ public static void main(String[] args)
+ {
+ /*
+ String line = "";
+ //First for loop
+ for (int i = 1; i <= 6; ++i)
+ {
+ line = line + " " + i;
+ System.out.println(line);
+ }
+ */
+ for (int i = 1; i < 7; i++) {
+ for (int j = 1; j < i + 1; j++) {
+ System.out.print(j + " ");
+ }
+ System.out.println();
+ }
+ }
+}
diff --git a/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedForPatternB.java b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedForPatternB.java
new file mode 100644
index 0000000..1b34552
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedForPatternB.java
@@ -0,0 +1,30 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab12_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class NestedForPatternB {
+ public static void main(String[] args)
+ {
+ /*
+ String line = "";
+ //First for loop
+ for (int i = 1; i <= 6; ++i)
+ {
+ line = line + " " + i;
+ System.out.println(line);
+ }
+ */
+ for (int i = 6; i > 0; i--) {
+ for (int j = 1; j < i + 1; j++) {
+ System.out.print(j + " ");
+ }
+ System.out.println();
+ }
+ }
+}
diff --git a/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedWhilePatternC.java b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedWhilePatternC.java
new file mode 100644
index 0000000..9b420bf
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/NestedWhilePatternC.java
@@ -0,0 +1,28 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab12_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class NestedWhilePatternC {
+
+ public static void main(String[] args)
+ {
+ int int1 = 1, int2, int3;
+ while (int1 <= 6) {
+ System.out.print(int1 + ": ");
+ System.out.print("6 5 4 3 2 1");
+ int2 = 1;
+ while (int2 != int1) {
+ System.out.print("\b\b");
+ int2++;
+ }
+ System.out.println();
+ int1++;
+ }
+ }
+}
diff --git a/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/WhileNested2.java b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/WhileNested2.java
new file mode 100644
index 0000000..85f0f9a
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/WhileNested2.java
@@ -0,0 +1,24 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab12_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class WhileNested2 {
+ public static void main(String[] args)
+ {
+ int i = 0;
+ while (i < 3)
+ {
+ System.out.print("(i, j) = ");
+ for (int j = 0; j < 4; ++j)
+ System.out.print("(" + i + ", " + j + ") ");
+ System.out.println("");
+ ++i;
+ }
+ }
+}
diff --git a/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/WhileNested3.java b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/WhileNested3.java
new file mode 100644
index 0000000..65b12c0
--- /dev/null
+++ b/Assignments/lab12_CalebFontenot/src/lab12_calebfontenot/WhileNested3.java
@@ -0,0 +1,22 @@
+/*
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
+ * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
+ */
+package lab12_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class WhileNested3 {
+ public static void main(String[] args)
+ {
+ for (int i = 0; i < 3; ++i)
+ {
+ System.out.print("(i, j) = ");
+ for (int j = 0; j < 4; ++j)
+ System.out.print("(" + i + ", " + j + ") ");
+ System.out.println("");
+ }
+ }
+}
diff --git a/ZIPs/lab11_ForLoop_CalebFontenot.zip b/ZIPs/lab11_ForLoop_CalebFontenot.zip
new file mode 100644
index 0000000..82fc71f
Binary files /dev/null and b/ZIPs/lab11_ForLoop_CalebFontenot.zip differ