diff --git a/.gitignore b/.gitignore
index 30721f9..97a929a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,8 @@
/Assignments/MP3_CalebFontenot/nbproject/private/
/Assignments/MP3_CalebFontenot/build/
+/Exams/PracticeExam2/nbproject/private/
+/Exams/PracticeExam2/build/
+/Exams/PracticeExamChapter6_CalebFontenot/nbproject/private/
+/Exams/PracticeExamChapter6_CalebFontenot/build/
+/Exams/PracticeExamChapter6_CalebFontenot/dist/
diff --git a/Exams/PracticeExam2/AgesOf3Daughters.html b/Exams/PracticeExam2/AgesOf3Daughters.html
new file mode 100644
index 0000000..125c61e
--- /dev/null
+++ b/Exams/PracticeExam2/AgesOf3Daughters.html
@@ -0,0 +1,61 @@
+
+
+
+AgesOf3Daughters.java
+
+
+
+
+/home/caleb/ASDV-Java/Exams/PracticeExam2/src/practiceexam2/AgesOf3Daughters.java |
+
+
+nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
+nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
+
+package practiceexam2;
+
+import java.util.Scanner;
+
+
+
+@author
+
+public class AgesOf3Daughters {
+ public static void main(String[] args)
+ {
+
+ Scanner input = new Scanner(System.in);
+ int product = 0, ;
+
+ while (product != -1) {
+ System.out.print("Enter the product and then the sum of the ages of the 3 daughters or -1 to quit: ");
+ product = input.nextInt();
+ sum = input.nextInt();
+
+ if (product % 3 == 0) {
+
+ }
+ else {
+ System.out.println("Invalid input");
+ }
+ }
+ }
+}
+
+
+
diff --git a/Exams/PracticeExam2/CharsToUnicodeWhile.html b/Exams/PracticeExam2/CharsToUnicodeWhile.html
new file mode 100644
index 0000000..40a0fd3
--- /dev/null
+++ b/Exams/PracticeExam2/CharsToUnicodeWhile.html
@@ -0,0 +1,66 @@
+
+
+
+CharsToUnicodeWhile.java
+
+
+
+
+/home/caleb/ASDV-Java/Exams/PracticeExam2/src/practiceexam2/CharsToUnicodeWhile.java |
+
+
+nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
+nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
+
+package practiceexam2;
+
+import java.util.Scanner;
+
+
+
+@author
+
+public class CharsToUnicodeWhile {
+
+ public static void main(String[] args)
+ {
+
+ String toUnicode = "";
+
+
+ Scanner input = new Scanner(System.in);
+
+ while (!toUnicode.toLowerCase().equals("q")) {
+
+ System.out.print("Enter a string of characters to convert them to UNICODE or Q/q to quit this program: ");
+ toUnicode = input.next();
+ if (toUnicode.toLowerCase().equals("q")) {
+ break;
+ }
+ System.out.print(toUnicode + " in UNICODE is: ");
+ for (int x = 0; x < toUnicode.length(); x++) {
+ System.out.print(((int) toUnicode.charAt(x)) + " ");
+ }
+ System.out.println();
+ }
+ System.out.println("Goodbye!");
+ }
+}
+
+
+
diff --git a/Exams/PracticeExam2/TransformToDOWhileLoops.html b/Exams/PracticeExam2/TransformToDOWhileLoops.html
new file mode 100644
index 0000000..cb48bbb
--- /dev/null
+++ b/Exams/PracticeExam2/TransformToDOWhileLoops.html
@@ -0,0 +1,60 @@
+
+
+
+TransformToDOWhileLoops.java
+
+
+
+
+/home/caleb/ASDV-Java/Exams/PracticeExam2/src/practiceexam2/TransformToDOWhileLoops.java |
+
+
+nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt
+nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java
+
+package practiceexam2;
+
+
+
+@author
+
+public class TransformToDOWhileLoops {
+
+ public static void main(String[] args)
+ {
+ int i = 1;
+ do {
+ int j = 1;
+
+ do {
+
+ j += 2;
+ if (i % 2 == 0) {
+ continue;
+ }
+ System.out.print(j + " ");
+ } while (j <= i + 1);
+ System.out.println();
+ ++i;
+ } while (i <= 9);
+ }
+
+}
+
+
+
diff --git a/Exams/PracticeExam2/build.xml b/Exams/PracticeExam2/build.xml
new file mode 100644
index 0000000..7690c4f
--- /dev/null
+++ b/Exams/PracticeExam2/build.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+ Builds, tests, and runs the project PracticeExam2.
+
+
+
diff --git a/Exams/PracticeExam2/manifest.mf b/Exams/PracticeExam2/manifest.mf
new file mode 100644
index 0000000..328e8e5
--- /dev/null
+++ b/Exams/PracticeExam2/manifest.mf
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+X-COMMENT: Main-Class will be added automatically by build
+
diff --git a/Exams/PracticeExam2/nbproject/build-impl.xml b/Exams/PracticeExam2/nbproject/build-impl.xml
new file mode 100644
index 0000000..ca1e048
--- /dev/null
+++ b/Exams/PracticeExam2/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/Exams/PracticeExam2/nbproject/genfiles.properties b/Exams/PracticeExam2/nbproject/genfiles.properties
new file mode 100644
index 0000000..af59bb9
--- /dev/null
+++ b/Exams/PracticeExam2/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=0e000e4e
+build.xml.script.CRC32=ba27af4b
+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=0e000e4e
+nbproject/build-impl.xml.script.CRC32=7494d4e6
+nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48
diff --git a/Exams/PracticeExam2/nbproject/project.properties b/Exams/PracticeExam2/nbproject/project.properties
new file mode 100644
index 0000000..7df6861
--- /dev/null
+++ b/Exams/PracticeExam2/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}/PracticeExam2.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+dist.jlink.dir=${dist.dir}/jlink
+dist.jlink.output=${dist.jlink.dir}/PracticeExam2
+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=PracticeExam2
+main.class=practiceexam2.PracticeExam2
+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/Exams/PracticeExam2/nbproject/project.xml b/Exams/PracticeExam2/nbproject/project.xml
new file mode 100644
index 0000000..9eb32c0
--- /dev/null
+++ b/Exams/PracticeExam2/nbproject/project.xml
@@ -0,0 +1,15 @@
+
+
+ org.netbeans.modules.java.j2seproject
+
+
+ PracticeExam2
+
+
+
+
+
+
+
+
+
diff --git a/Exams/PracticeExam2/src/practiceexam2/AgesOf3Daughters.java b/Exams/PracticeExam2/src/practiceexam2/AgesOf3Daughters.java
new file mode 100644
index 0000000..778e7a9
--- /dev/null
+++ b/Exams/PracticeExam2/src/practiceexam2/AgesOf3Daughters.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 practiceexam2;
+
+import java.util.Scanner;
+
+/**
+ *
+ * @author caleb
+ */
+public class AgesOf3Daughters {
+ public static void main(String[] args)
+ {
+ // Create scanner
+ Scanner input = new Scanner(System.in);
+ int product = 0, sum;
+
+ while (product != -1) {
+ System.out.print("Enter the product and then the sum of the ages of the 3 daughters or -1 to quit: ");
+ product = input.nextInt();
+ sum = input.nextInt();
+
+ if (product % 3 == 0) {
+
+ }
+ else {
+ System.out.println("Invalid input");
+ }
+ }
+ }
+}
diff --git a/Exams/PracticeExam2/src/practiceexam2/CharsToUnicodeWhile.java b/Exams/PracticeExam2/src/practiceexam2/CharsToUnicodeWhile.java
new file mode 100644
index 0000000..b825ac0
--- /dev/null
+++ b/Exams/PracticeExam2/src/practiceexam2/CharsToUnicodeWhile.java
@@ -0,0 +1,38 @@
+/*
+ * 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 practiceexam2;
+
+import java.util.Scanner;
+
+/**
+ *
+ * @author caleb
+ */
+public class CharsToUnicodeWhile {
+
+ public static void main(String[] args)
+ {
+ // Define variables
+ String toUnicode = "";
+
+ // Create scanner
+ Scanner input = new Scanner(System.in);
+
+ while (!toUnicode.toLowerCase().equals("q")) {
+ // Prompt for input
+ System.out.print("Enter a string of characters to convert them to UNICODE or Q/q to quit this program: ");
+ toUnicode = input.next();
+ if (toUnicode.toLowerCase().equals("q")) {
+ break;
+ }
+ System.out.print(toUnicode + " in UNICODE is: ");
+ for (int x = 0; x < toUnicode.length(); x++) {
+ System.out.print(((int) toUnicode.charAt(x)) + " ");
+ }
+ System.out.println();
+ }
+ System.out.println("Goodbye!");
+ }
+}
diff --git a/Exams/PracticeExam2/src/practiceexam2/PracticeExam2.java b/Exams/PracticeExam2/src/practiceexam2/PracticeExam2.java
new file mode 100644
index 0000000..ae1d567
--- /dev/null
+++ b/Exams/PracticeExam2/src/practiceexam2/PracticeExam2.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 practiceexam2;
+
+/**
+ *
+ * @author caleb
+ */
+public class PracticeExam2 {
+
+ /**
+ * @param args the command line arguments
+ */
+ public static void main(String[] args)
+ {
+ // TODO code application logic here
+ }
+
+}
diff --git a/Exams/PracticeExam2/src/practiceexam2/TransformToDOWhileLoops.java b/Exams/PracticeExam2/src/practiceexam2/TransformToDOWhileLoops.java
new file mode 100644
index 0000000..91b5881
--- /dev/null
+++ b/Exams/PracticeExam2/src/practiceexam2/TransformToDOWhileLoops.java
@@ -0,0 +1,32 @@
+/*
+ * 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 practiceexam2;
+
+/**
+ *
+ * @author caleb
+ */
+public class TransformToDOWhileLoops {
+
+ public static void main(String[] args)
+ {
+ int i = 1;
+ do {
+ int j = 1;
+
+ do {
+
+ j += 2;
+ if (i % 2 == 0) {
+ continue;
+ }
+ System.out.print(j + " ");
+ } while (j <= i + 1);
+ System.out.println();
+ ++i;
+ } while (i <= 9);
+ }
+
+}
diff --git a/Exams/PracticeExamChapter6_CalebFontenot/build.xml b/Exams/PracticeExamChapter6_CalebFontenot/build.xml
new file mode 100644
index 0000000..6be7a7d
--- /dev/null
+++ b/Exams/PracticeExamChapter6_CalebFontenot/build.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+
+
+
+
+
+ Builds, tests, and runs the project PracticeExamChapter6_CalebFontenot.
+
+
+
diff --git a/Exams/PracticeExamChapter6_CalebFontenot/manifest.mf b/Exams/PracticeExamChapter6_CalebFontenot/manifest.mf
new file mode 100644
index 0000000..328e8e5
--- /dev/null
+++ b/Exams/PracticeExamChapter6_CalebFontenot/manifest.mf
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+X-COMMENT: Main-Class will be added automatically by build
+
diff --git a/Exams/PracticeExamChapter6_CalebFontenot/nbproject/build-impl.xml b/Exams/PracticeExamChapter6_CalebFontenot/nbproject/build-impl.xml
new file mode 100644
index 0000000..e0d559d
--- /dev/null
+++ b/Exams/PracticeExamChapter6_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/Exams/PracticeExamChapter6_CalebFontenot/nbproject/genfiles.properties b/Exams/PracticeExamChapter6_CalebFontenot/nbproject/genfiles.properties
new file mode 100644
index 0000000..d662afe
--- /dev/null
+++ b/Exams/PracticeExamChapter6_CalebFontenot/nbproject/genfiles.properties
@@ -0,0 +1,8 @@
+build.xml.data.CRC32=580a15b3
+build.xml.script.CRC32=4eab36d8
+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=580a15b3
+nbproject/build-impl.xml.script.CRC32=5b534ab6
+nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48
diff --git a/Exams/PracticeExamChapter6_CalebFontenot/nbproject/project.properties b/Exams/PracticeExamChapter6_CalebFontenot/nbproject/project.properties
new file mode 100644
index 0000000..c80631d
--- /dev/null
+++ b/Exams/PracticeExamChapter6_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}/PracticeExamChapter6_CalebFontenot.jar
+dist.javadoc.dir=${dist.dir}/javadoc
+dist.jlink.dir=${dist.dir}/jlink
+dist.jlink.output=${dist.jlink.dir}/PracticeExamChapter6_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=PracticeExamChapter6_CalebFontenot
+main.class=practiceexamchapter6_calebfontenot.PracticeExamChapter6_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/Exams/PracticeExamChapter6_CalebFontenot/nbproject/project.xml b/Exams/PracticeExamChapter6_CalebFontenot/nbproject/project.xml
new file mode 100644
index 0000000..057f5f4
--- /dev/null
+++ b/Exams/PracticeExamChapter6_CalebFontenot/nbproject/project.xml
@@ -0,0 +1,15 @@
+
+
+ org.netbeans.modules.java.j2seproject
+
+
+ PracticeExamChapter6_CalebFontenot
+
+
+
+
+
+
+
+
+
diff --git a/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/PracticeExamChapter6_CalebFontenot.java b/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/PracticeExamChapter6_CalebFontenot.java
new file mode 100644
index 0000000..0c7e9b3
--- /dev/null
+++ b/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/PracticeExamChapter6_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 practiceexamchapter6_calebfontenot;
+
+/**
+ *
+ * @author caleb
+ */
+public class PracticeExamChapter6_CalebFontenot {
+
+ /**
+ * @param args the command line arguments
+ */
+ public static void main(String[] args)
+ {
+
+ }
+
+}
diff --git a/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/methods_test/Increment.java b/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/methods_test/Increment.java
new file mode 100644
index 0000000..c2df4fa
--- /dev/null
+++ b/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/methods_test/Increment.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 practiceexamchapter6_calebfontenot.methods_test;
+
+/**
+ *
+ * @author caleb
+ */
+public class Increment {
+ public static void main(String[] args) {
+ int x = 1;
+ System.out.println("Before the call, x is " + x);
+ increment(x);
+ System.out.println("After the call, x is " + x);
+ }
+
+ public static void increment(int n) {
+ n++;
+ System.out.println("n inside the method is " + n);
+ }
+}
+
diff --git a/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/methods_test/Methods.java b/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/methods_test/Methods.java
new file mode 100644
index 0000000..1a9c638
--- /dev/null
+++ b/Exams/PracticeExamChapter6_CalebFontenot/src/practiceexamchapter6_calebfontenot/methods_test/Methods.java
@@ -0,0 +1,44 @@
+/*
+ * 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 practiceexamchapter6_calebfontenot.methods_test;
+
+/**
+ *
+ * @author caleb
+ */
+public class Methods {
+
+ public static int maxOf3(int x, int y, int z)
+ {
+ if (x > y) {
+ if (x > z) {
+ return x;
+ } else {
+ return z;
+ }
+ } else if (y > z) {
+ return y;
+ } else {
+ return z;
+ }
+
+// return -1;
+ }
+
+ public static void printMessage(String message, int howManyTimes) {
+ for (int i = 0; i < howManyTimes; ++i) {
+ System.out.println(message);
+ }
+ }
+ public static void main(String[] args)
+ {
+ //printMessage("the good, the bad, and the ugly", 100000);
+ System.out.println(maxOf3(3, 2, 1));
+ System.out.println(maxOf3(1, 2, 3));
+ System.out.println(maxOf3(1, 1, 1));
+ System.out.println(Methods.maxOf3(1, 2, 3));
+
+ }
+}
diff --git a/Test Project/src/main/java/com/mycompany/mavenproject1/LoopDivision.java b/Test Project/src/main/java/com/mycompany/mavenproject1/LoopDivision.java
new file mode 100644
index 0000000..bf9bf13
--- /dev/null
+++ b/Test Project/src/main/java/com/mycompany/mavenproject1/LoopDivision.java
@@ -0,0 +1,23 @@
+/*
+ * 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 com.mycompany.mavenproject1;
+
+/**
+ *
+ * @author caleb
+ */
+public class LoopDivision {
+
+ public static void main(String[] args)
+ {
+double sum = 0;
+double d = 0;
+while (d != 10.0) {
+ d += 0.1;
+ sum += sum + d;
+ System.out.println(sum);
+}
+}
+ }
diff --git a/Test Project/target/classes/.netbeans_automatic_build b/Test Project/target/classes/.netbeans_automatic_build
deleted file mode 100644
index e69de29..0000000
diff --git a/Test Project/target/classes/com/mycompany/mavenproject1/LoopDivision.class b/Test Project/target/classes/com/mycompany/mavenproject1/LoopDivision.class
new file mode 100644
index 0000000..35eb9ab
Binary files /dev/null and b/Test Project/target/classes/com/mycompany/mavenproject1/LoopDivision.class differ
diff --git a/Test Project/target/test-classes/.netbeans_automatic_build b/Test Project/target/test-classes/.netbeans_automatic_build
deleted file mode 100644
index e69de29..0000000