diff --git a/.gitignore b/.gitignore index 6a86a70..6088e4b 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,5 @@ /Exam1Practice_CalebFontenot/target/ /Exams/ProgrammingExam1_CalebFontenot/nbproject/private/ /Exams/ProgrammingExam1_CalebFontenot/build/ +/Assignments/Lab10_CalebFontenot/nbproject/private/ +/Assignments/Lab10_CalebFontenot/build/ diff --git a/Assignments/Lab10_CalebFontenot/build.xml b/Assignments/Lab10_CalebFontenot/build.xml new file mode 100644 index 0000000..fd5f01b --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/build.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + Builds, tests, and runs the project Lab10_CalebFontenot. + + + diff --git a/Assignments/Lab10_CalebFontenot/labIRandPC.pdf b/Assignments/Lab10_CalebFontenot/labIRandPC.pdf new file mode 100644 index 0000000..3132d7c Binary files /dev/null and b/Assignments/Lab10_CalebFontenot/labIRandPC.pdf differ diff --git a/Assignments/Lab10_CalebFontenot/manifest.mf b/Assignments/Lab10_CalebFontenot/manifest.mf new file mode 100644 index 0000000..328e8e5 --- /dev/null +++ b/Assignments/Lab10_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/Lab10_CalebFontenot/nbproject/build-impl.xml b/Assignments/Lab10_CalebFontenot/nbproject/build-impl.xml new file mode 100644 index 0000000..63b548c --- /dev/null +++ b/Assignments/Lab10_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/Lab10_CalebFontenot/nbproject/genfiles.properties b/Assignments/Lab10_CalebFontenot/nbproject/genfiles.properties new file mode 100644 index 0000000..91e4ed0 --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/nbproject/genfiles.properties @@ -0,0 +1,8 @@ +build.xml.data.CRC32=c95a3eda +build.xml.script.CRC32=36282ef2 +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=c95a3eda +nbproject/build-impl.xml.script.CRC32=cbddb481 +nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.104.0.48 diff --git a/Assignments/Lab10_CalebFontenot/nbproject/project.properties b/Assignments/Lab10_CalebFontenot/nbproject/project.properties new file mode 100644 index 0000000..ac2f538 --- /dev/null +++ b/Assignments/Lab10_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}/Lab10_CalebFontenot.jar +dist.javadoc.dir=${dist.dir}/javadoc +dist.jlink.dir=${dist.dir}/jlink +dist.jlink.output=${dist.jlink.dir}/Lab10_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=Lab10_CalebFontenot +main.class=lab10_calebfontenot.Lab10_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/Lab10_CalebFontenot/nbproject/project.xml b/Assignments/Lab10_CalebFontenot/nbproject/project.xml new file mode 100644 index 0000000..121ad33 --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/nbproject/project.xml @@ -0,0 +1,15 @@ + + + org.netbeans.modules.java.j2seproject + + + Lab10_CalebFontenot + + + + + + + + + diff --git a/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/IndependanceUSA.java b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/IndependanceUSA.java new file mode 100644 index 0000000..6ae31e3 --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/IndependanceUSA.java @@ -0,0 +1,16 @@ +/* + * 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 lab10_calebfontenot; + +/** + * + * @author caleb + */ +public class IndependanceUSA { + public static void main(String[] args) + { + + } +} diff --git a/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteCapsOrSmallLetters.java b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteCapsOrSmallLetters.java new file mode 100644 index 0000000..db2f544 --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteCapsOrSmallLetters.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 lab10_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class ReadWriteCapsOrSmallLetters { + public static void main(String[] args) + { + // Declare variables + String line; + + // Setup scanner + Scanner input = new Scanner(System.in); + + // Prompt for input + System.out.println("Please enter 5 words on one line seperated by whitespace: "); + line = input.nextLine(); + + System.out.println("The line you entered: "+ line); + + System.out.println("The line you entered in all caps: " + line.toUpperCase()); + + + + } +} diff --git a/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName1.java b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName1.java new file mode 100644 index 0000000..bda3517 --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName1.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 lab10_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class ReadWriteName1 { + public static void main(String[] args) + { + Scanner scan = new Scanner(System.in); + System.out.print("Please enter your first name followed by your last name \nbeing seperated" + + " from each other by whitespace or carriage return: "); + String firstName = scan.next(); + String lastName = scan.next(); + + System.out.println("\nHello " + firstName + " " + lastName + "!"); + } +} diff --git a/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName2.java b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName2.java new file mode 100644 index 0000000..516fa5b --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName2.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 lab10_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class ReadWriteName2 { + public static void main(String[] args) + { + // Create scanner + Scanner input = new Scanner(System.in); + + // Setup variables + String firstName, lastName; + + // Prompt for input + System.out.println("Please enter your first name, followed by your last name: "); + firstName = input.next(); + lastName = input.next(); + + //Print output + System.out.println("Hello, " + firstName + ", " + lastName + "."); + } +} diff --git a/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName3.java b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName3.java new file mode 100644 index 0000000..da26dda --- /dev/null +++ b/Assignments/Lab10_CalebFontenot/src/lab10_calebfontenot/ReadWriteName3.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 lab10_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class ReadWriteName3 { + public static void main(String[] args) + { + Scanner scan = new Scanner(System.in); + System.out.print("Please enter your first name followed by your last name \nbeing seperated " + + "from each other by whitespace: "); + String wholeLine = scan.nextLine(); + + System.out.println("\nHello " + wholeLine + "!"); + + } +} diff --git a/Exams/ProgrammingExam1_CalebFontenot/build/classes/programmingexam1_calebfontenot/TwoLargerOfThe3.class b/Exams/ProgrammingExam1_CalebFontenot/build/classes/programmingexam1_calebfontenot/TwoLargerOfThe3.class old mode 100755 new mode 100644 index 9c12758..1b899d8 Binary files a/Exams/ProgrammingExam1_CalebFontenot/build/classes/programmingexam1_calebfontenot/TwoLargerOfThe3.class and b/Exams/ProgrammingExam1_CalebFontenot/build/classes/programmingexam1_calebfontenot/TwoLargerOfThe3.class differ diff --git a/Exams/ProgrammingExam1_CalebFontenot/nbproject/private/private.xml b/Exams/ProgrammingExam1_CalebFontenot/nbproject/private/private.xml index a714ebf..6807a2b 100755 --- a/Exams/ProgrammingExam1_CalebFontenot/nbproject/private/private.xml +++ b/Exams/ProgrammingExam1_CalebFontenot/nbproject/private/private.xml @@ -1,13 +1,7 @@ - - - - - - file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/TwoLargerOfThe3.java - file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/ProgrammingExam1_CalebFontenot.java - file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/QuotientAndRemainderOfNumbersInAnyOrder.java - file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/LeapYear.java - file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/QuotientAndRemainder.java - - - + + + + + + + diff --git a/Exams/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/TwoLargerOfThe3.java b/Exams/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/TwoLargerOfThe3.java index 2fbe16d..e224bff 100755 --- a/Exams/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/TwoLargerOfThe3.java +++ b/Exams/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/TwoLargerOfThe3.java @@ -52,6 +52,7 @@ public class TwoLargerOfThe3 { secondLargest = _2; // Then _2 must be the largest. } } +/* if (_1 == _2 | _1 == _3 | _2 == _3) { System.out.println("Some numbers equal. Running additional checks..."); if (_1 == _2) { @@ -73,6 +74,7 @@ public class TwoLargerOfThe3 { } } } + */ // Output System.out.println("The first largest is " + firstLargest + " and the second largest is " + secondLargest); } diff --git a/Lab10_CalebFontenot.java b/Lab10_CalebFontenot.java new file mode 100644 index 0000000..472c700 --- /dev/null +++ b/Lab10_CalebFontenot.java @@ -0,0 +1,23 @@ +/* + * 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 lab10_calebfontenot; + +/** + * + * @author caleb + */ +public class Lab10_CalebFontenot { + + /** + * @param args the command line arguments + */ + public static void main(String[] args) + { + while (true) { + System.out.print("Hailey cute! "); + } + } + +} diff --git a/Test Project/src/main/java/com/mycompany/mavenproject1/NegativeVariableTest.java b/Test Project/src/main/java/com/mycompany/mavenproject1/NegativeVariableTest.java new file mode 100644 index 0000000..29e15a2 --- /dev/null +++ b/Test Project/src/main/java/com/mycompany/mavenproject1/NegativeVariableTest.java @@ -0,0 +1,17 @@ +/* + * 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 NegativeVariableTest { + public static void main(String[] args) + { + int x = 5; + System.out.println(-x); + } +} diff --git a/Test Project/src/main/java/com/mycompany/mavenproject1/Unicode.java b/Test Project/src/main/java/com/mycompany/mavenproject1/Unicode.java new file mode 100644 index 0000000..b5540e0 --- /dev/null +++ b/Test Project/src/main/java/com/mycompany/mavenproject1/Unicode.java @@ -0,0 +1,16 @@ +/* + * 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 Unicode { + public static void main(String[] args) + { + System.out.println("\u2764"); + } +} diff --git a/Test Project/target/classes/com/mycompany/mavenproject1/NegativeVariableTest.class b/Test Project/target/classes/com/mycompany/mavenproject1/NegativeVariableTest.class new file mode 100644 index 0000000..9ed84c2 Binary files /dev/null and b/Test Project/target/classes/com/mycompany/mavenproject1/NegativeVariableTest.class differ diff --git a/Test Project/target/classes/com/mycompany/mavenproject1/Unicode.class b/Test Project/target/classes/com/mycompany/mavenproject1/Unicode.class new file mode 100644 index 0000000..5e7ace7 Binary files /dev/null and b/Test Project/target/classes/com/mycompany/mavenproject1/Unicode.class differ