From 2411b5d4a4740d2fb351d35e10c3afb41c99863f Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 25 Aug 2022 16:05:45 -0500 Subject: [PATCH] Init --- Lab1/pom.xml | 14 ++++++ .../java/com/calebfontenot/lab1/Lab1.java | 18 ++++++++ Lab1CalebFontenot/pom.xml | 14 ++++++ .../src/main/java/ShowLogicErrors.java | 15 +++++++ .../lab1calebfontenot/Lab1CalebFontenot.java | 20 +++++++++ Lab1CalebFontenot/src/main/java/test.java | 15 +++++++ .../target/Lab1CalebFontenot-1.0-SNAPSHOT.jar | Bin 0 -> 2694 bytes .../target/classes/NewClass.class | Bin 0 -> 249 bytes .../target/classes/ShowLogicErrors.class | Bin 0 -> 628 bytes .../lab1calebfontenot/Lab1CalebFontenot.class | Bin 0 -> 704 bytes Lab1CalebFontenot/target/classes/test.class | Bin 0 -> 547 bytes .../target/maven-archiver/pom.properties | 5 +++ .../compile/default-compile/createdFiles.lst | 1 + .../compile/default-compile/inputFiles.lst | 1 + .../default-testCompile/inputFiles.lst | 0 Lab2CalebFontenot/lab2CalebFontenot/pom.xml | 14 ++++++ .../src/main/java/ComputeExpression.java | 16 +++++++ .../src/main/java/ShowLogicErrors.java | 15 +++++++ .../src/main/java/ShowRuntimeErrors.java | 15 +++++++ .../src/main/java/ShowSyntaxErrors.java | 16 +++++++ .../main/java/WelcomeWithThreeMessages.java | 17 +++++++ .../lab2calebfontenot/Lab2CalebFontenot.java | 17 +++++++ .../target/classes/ComputeExpression.class | Bin 0 -> 652 bytes .../target/classes/ShowLogicErrors.class | Bin 0 -> 646 bytes .../target/classes/ShowRuntimeErrors.class | Bin 0 -> 551 bytes .../target/classes/ShowSyntaxErrors.class | Bin 0 -> 585 bytes .../classes/WelcomeWithThreeMessages.class | Bin 0 -> 681 bytes .../lab2calebfontenot/Lab2CalebFontenot.class | Bin 0 -> 657 bytes .../compile/default-compile/createdFiles.lst | 2 + .../compile/default-compile/inputFiles.lst | 2 + Lab3CalebFontenot/pom.xml | 14 ++++++ .../src/main/java/Exercise01_04.java | 20 +++++++++ .../src/main/java/Exercise01_06.java | 16 +++++++ .../src/main/java/Exercise01_07.java | 16 +++++++ .../src/main/java/Exercise01_11.java | 25 +++++++++++ .../lab3calebfontenot/Lab3CalebFontenot.java | 17 +++++++ .../target/classes/.netbeans_automatic_build | 0 .../target/classes/Exercise01_04.class | Bin 0 -> 665 bytes .../target/classes/Exercise01_06.class | Bin 0 -> 538 bytes .../target/classes/Exercise01_07.class | Bin 0 -> 570 bytes .../target/classes/Exercise01_11.class | Bin 0 -> 709 bytes .../lab3calebfontenot/Lab3CalebFontenot.class | Bin 0 -> 657 bytes .../compile/default-compile/createdFiles.lst | 2 + .../compile/default-compile/inputFiles.lst | 2 + .../test-classes/.netbeans_automatic_build | 0 Lab3_1_CalebFontenot/pom.xml | 14 ++++++ .../lab3_1_calebfontenot/Lab3.java | 42 ++++++++++++++++++ .../MilesToKilometers.java | 29 ++++++++++++ .../lab3_1_calebfontenot/RunwayLength.java | 38 ++++++++++++++++ .../lab3_1_calebfontenot/Lab3.class | Bin 0 -> 1585 bytes .../MilesToKilometers.class | Bin 0 -> 1436 bytes .../lab3_1_calebfontenot/RunwayLength.class | Bin 0 -> 1547 bytes .../compile/default-compile/createdFiles.lst | 2 + .../compile/default-compile/inputFiles.lst | 2 + Lab4_1/pom.xml | 14 ++++++ .../com/calebfontenot/lab4_1/DisplayTime.java | 28 ++++++++++++ .../java/com/calebfontenot/lab4_1/Lab4_1.java | 17 +++++++ .../com/calebfontenot/lab4_1/SalesTax.java | 24 ++++++++++ .../target/classes/.netbeans_automatic_build | 0 .../calebfontenot/lab4_1/DisplayTime.class | Bin 0 -> 1390 bytes .../com/calebfontenot/lab4_1/Lab4_1.class | Bin 0 -> 572 bytes .../com/calebfontenot/lab4_1/SalesTax.class | Bin 0 -> 1375 bytes .../compile/default-compile/createdFiles.lst | 2 + .../compile/default-compile/inputFiles.lst | 2 + .../test-classes/.netbeans_automatic_build | 0 MP1/pom.xml | 14 ++++++ .../main/java/com/calebfontenot/mp1/MP1.java | 17 +++++++ MP1_CalebFontenot/pom.xml | 14 ++++++ .../mp1_calebfontenot/Cylinder.java | 32 +++++++++++++ .../mp1_calebfontenot/MP1_CalebFontenot.java | 17 +++++++ .../mp1_calebfontenot/NumberOfYears.java | 41 +++++++++++++++++ .../mp1_calebfontenot/SumOfDigits.java | 34 ++++++++++++++ .../mp1_calebfontenot/Total.java | 40 +++++++++++++++++ .../target/classes/.netbeans_automatic_build | 0 .../mp1_calebfontenot/Cylinder.class | Bin 0 -> 1516 bytes .../mp1_calebfontenot/MP1_CalebFontenot.class | Bin 0 -> 657 bytes .../mp1_calebfontenot/NumberOfYears.class | Bin 0 -> 1639 bytes .../mp1_calebfontenot/SumOfDigits.class | Bin 0 -> 1559 bytes .../mp1_calebfontenot/Total.class | Bin 0 -> 1443 bytes .../compile/default-compile/createdFiles.lst | 2 + .../compile/default-compile/inputFiles.lst | 2 + .../test-classes/.netbeans_automatic_build | 0 82 files changed, 756 insertions(+) create mode 100644 Lab1/pom.xml create mode 100644 Lab1/src/main/java/com/calebfontenot/lab1/Lab1.java create mode 100644 Lab1CalebFontenot/pom.xml create mode 100644 Lab1CalebFontenot/src/main/java/ShowLogicErrors.java create mode 100644 Lab1CalebFontenot/src/main/java/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.java create mode 100644 Lab1CalebFontenot/src/main/java/test.java create mode 100644 Lab1CalebFontenot/target/Lab1CalebFontenot-1.0-SNAPSHOT.jar create mode 100644 Lab1CalebFontenot/target/classes/NewClass.class create mode 100644 Lab1CalebFontenot/target/classes/ShowLogicErrors.class create mode 100644 Lab1CalebFontenot/target/classes/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.class create mode 100644 Lab1CalebFontenot/target/classes/test.class create mode 100644 Lab1CalebFontenot/target/maven-archiver/pom.properties create mode 100644 Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/pom.xml create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ComputeExpression.java create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowLogicErrors.java create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowRuntimeErrors.java create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowSyntaxErrors.java create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/src/main/java/WelcomeWithThreeMessages.java create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/src/main/java/com/calebfontenot/lab2calebfontenot/Lab2CalebFontenot.java create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/classes/ComputeExpression.class create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/classes/ShowLogicErrors.class create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/classes/ShowRuntimeErrors.class create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/classes/ShowSyntaxErrors.class create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/classes/WelcomeWithThreeMessages.class create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/classes/com/calebfontenot/lab2calebfontenot/Lab2CalebFontenot.class create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 Lab2CalebFontenot/lab2CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 Lab3CalebFontenot/pom.xml create mode 100644 Lab3CalebFontenot/src/main/java/Exercise01_04.java create mode 100644 Lab3CalebFontenot/src/main/java/Exercise01_06.java create mode 100644 Lab3CalebFontenot/src/main/java/Exercise01_07.java create mode 100644 Lab3CalebFontenot/src/main/java/Exercise01_11.java create mode 100644 Lab3CalebFontenot/src/main/java/com/calebfontenot/lab3calebfontenot/Lab3CalebFontenot.java create mode 100644 Lab3CalebFontenot/target/classes/.netbeans_automatic_build create mode 100644 Lab3CalebFontenot/target/classes/Exercise01_04.class create mode 100644 Lab3CalebFontenot/target/classes/Exercise01_06.class create mode 100644 Lab3CalebFontenot/target/classes/Exercise01_07.class create mode 100644 Lab3CalebFontenot/target/classes/Exercise01_11.class create mode 100644 Lab3CalebFontenot/target/classes/com/calebfontenot/lab3calebfontenot/Lab3CalebFontenot.class create mode 100644 Lab3CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 Lab3CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 Lab3CalebFontenot/target/test-classes/.netbeans_automatic_build create mode 100644 Lab3_1_CalebFontenot/pom.xml create mode 100644 Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/Lab3.java create mode 100644 Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.java create mode 100644 Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.java create mode 100644 Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/Lab3.class create mode 100644 Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.class create mode 100644 Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.class create mode 100644 Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 Lab4_1/pom.xml create mode 100644 Lab4_1/src/main/java/com/calebfontenot/lab4_1/DisplayTime.java create mode 100644 Lab4_1/src/main/java/com/calebfontenot/lab4_1/Lab4_1.java create mode 100644 Lab4_1/src/main/java/com/calebfontenot/lab4_1/SalesTax.java create mode 100644 Lab4_1/target/classes/.netbeans_automatic_build create mode 100644 Lab4_1/target/classes/com/calebfontenot/lab4_1/DisplayTime.class create mode 100644 Lab4_1/target/classes/com/calebfontenot/lab4_1/Lab4_1.class create mode 100644 Lab4_1/target/classes/com/calebfontenot/lab4_1/SalesTax.class create mode 100644 Lab4_1/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 Lab4_1/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 Lab4_1/target/test-classes/.netbeans_automatic_build create mode 100644 MP1/pom.xml create mode 100644 MP1/src/main/java/com/calebfontenot/mp1/MP1.java create mode 100644 MP1_CalebFontenot/pom.xml create mode 100644 MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Cylinder.java create mode 100644 MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/MP1_CalebFontenot.java create mode 100644 MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/NumberOfYears.java create mode 100644 MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/SumOfDigits.java create mode 100644 MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Total.java create mode 100644 MP1_CalebFontenot/target/classes/.netbeans_automatic_build create mode 100644 MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/Cylinder.class create mode 100644 MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/MP1_CalebFontenot.class create mode 100644 MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/NumberOfYears.class create mode 100644 MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/SumOfDigits.class create mode 100644 MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/Total.class create mode 100644 MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst create mode 100644 MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst create mode 100644 MP1_CalebFontenot/target/test-classes/.netbeans_automatic_build diff --git a/Lab1/pom.xml b/Lab1/pom.xml new file mode 100644 index 0000000..a05520f --- /dev/null +++ b/Lab1/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + com.calebfontenot.lab1 + Lab1 + 1.0-SNAPSHOT + jar + + UTF-8 + 1.8 + 1.8 + com.calebfontenot.lab1.Lab1 + + \ No newline at end of file diff --git a/Lab1/src/main/java/com/calebfontenot/lab1/Lab1.java b/Lab1/src/main/java/com/calebfontenot/lab1/Lab1.java new file mode 100644 index 0000000..421f663 --- /dev/null +++ b/Lab1/src/main/java/com/calebfontenot/lab1/Lab1.java @@ -0,0 +1,18 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.calebfontenot.lab1; + +/** + * + * @author caleb + */ +public class Lab1 { + + public static void main(String[] args) { + String message = "Hello World"; + System.out.println(message); + } +} diff --git a/Lab1CalebFontenot/pom.xml b/Lab1CalebFontenot/pom.xml new file mode 100644 index 0000000..05d91b2 --- /dev/null +++ b/Lab1CalebFontenot/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + com.calebfontenot.lab1calebfontenot + Lab1CalebFontenot + 1.0-SNAPSHOT + jar + + UTF-8 + 1.8 + 1.8 + com.calebfontenot.lab1calebfontenot.Lab1CalebFontenot + + \ No newline at end of file diff --git a/Lab1CalebFontenot/src/main/java/ShowLogicErrors.java b/Lab1CalebFontenot/src/main/java/ShowLogicErrors.java new file mode 100644 index 0000000..961c9c4 --- /dev/null +++ b/Lab1CalebFontenot/src/main/java/ShowLogicErrors.java @@ -0,0 +1,15 @@ +/* + * 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 + */ + +/** + * + * @author caleb + */ +public class ShowLogicErrors { + public static void main(String[] args) { + System.out.println("Celsius 35 is Fahrenheit degree "); + System.out.println((9 / 5) * 35 + 32); + } +} diff --git a/Lab1CalebFontenot/src/main/java/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.java b/Lab1CalebFontenot/src/main/java/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.java new file mode 100644 index 0000000..6b09147 --- /dev/null +++ b/Lab1CalebFontenot/src/main/java/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.java @@ -0,0 +1,20 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ +package com.calebfontenot.lab1calebfontenot; + +/** + * + * @author caleb + */ +public class Lab1CalebFontenot { + + public static void main(String[] args) + { + // Create a string named message + String message = "Hello World!"; + // Print our string + System.out.println(message); + } +} diff --git a/Lab1CalebFontenot/src/main/java/test.java b/Lab1CalebFontenot/src/main/java/test.java new file mode 100644 index 0000000..3450420 --- /dev/null +++ b/Lab1CalebFontenot/src/main/java/test.java @@ -0,0 +1,15 @@ +/* + * 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 + */ + +/** + * + * @author caleb + */ +public class test { + public static void main(String[] args) + { + System.out.println("Hello world 2"); + } +} diff --git a/Lab1CalebFontenot/target/Lab1CalebFontenot-1.0-SNAPSHOT.jar b/Lab1CalebFontenot/target/Lab1CalebFontenot-1.0-SNAPSHOT.jar new file mode 100644 index 0000000000000000000000000000000000000000..b7444717dcb335c974d5137849e901c54fccbda0 GIT binary patch literal 2694 zcmWIWW@h1H0D)RsgZ*3~+9=KSU$gDb`lo)+nNojal9t?R_W{$xqm6fx}s zDiu5DbO#B02L+eR)mkee!!0z~I7qZc_;k=`k)E$QUwkTe&hauX_BycXWT)jyPk}~} z*!5F#7RZWKu~oJ0iP;mw0COCsA6S5nOU}=QJ0DYp5L88SVoqvOT7F(hYF>T`9`!0% z)#oH88Dckq101f8wf);07#SEAF)=V$6KR4E&`f8LtK6Wj(o4=sEH0iK^NIiL46v@PPk=d*|kj3zGbw zeQ2x9e|Gjw-aY%c`wVXqY`YCrbX0PCl#d!zo_@dc@#hWC=TvTAv{*9ex6zbe4T^#J zTP}MT-%vmFJ@jjkYu)x~j$)SF+j=>l)JtxW`xV7}r@WG|zpzZt_i&n4Lc~&{|lj6)P=9|uMc>XUtYBCR# z-b;n4zpk#BJmK78IbMz42``nHF24U9x91LraVIu@V8p^ROm1RXY95|+WQ?g8 zm{9dl5|JM6WQCcKUCA>LBbCA3%)xLZL?AR|#ccf$V9FI`W?=B4mK6m+pH}4N^iGWT zKV%?s^!`tg)Az3PeLXlKFsZ{uSU~8)kE)k?i+61Gj=o{HFIDzG&x-2TJNFk~pEsH3 zl@fp1ir#=t@@1YfY#KYgTF?A?_&Z6&wvG9kr`KAu6S)sEGJie1b!(G*CZqKf7Ow}{ zDqiU&W^*sF3%%cNlCs|Hkw#E;vySpFj{hibE{9J^C%94!=mR8dRZ7+8uA3bO` z{nzL8gSv~%R*ElfQ+_A2$?w6wB>|ex<*1aUro)LuzGHuua~7$-myfPV_+qm$ndgl(EO|o8ot1S8 zFKU6YHUWr(sTq3(MfnA(MJ1W3#ldC%XT5d3bUb|nJywN$@YV4?`#6YC(>Jt0$2Z)- zB-p@Yi;>ADBg3$QGR{B)BLkyHUOHMQeY}12KKg9@>gi)t;&;Z=x9IeFZO^l(^&fia zpVHT5IHmIZ`771tluHYYsw^G0YAD5|u5>**^JnF@wkoz=2kZJ656b;h1eN@ZOd`y< z>o1^}fk1%ats{trXHJAR?DZK)F$gSaR0oo9ZAi5n!UW8m2&!}-0A%qIAQMsr;dUyh z5`qAbj%Pq7NC!$;0L+%S^@A!U2mt9917=rD{n*M9n2FdcDVUi{8Y74_5u-4HR9X0( z4k|PuK!D-@e?wp?0}pOk5ejo9W=MkyQH16=OwGg17qwKje`XX(XiaCnD5B_%7;bIB0rkVUeLVgT&xmSZy%T)LM|wT`6~OHKQT#+zmolSV-nj?6$>q-!tqi#MLeYC^z*nqMRmC^>1hK>Y w90oLQ;WX#(ut2%qzr)f$Pz}W#QNcXja_tSUL7vu0+n~S9r~vKRq*%b#GeDk(Q~&?~ literal 0 HcmV?d00001 diff --git a/Lab1CalebFontenot/target/classes/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.class b/Lab1CalebFontenot/target/classes/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.class new file mode 100644 index 0000000000000000000000000000000000000000..4fdb2c323cb57e8b09e149df5ba96344fe2e5d1a GIT binary patch literal 704 zcmbV~%Wl&^6o&uFrOw5)A)(<;TP{)xQmslwEP~inDl80C3JMEW<7ApnWqZ(Mg2ZE$ zMJsjD2k1jp{NqHbDzd_hb98Rsxp=OwFD?P>;Z*}Almk>kRIwt^I+4F*l*)V(eN9f( z$O){x*SU5d1j@bbVGT8b@RLeYv-#cFbi7qZ1I++oh&x!l1sMFEI+d}`%!pZ!3$!-T zq1Cw?IICpVZ=i*{0ooxtxF^tAk|PlO^c87NNN-Ll1|&k~lm7NFKv&@H$Yjw-rYboy zxl_4uTqD`N?TP8x_c;fP9D&Nd87qOcSm)}?EK8LACX*5cF|9hD z;3*-#_#?H4Hrqk`2lY2+Si3>2qRdc>vd!nyDNx;cI-X&Ju`+7d5%#RB6W`8F?KgL*3O%@Sv4No*{QBd_Sr^M#>-7 zjvN%RY@y_$j1`9Rf-(l{-a!12xQ#hDz9CU%IBGR}7OD&>EvD2tbsh}`L!m80aXkzA zLf!JdPmxkP8gReIl{EfOFr~+GN^fkN;ucj0TvD5A<8DzO%5ya$eR)Berg0_oI2v}i z;(^dYk*mIm-BWu!tgLSg* zT!0O1l4oNJ+XOMiCozm-FR)6vR}_8$=9_^W{a*eL#KsPGDPE(UX5@g_b+QTUeFMaX BZu|fM literal 0 HcmV?d00001 diff --git a/Lab1CalebFontenot/target/maven-archiver/pom.properties b/Lab1CalebFontenot/target/maven-archiver/pom.properties new file mode 100644 index 0000000..ab252fa --- /dev/null +++ b/Lab1CalebFontenot/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Tue Aug 16 11:12:43 CDT 2022 +artifactId=Lab1CalebFontenot +groupId=com.calebfontenot.lab1calebfontenot +version=1.0-SNAPSHOT diff --git a/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..72bb981 --- /dev/null +++ b/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1 @@ +com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.class diff --git a/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..dd8a7dd --- /dev/null +++ b/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1 @@ +/home/caleb/NetBeansProjects/ADSV Java/Lab1CalebFontenot/src/main/java/com/calebfontenot/lab1calebfontenot/Lab1CalebFontenot.java diff --git a/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/Lab1CalebFontenot/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29 diff --git a/Lab2CalebFontenot/lab2CalebFontenot/pom.xml b/Lab2CalebFontenot/lab2CalebFontenot/pom.xml new file mode 100644 index 0000000..3dacc97 --- /dev/null +++ b/Lab2CalebFontenot/lab2CalebFontenot/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + com.calebfontenot.lab2calebfontenot + lab2CalebFontenot + 1.0-SNAPSHOT + jar + + UTF-8 + 18 + 18 + com.calebfontenot.lab2calebfontenot.Lab2CalebFontenot + + \ No newline at end of file diff --git a/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ComputeExpression.java b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ComputeExpression.java new file mode 100644 index 0000000..04383d5 --- /dev/null +++ b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ComputeExpression.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 + */ + +/** + * + * @author caleb + */ +public class ComputeExpression { + public static void main(String[] args) { + System.out.print("(10.5 + 2 * 3) / (45 – 3.5) = "); + System.out.println((10.5 + 2 * 3) / (45 - 3.5)); + } +} + diff --git a/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowLogicErrors.java b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowLogicErrors.java new file mode 100644 index 0000000..2794785 --- /dev/null +++ b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowLogicErrors.java @@ -0,0 +1,15 @@ +/* + * 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 + */ + +/** + * + * @author caleb + */ +public class ShowLogicErrors { + public static void main(String[] args) { + System.out.print("Celsius 35 is Fahrenheit degree "); + System.out.println((9.0 / 5) * 35 + 32); + } +} diff --git a/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowRuntimeErrors.java b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowRuntimeErrors.java new file mode 100644 index 0000000..f966acb --- /dev/null +++ b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowRuntimeErrors.java @@ -0,0 +1,15 @@ +/* + * 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 + */ + +/** + * + * @author caleb + */ +// ShowRuntimeErrors.java: Program contains runtime errors +public class ShowRuntimeErrors { + public static void main(String[] args) { + System.out.println(1 / 0); + } +} diff --git a/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowSyntaxErrors.java b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowSyntaxErrors.java new file mode 100644 index 0000000..e57d24e --- /dev/null +++ b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/ShowSyntaxErrors.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 + */ + +/** + * + * @author caleb + */ +public class ShowSyntaxErrors { + + public static void main(String[] args) + { + System.out.println("Welcome to Java"); + } +} diff --git a/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/WelcomeWithThreeMessages.java b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/WelcomeWithThreeMessages.java new file mode 100644 index 0000000..32ef4d1 --- /dev/null +++ b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/WelcomeWithThreeMessages.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 + */ + +/** + * + * @author caleb + */ +public class WelcomeWithThreeMessages { + public static void main(String[] args) + { + System.out.println("Programming is fun!"); + System.out.println("Fundamentals First"); + System.out.println("Problem Driven"); + } +} diff --git a/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/com/calebfontenot/lab2calebfontenot/Lab2CalebFontenot.java b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/com/calebfontenot/lab2calebfontenot/Lab2CalebFontenot.java new file mode 100644 index 0000000..cb08b65 --- /dev/null +++ b/Lab2CalebFontenot/lab2CalebFontenot/src/main/java/com/calebfontenot/lab2calebfontenot/Lab2CalebFontenot.java @@ -0,0 +1,17 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.calebfontenot.lab2calebfontenot; + +/** + * + * @author caleb + */ +public class Lab2CalebFontenot { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/Lab2CalebFontenot/lab2CalebFontenot/target/classes/ComputeExpression.class b/Lab2CalebFontenot/lab2CalebFontenot/target/classes/ComputeExpression.class new file mode 100644 index 0000000000000000000000000000000000000000..82d50ca453e7fe3a7412caeb36a796dfe8b01f2c GIT binary patch literal 652 zcmZvZ&2AGh5Xb+{*Cxw0ZMI*07Pp0Vx0SNcl2f1@THumGrJ!7Ta#AaGmEDaTr-B>r zz>~nCNF4eAeSxZ1F1!U|yhQ@kSn`a<|C!&6#uvZ7p99!I=pu)_gMx=5N(?h6;#5Qf zk@TZ?-4od}45jBPQD%oBAB3F>%BVPSJ=}u#UwZrF$jF$o(lHgyw=$4QqXVrH(>7X) zxLHP(fd@~Y)Ej)0Z}APj9rB0=&l>#4r_X%5-U#^%?qUWt2fl|{%rVSPATbn&mP?I- z>rUCo)J7%!X4omcywXdTKih9C>$ZnGxXa*VC4+>a5bT8=2lp9jyJZdk0ir%OC|E{IPOaQUUUca;}}ibxCLH?f4a1J6YVU53sa5<~UGa;Z`9*r^zq+Q=*#^hUMM zKX2*(0Lyye;w4@&I7La4F;s$s-pIilhQ(p5PD2&R$rr7a&Pm%>Q$a!~Gx2Sfj)nfg z#|hndp_=ey#I>~XpUaAgB^9;9C!7I+QZA|2O7LsmgrsvFQE6w6OpE<0Osu9yT=P^I zVFzmt)l5&sp|rzvpY+?dOTrpn({tKW0<8!&vTrHslV{|sTUTJ`h5U}JmF+Qj2mdqmBi%(fWtzVI3Q!ZPHg|6o6nK I$(9g20At;X3IG5A literal 0 HcmV?d00001 diff --git a/Lab2CalebFontenot/lab2CalebFontenot/target/classes/ShowRuntimeErrors.class b/Lab2CalebFontenot/lab2CalebFontenot/target/classes/ShowRuntimeErrors.class new file mode 100644 index 0000000000000000000000000000000000000000..c557ffa700b93c6fcd4296c51ac3ca0a3d58af6a GIT binary patch literal 551 zcmZuuOHTqZ5dO+8tgOph@crNh9^`6*;bJr~K_#x?;;BFbCHpX?X#81v(8Pm3z#nCt zf{7Yv(rISCN2k-zulElCEmU13U^%coB#~mskNE>{1Uwoxu6twA*9@r>8A;t@uxj;g z8Y@UUa6PQT`$zYmCR&8Vil-zhw`WE&ZgiB4w6B%mVbetxIR|+U1r!-dOE?V9y-@@a zgI&9*cO9%T6#P;Acr%T(48@sJv6>Ki8V>|Rt}P>RH4S@0-SS>Qm0~;Y^PtO>H2F`_ z)+0%xQhULvNme13bYG=*H*b6Pe(G69!)CopI9Ed>UINn$E`=V&gAP|b6k3?pTtA+w zzBreroyx+EN9NtAqC~SdD*~ zhN=2aJBMlH9Jn54;QcEP9&e3^s7j4URBk39sr;6fu?dV8JZelM&rrA$VOK?>YE<=< zy1AIcyn~{L5*8Rr6NC)Tjm3m9k?Y^+WJco3xZl`mJE+h!!9d*ykFnto$670W%aA@& zJwZL2G8X5fs3Y_x?}QX7HdU90ZLX#De}ZWrg8tJY$k#?H$c*8yW3aFt>>#<)7%r1!RB6&XDjPA_tE7((# zULtGLfQx0a-gg03uu5JIYgi|U74Ii7iao4GIbVt*VTHB)W<3Z zkT~!FJXFQlAR(k+$ukPT}{lCfxGSb$X08(C%C*jbXgUqxM@HL^)$ zrPj(sp-RKwnc4BNj@KTV0a|#&B}>Et-k%&58>V+3@Wq_WW>SBDQpKh~bC8+2)MT8D z({P|{>Z)i9)Vb?4CLR8;>Vk}iErIqK#j`}ynR1KMg(W(sG?fvh0_CG*P6CagGW0Xk zQ?jR$<;))@GZ{~$ReAjQvFsL#MO(v{fPE%vsd)6w?yqIDb6(nr8LcI0-t#fJMKT{r z-WxfxT8t}2r zHh3t&2YlqHhLB;ULVQxdfX*en=Gqk+x!-v7Z`nTqn<%q*jsKlGAG(1y+b4JjyV&FW QCw?n}18~pJY)klZ4+f>0F8}}l literal 0 HcmV?d00001 diff --git a/Lab2CalebFontenot/lab2CalebFontenot/target/classes/com/calebfontenot/lab2calebfontenot/Lab2CalebFontenot.class b/Lab2CalebFontenot/lab2CalebFontenot/target/classes/com/calebfontenot/lab2calebfontenot/Lab2CalebFontenot.class new file mode 100644 index 0000000000000000000000000000000000000000..8238098c899abb0e70fe49a655bd4f95ff69ccfc GIT binary patch literal 657 zcmbVKOG^VW5dPAKYwK!jtM&b;URn<>2;!mQr63;G2UP08Q?`vYWp^WKD)_VXpy0tD z;Exg~YeB`H3}nK5^UXJzWZpks-vAt8JC7974l*vXm|!UO`91eS9{0TSpf5UxVd7B6 z(i}0QYxQ;xlgK&9yO@Iei{5$|7!eUm4Jm2fPlTlMF0_nI%V@!)#w2DK+!GOoYV%6z zuv^Weh*<|E7iG*bl*eQ-ICoYfj7hfkrJG!kL}lD-)Y}d!4Er4wc^w{#;6}wp#L7?` z!QOAgC!}dP$0H6yrm4Duq2S9{oDHKu=t~}igp_opGCH$6FJO;Jc#*6P11^>ln-H*!74mXe#Ttp&1Pza1?*4( a1)7!O50M + + 4.0.0 + com.calebfontenot.lab3calebfontenot + Lab3CalebFontenot + 1.0-SNAPSHOT + jar + + UTF-8 + 18 + 18 + com.calebfontenot.lab3calebfontenot.Lab3CalebFontenot + + \ No newline at end of file diff --git a/Lab3CalebFontenot/src/main/java/Exercise01_04.java b/Lab3CalebFontenot/src/main/java/Exercise01_04.java new file mode 100644 index 0000000..12babbf --- /dev/null +++ b/Lab3CalebFontenot/src/main/java/Exercise01_04.java @@ -0,0 +1,20 @@ +/* + * 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 + */ + +/** + * + * @author caleb + */ +public class Exercise01_04 { + + public static void main(String[] args) + { + System.out.println("a a^2 a^3"); + System.out.println("1 1 1"); + System.out.println("2 4 8"); + System.out.println("3 9 27"); + System.out.println("4 16 64"); + } +} diff --git a/Lab3CalebFontenot/src/main/java/Exercise01_06.java b/Lab3CalebFontenot/src/main/java/Exercise01_06.java new file mode 100644 index 0000000..8f1e199 --- /dev/null +++ b/Lab3CalebFontenot/src/main/java/Exercise01_06.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 + */ + +/** + * + * @author caleb + */ +public class Exercise01_06 { + + public static void main(String[] args) + { + System.out.println(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9); + } +} diff --git a/Lab3CalebFontenot/src/main/java/Exercise01_07.java b/Lab3CalebFontenot/src/main/java/Exercise01_07.java new file mode 100644 index 0000000..28a84d8 --- /dev/null +++ b/Lab3CalebFontenot/src/main/java/Exercise01_07.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 + */ + +/** + * + * @author caleb + */ +public class Exercise01_07 { + public static void main(String[] args) + { + System.out.println(4 * (1.0 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11))); + System.out.println(4 * (1.0 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11) + (1.0/13))); + } +} diff --git a/Lab3CalebFontenot/src/main/java/Exercise01_11.java b/Lab3CalebFontenot/src/main/java/Exercise01_11.java new file mode 100644 index 0000000..e4f7723 --- /dev/null +++ b/Lab3CalebFontenot/src/main/java/Exercise01_11.java @@ -0,0 +1,25 @@ +/* + * 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 + */ + +/** + * + * @author caleb + */ +public class Exercise01_11 { + + public static void main(String[] args) + { + double Population = 312032486.0; + for (int i = 1; i <= 5; i++) { + //One birth every 7 seconds + Population += ((60 * 60 * 24 * 365) / 7.0); + //One death every 13 seconds + Population -= ((60 * 60 * 24 * 365) / 13.0); + //One new immigrant every 45 seconds + Population += ((60 * 60 * 24 * 365) / 45.0); + System.out.println(Population); + } + } +} diff --git a/Lab3CalebFontenot/src/main/java/com/calebfontenot/lab3calebfontenot/Lab3CalebFontenot.java b/Lab3CalebFontenot/src/main/java/com/calebfontenot/lab3calebfontenot/Lab3CalebFontenot.java new file mode 100644 index 0000000..b8e74c6 --- /dev/null +++ b/Lab3CalebFontenot/src/main/java/com/calebfontenot/lab3calebfontenot/Lab3CalebFontenot.java @@ -0,0 +1,17 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.calebfontenot.lab3calebfontenot; + +/** + * + * @author caleb + */ +public class Lab3CalebFontenot { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/Lab3CalebFontenot/target/classes/.netbeans_automatic_build b/Lab3CalebFontenot/target/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/Lab3CalebFontenot/target/classes/Exercise01_04.class b/Lab3CalebFontenot/target/classes/Exercise01_04.class new file mode 100644 index 0000000000000000000000000000000000000000..66c08f3817991f74ce161898ec29570009246abf GIT binary patch literal 665 zcmZuv+iuf95IvhFv18mOO=v0Qwp?25A~j7K6;M!L5IluaDJU;UpiR0;w~B4FaVq#M zcmRn9K7fxx9J`UKNU^nZJUcUIj(7I&zu$iV9OIdX0#+OpeUwlZs9mT_)tsn!+Q>#_fb+IN; zQBr+sa~*o9VckL9M*}wn8cRw9oG%%{BqnEYMVhN4qlw4eaNuH7pwyClU2O5QEj#js zi)|`DlrLrbxr@7`>B!cRJnA^OFR=RNtF|LE)d#K52OWXp>*P!eRC^}YC$ng%?FTiS zaHrl&Mrtxp)@1&CvzVTnX_mdf(j`r#40Ub>AD0PbT-h-T8%x4G%6B?FPtH!2Rgq4$ zWun(lW_G0Cnq104xBcv_@DTSnzU(Q0e~vQk1A0xOAeQ!iL441{k~Rwi9?Jm#Dglr1 zm|g`>utSopc$|{~;SV_V)t{(lxG~3DbG$vrJH+b-+iU@>@s3nE+8Va74v9Jf4*0rh Uh+RBoUcglnbU-a3Z2^1#0pVm(6bJHD(Uc|6)Dgzlc z8IskSYa#>FfMsJ5_6)uAJdT7noBrW11c=efob+D5e>tBn=9^%NGKv& zop7Rh;zGu)%)EA}XGH}?+P6LlFuifIC5jyKjC^|k9qc8B%VaeSSXd=%PYGDVIz=Wn uut_4i_#_si+$)Uy!5gxF0{VABOV1$pPsGF)wkf|uH_a#jY44IvVDAUSJ8RDX literal 0 HcmV?d00001 diff --git a/Lab3CalebFontenot/target/classes/Exercise01_07.class b/Lab3CalebFontenot/target/classes/Exercise01_07.class new file mode 100644 index 0000000000000000000000000000000000000000..bb15f739ff3712a27fe7590e36d5078e6d7253ce GIT binary patch literal 570 zcmZuu%Sr<=6g}x{>^QaBX??#R(26*^a#1M-t*iQgN;fVforW6e%t$&F{SN=Y4-j;r z;KC1Z;lH?XDc+e1T4*3QxjB#Ar2BVL#lEklr1}AYx{g_hbVhq zQ!u2f(iKNtry3^0c7O5^^nP!|(0&-iS7{Tff&;WEf literal 0 HcmV?d00001 diff --git a/Lab3CalebFontenot/target/classes/Exercise01_11.class b/Lab3CalebFontenot/target/classes/Exercise01_11.class new file mode 100644 index 0000000000000000000000000000000000000000..5c220b4a15280ba49b0997979a6c69829329db60 GIT binary patch literal 709 zcmZuvyKWOf6g^|FcN53KPW(uC1cFKMBM{@-ktIVwMoNN_ksAs$-i(|H_O7*FBPfw* zDJiHasFNa*DEI(=fr5^Y0P#5Eq_LD8?U}vzo;l}g?tc6GcC1M23sI? zC|}7+UwXaDlkTB%LjikBdpfKOM2n@4-8lZZ^^-^K#?#9ClkbC5yK(>R@AOeEV>i}a z7Jyl#u;5@ZfiyBxlI=I6Pz|W$k13qpnV4z6(h9T}w!=WlK`o9PmK-c6a2Zzw(id<9 zoS`|<_XMoscB$jwn!x(xpf0ipRmCQk-E3ZyTf3B+6eaNL)n z_9-Q{*=#$M?#o>{JhxBns_?+yZ^=LoRHy3OQHO>-%@iK`r*c_I*I ze8d$-74Cw2tb7V_G$~&vnlcc_4PxSqfK`f^f#q?FBIfW1SX{tH22RteugrWxzL3GJ z+a%8Q49>gFV96~EZr2IH6@4J_UvMsW8(tY(fz literal 0 HcmV?d00001 diff --git a/Lab3CalebFontenot/target/classes/com/calebfontenot/lab3calebfontenot/Lab3CalebFontenot.class b/Lab3CalebFontenot/target/classes/com/calebfontenot/lab3calebfontenot/Lab3CalebFontenot.class new file mode 100644 index 0000000000000000000000000000000000000000..dad547ef5d655c19b79fa3ddb2db2a905554dcae GIT binary patch literal 657 zcmbVKOHTqZ5dO-;6opGCH$6FJO;Jc#*6P11^>ln-H*!74mXe#Ttp&1Pza1?*4( a1)7!O50M + + 4.0.0 + com.calebfontenot.lab3_1_calebfontenot + Lab3_1_CalebFontenot + 1.0-SNAPSHOT + jar + + UTF-8 + 18 + 18 + com.calebfontenot.lab3_1_calebfontenot.Lab3_1_CalebFontenot + + \ No newline at end of file diff --git a/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/Lab3.java b/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/Lab3.java new file mode 100644 index 0000000..c293d71 --- /dev/null +++ b/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/Lab3.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 com.calebfontenot.lab3_1_calebfontenot; +import java.util.Scanner; +/** + * + * @author caleb + */ +public class Lab3 { + public static void main(String[] args) + { + // Create a scanner object + Scanner input = new Scanner(System.in); + + // Prompt for hight in feet + System.out.print("Enter the height (feet): "); + double height; + height = input.nextDouble(); + + // Prompt for width in feet + System.out.print("Enter the width (feet):"); + double width; + width = input.nextDouble(); + + // Calculate the area + double area; + area = height * width; + // Print area calculated + System.out.println("Calculated area is "+area); + //create constants + final double GALLONS_PER_SQUARE_FEET = 150.0; + + // calculate the gallons + double gallons; + gallons = area/GALLONS_PER_SQUARE_FEET; + //calculate the number of gallons needed to paint the wall + System.out.println("The amount of paint is " + gallons +" gallons."); + + } +} diff --git a/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.java b/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.java new file mode 100644 index 0000000..89f8301 --- /dev/null +++ b/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.java @@ -0,0 +1,29 @@ +/* + * 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.calebfontenot.lab3_1_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class MilesToKilometers { + public static void main(String[] args) + { + double miles; + double km; + Scanner scanner = new Scanner(System.in); + + //> 1. Prompt the user to enter the number of miles + System.out.println("Please enter miles to convert into kilometers"); + //> 2. Read the miles and store it into a variable + miles = scanner.nextDouble(); + //> 3. Calculate the KM from the entered miles + km = miles * 1.67; + //> 4. Display the result + System.out.println("You entered "+miles+" miles which is "+km+" kilometers"); + } +} diff --git a/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.java b/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.java new file mode 100644 index 0000000..7f8ceb8 --- /dev/null +++ b/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.java @@ -0,0 +1,38 @@ +package com.calebfontenot.lab3_1_calebfontenot; + +import java.util.Scanner; + +/* + * 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 + */ + +/** + * + * @author caleb + */ +public class RunwayLength { + public static void main(String[] args) + { + + //Define data objects + double length; + double acceleration; + double velocity; + + //Create scanner + Scanner input = new Scanner(System.in); + + //Prompt for input + System.out.print("Enter velocity: "); + velocity = input.nextDouble(); + System.out.print("Enter acceleration: "); + acceleration = input.nextDouble(); + + //Calculate + length = Math.pow(velocity, 2) / (2 * acceleration); + + //Print calculation + System.out.println("The minimum runway length for this airplane is "+length); + } +} diff --git a/Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/Lab3.class b/Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/Lab3.class new file mode 100644 index 0000000000000000000000000000000000000000..83dce8e5e428a562b42fce1a2abccd29d1661b95 GIT binary patch literal 1585 zcmb7E?M@p<6g>mRYnCk}hJb0CWND$XLt{5hzZ_E<;*a3g0fHS@RexAxd$2dGcdXrU zTHd6u(flA1m8$;kWAs6)+}Sn42vn(-JYV`wsOcxhq^(*|M|W)Nq% z@ru9ZIhT9A+w8v>BwBw8;(?6`GOA$CJfxr`EN3$($~6VnmWUxg(ch~B638$F2D|a z$2$j0V1;3|>?z^fsxR!maC&`Zr;mhCna8$?RlIND0}CJGHpAjMp9u(tnV|-x3}Z5( z97NXfdWB3=)4glK#u|g^iCYry%lH?l}KEXZm8SrCK zlwOCcA05@FRiL=10-d##iA0#ptBGeU+}Es)ke}aE)id-IiA=X4cfwQ@bD_hnk4@w_Z__-AI4PQA$|{P z|073%k_@=6{c`%}tGCKD$QBbfDN5#Z5>>8-*qJGb?9=20hHphD{k3}x(nyAhd-ciy&Vfbyb zuf~oM=q~rVt_ap^QXY?ng{y*1oLmZQoD9V^?vt8E-*aKIx5f}f(xdJuQAnW1uteL= z$mL3OZB8Gk?F2SUV2@#~K_3(!$dRXPd1Mc%t}3+JV@0zJR#m?TMVAMG2n@WS#=IiR zb$2yTXSnmn@0R{eQR~yoMdN3*%hAkep1J=P?Dx?8kVb6==I}Xdi;vO+J=R#g6lFI!ndR zunwFey@bttA{D1e=1pxe&+s6$TyV(}4`6}DBo^sCOJRlHl2vM;+xQfBk*CXTV*?f3 zLmior^DaF(#0y{J8=B`(C9lVHj}*30p#Ky_XYnnqVuX>V_$|8gHkR=ntrCPak0-P; nu|x4QjDUb?Jf(38MU-fsr&XCCe+b9t*rzj-_6Inm#H;TB?COUa literal 0 HcmV?d00001 diff --git a/Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.class b/Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.class new file mode 100644 index 0000000000000000000000000000000000000000..7c8a29fdb531194e0653aca22655249d931449d8 GIT binary patch literal 1436 zcmbVM-A)rh6#fQi7wRfl1Oycq0@9*V@n7nHD*{%kn*yLM0 z=W(@>dtBWVu3<=Cmr9zO4BeS*#X>K`;Yg`vq?aqZTq)uAA%z1LY#Rr0XqT7rc3?z< zp-U=;p;BZib#7TTTc&J$!5jG$EDVJBhZ&A$_EpJNLWDsZM=(Tz=oZDb<80NJ>W{Nt zj4+&C^#l)uBa{)o(~zDB9HSjqt1aOhhqSd*m!572k_Rb_V$8xZ8^>{iVen6k9c~${ zW(eYiNwhQ>bgQPqmcTR%TP`SE7_bDD}iZQ~SX z7)BbrE(%(?+&q=0Mqh#9$^;C;*P#={LYCpGs~b6&d!qVMQ+7%lVyk-L#r%ui zmk-0F*YtzGSu*q#^g0F9Uy@2ZYBj3DU*l1T>5?Yn3ioArZeRA8nxt43O8*O(C&UI1 zX&=r!-VunP-8v`p+_tdF{tRQYSGKk%Eb|9e*JQSv;*H^jEV`7Pk zvTpgVSfpZ57<+0m7g9}zceOTw@p&`$5cDT;BSq73%fjuDtvd`;QCCECNVTQwA{SF1 z6S&A-qy24$cb(1AR*ao4akWmAOqH~*x0?CA1?jliWw^H86#J-m)+`>?d}q(JT@<+I zm8B8+UKALz&vYvu3bF36_F%lKNw?<6fG&1sg27%62fN_$AP|9tMTY4;CD<=B3rh^+ z|5l|(B`yOdkf8@C{B?mSN0QcAI^}3*v?pdifxVB!r)dqvpf~0Wt#+({vzVh(ADNsZ zC!z7%$PqC271py4==+5Jg~SJ>)59NebTsi1<4ZF~Fj-%ryP514OaUa=K^Y?)AWaBE z^x%wOj2;LF#|Y_ogglELlFwlt=V>1!oeQ`~(KtASOZ3%EmXo-QD-_37(nv5;1zlgG bwF?W#)80!4*Xe&3MLMPE>mKf78Kb`e&|`U{ literal 0 HcmV?d00001 diff --git a/Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.class b/Lab3_1_CalebFontenot/target/classes/com/calebfontenot/lab3_1_calebfontenot/RunwayLength.class new file mode 100644 index 0000000000000000000000000000000000000000..1d457a42f53cf89ab0edc012045206226c27b4a2 GIT binary patch literal 1547 zcmbVM?Q+vb6g`{7mZPfq29g4)fB;t7VrZaEVwzH{qzO2X;?$i^e=uuhiAAJckGu}` zoAfnGXF`Y0^a1)%9qvlbM44pzqnh!4-h1x3=U(qW|Gxhlz#5u1hA?bl#6bZ?hKbkw zkXIru_bbm^uSK94iVs5>>NSSpve&dwVwg;gdOD0Mjetujl2O?B$b#eGV~m|bY4p2V z#0*2BWVldIJwsL5lAWGz=tS_iYQw^Wi9g9OTRzvsYnlkt4rXwHh^QX%Isw~BLU{~U z!X=8oF11M9LlLPU)csZ0#vDGeaM{5XTxFO(rjhexD0B=C0S`E&DiFs|?pHk$%EG4( zTwG(YrTA6*s@IA{DvMvj4ThO4Dh~n?iG=G=$yK-bh;%lejoT<&@Ek1SGlsDfp|`ni z6HG_FAr58V_xvfc|H8o?R2VMB{6N%{47mO&)NNXIHJ7?;c=}$ZR-UOz^`3(-O`cYo zQ6w$gXIKhUTnTt2TCWtzBbBB)x0YVsdwKfsMNhur{ko9*hSo?;?NO5B^-zjuy|^Wk zU7n^rRafNK2PZE~^v%h|lVCf)O7pWvs@xu!mi29%l4 z;N+{oP&#e}QaCiNM<7{0dgiEW|VYHx=pJQmbL6wPj^UJ{6n&=h+zug)D)L-Kj7 zlm-o zx(jus4tkyHS$%RRryO_t9dV9%Uc&63Ud=bt0HVgDs1a&WE#W!C-QBiuV|oqZUhF1m zo4A?i?kknJruHrmlMc0`aB0n`4qN7Vs71Wn6@v*%w<(o8Qv=tq zM9-M{hCmfYk;VtKtI*77E-bzS`#rt>ibit{jNxk~?3{Ik`IUm%UO(PGnJvs<;ZNM6(K}F^bb0$dJ_n9)_aylB z6m*sXU#8dW3XNBB1M~1Gi)Adp$IX=3eaeG^;~~DGd6^#8HGE5CJ@R=(t6}n7#CNnR r5Y`GFqed^3Pqqa{P9TGI8i%lf?`bZP>n8o4VTX1$t$siQKVt3!XJ3ju literal 0 HcmV?d00001 diff --git a/Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..12908b6 --- /dev/null +++ b/Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.class +com/calebfontenot/lab3_1_calebfontenot/Lab3_1_CalebFontenot.class diff --git a/Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..54e1619 --- /dev/null +++ b/Lab3_1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/caleb/NetBeansProjects/ADSV Java/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/Lab3_1_CalebFontenot.java +/home/caleb/NetBeansProjects/ADSV Java/Lab3_1_CalebFontenot/src/main/java/com/calebfontenot/lab3_1_calebfontenot/MilesToKilometers.java diff --git a/Lab4_1/pom.xml b/Lab4_1/pom.xml new file mode 100644 index 0000000..d51fd72 --- /dev/null +++ b/Lab4_1/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + com.calebfontenot.lab4_1 + Lab4_1 + 1.0-SNAPSHOT + jar + + UTF-8 + 18 + 18 + com.calebfontenot.lab4_1.Lab4_1 + + \ No newline at end of file diff --git a/Lab4_1/src/main/java/com/calebfontenot/lab4_1/DisplayTime.java b/Lab4_1/src/main/java/com/calebfontenot/lab4_1/DisplayTime.java new file mode 100644 index 0000000..8159129 --- /dev/null +++ b/Lab4_1/src/main/java/com/calebfontenot/lab4_1/DisplayTime.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 com.calebfontenot.lab4_1; + +/** + * + * @author caleb + */ +import java.util.Scanner; + +public class DisplayTime { + + public static void main(String[] args) + { + Scanner input = new Scanner(System.in); + // Prompt the user for input + System.out.print("Enter an integer for seconds: "); + int seconds = input.nextInt(); + + int minutes = seconds / 60; // Find minutes in seconds + int remainingSeconds = seconds % 60; // Seconds remaining + System.out.println(seconds + " seconds is " + minutes + + " minutes and " + remainingSeconds + " seconds"); + } +} + diff --git a/Lab4_1/src/main/java/com/calebfontenot/lab4_1/Lab4_1.java b/Lab4_1/src/main/java/com/calebfontenot/lab4_1/Lab4_1.java new file mode 100644 index 0000000..ef43b5d --- /dev/null +++ b/Lab4_1/src/main/java/com/calebfontenot/lab4_1/Lab4_1.java @@ -0,0 +1,17 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.calebfontenot.lab4_1; + +/** + * + * @author caleb + */ +public class Lab4_1 { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/Lab4_1/src/main/java/com/calebfontenot/lab4_1/SalesTax.java b/Lab4_1/src/main/java/com/calebfontenot/lab4_1/SalesTax.java new file mode 100644 index 0000000..9b35416 --- /dev/null +++ b/Lab4_1/src/main/java/com/calebfontenot/lab4_1/SalesTax.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 com.calebfontenot.lab4_1; + +/** + * + * @author caleb + */ +import java.util.Scanner; + +public class SalesTax { + public static void main(String[] args) { + Scanner input = new Scanner(System.in); + + System.out.print("Enter purchase amount: "); + double purchaseAmount = input.nextDouble(); + + double tax = purchaseAmount * 0.06; + System.out.println("Sales tax is " + (int)(tax * 100) / 100.0); + } +} + diff --git a/Lab4_1/target/classes/.netbeans_automatic_build b/Lab4_1/target/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/Lab4_1/target/classes/com/calebfontenot/lab4_1/DisplayTime.class b/Lab4_1/target/classes/com/calebfontenot/lab4_1/DisplayTime.class new file mode 100644 index 0000000000000000000000000000000000000000..c875630e33fb810e49d79c7898d73e60e801f214 GIT binary patch literal 1390 zcma)6?QRoC6g`tT*~D3jlaLP}NlgjVh8C9+J{>}fAz(02$&st7KdP}kBtzCS*6tXQ zH{lNt0Y8ES5)aUas(QxjfKj5Vu`+XK?!9Nuy=P|s{^!Fd02_Fm#Rx_NWI~K#Tp;&C zzLcd%n(flF<_pzw0^{r2XtyCSS|~OGObAT(gL+O!rFu&mqvAt||Ps+w-k)m^M)r<_HAoIihBV6kvyNU`Bhm<@3Pb0lJWZu|1!fOO4dDokbv-JN88GVi zgp9S>E*Be~^S2@LI3o}k^~zO!EIU-4VPDUNSj9Pkg^t`+6>D13{jS{(t;9*=5_$^N zYPFcwI*jb8eIKIWc?Eq2kqK}?V6|mCrIw6T^SNbB#yYChT>I;C>7Guyk=)zT9VL*d z*fyu*HEq<>UZ<(zE!m8?GgGt7Zpc{s^7^Dy&bgMJxr z6L0niHyf(G=Jcky!`Fw$3cAqG>W82B`acpF92fqaP)hlzC?d)sb@4PlI?XD`N(xzf<%9gY7p1|v2 z@dtq^=tF7RkxEu;*6#MY<-`3L+W9JRYp<)02p?`)`tr)d*JA)tkx^9FPL(Hck41=s zJDt}_UgQT&EqMFpS|EB_tJ&qLY)oI#PF68|>> zij8rO7r82N7M#Z}yoY$(cmKfAyTPx;j~v4^0GAjHOyVb8=8jK(gAAd7D<2X3@eY&k zd9&YPW@dgLix>B?a(gMa9&K>wUdwQQX?ZU50p9`pIRE9S6~0wq8dI3%?*tYxk7X?2 zEUlk$s!w4pJ%;NmjGf{GT*Fn8Sj1^u!*$lQ%&Z%y#uTX)5?wx=?W8 z1NczlNm@{$;4IGJ+&=!9GoN4Y9{{@8HIPA8L(W7V3k>BEf8@5$!=ZiQj)WI8EF8;F z#$ASNtKHX8fUdzXQH1%Yz4tVZML=C@LPIqt1xaOJMly_haU^)qDPW1gJQKdJn%64w z2bO^{mNisNRI$QPoioLtJtPc2By4NSO$8EEhQm&~uc6M+@Kj)X+!yYh3S$wfn6BX- z-X7Ra>KJk-Y9JU&jts^5BydG^#a*8=6-UuvpGPu@XUSZAFUJg)^AEQ};DAdKS8v_S zQ%7|k4GC49Q)V!FY7%+kR3=J_Q?2{SGr&TPmXn+eSh60ns}$Mf8TtI)8`yJNUL%{7 z0Tb(~O&hR*O^S4EVS6@wl)@|S@v?fyp3+)WOfl*z%6(?WfQVOpFF?3q6ZJa>YUnu!qUyCY3 ziz^uhbAhL;oK;z?>%8^^ucl+L&|~8FGQ^X|nxqOQLcfgx3=$DlCtiQRo_MZ21Z&4I z!|;;S!b{ZZUTK^ABEhSwF7-?zhLbpD;k1o2ILpv~$fgN^p{-`%2){uk5QC_?ax0xG z7_y@_5*TBMN%2N!RlQgdfjZgf{ZC(?{(L*~H9G&Cj zdYeYR=2H76R5lgn-5kuYowRY;P_+V56=`9LVXUO8PKj4U@s*-PrP5Tf;?0-WoIEZ1 z8~hDJB%?NoRd>#nVy#{+3U7l4Jo|ErTnpTD&AhP~(c3QZIG_73a+;v4+!S*t`Qj+& zRDt%nw?$z6$83|juBkljhQ7^*h@iU;OSTYHjDclIS#1*Pc`Wp{+I+%2UKLbbiV({y zs<2pgjs7PNbDuI*CHqCCw68s03myILC>CSLAZuaCRAiZ9JU9S>=B|9L%EAfj92RMr zm$dSB89p|jgoa@Vy29lqDL$T4s$8$7kLuC1@|WYrZcQ9x-Yi*o|I*C|qXCiOl}g^# zBHfM^(kw_kK_VqwKfxI6RdXdX74G}OxA2JJ!jU|Wqi^9c!^po)={X2<#Tc&8(_y|A zP+1YB)}fh0J)^#D;tSa4VEZbyW*hW6T%*?;DQL7Gc5!lDXpKzxrAkd9Y^rD|`VVqu$ zQ4HcXh5`x`h|vBt&8MmFq)T=OcZpV + + 4.0.0 + com.calebfontenot.mp1 + MP1 + 1.0-SNAPSHOT + jar + + UTF-8 + 18 + 18 + com.calebfontenot.mp1.MP1 + + \ No newline at end of file diff --git a/MP1/src/main/java/com/calebfontenot/mp1/MP1.java b/MP1/src/main/java/com/calebfontenot/mp1/MP1.java new file mode 100644 index 0000000..e7abdb9 --- /dev/null +++ b/MP1/src/main/java/com/calebfontenot/mp1/MP1.java @@ -0,0 +1,17 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.calebfontenot.mp1; + +/** + * + * @author caleb + */ +public class MP1 { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/MP1_CalebFontenot/pom.xml b/MP1_CalebFontenot/pom.xml new file mode 100644 index 0000000..bed6bf2 --- /dev/null +++ b/MP1_CalebFontenot/pom.xml @@ -0,0 +1,14 @@ + + + 4.0.0 + com.calebfontenot.mp1_calebfontenot + MP1_CalebFontenot + 1.0-SNAPSHOT + jar + + UTF-8 + 18 + 18 + com.calebfontenot.mp1_calebfontenot.MP1_CalebFontenot + + \ No newline at end of file diff --git a/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Cylinder.java b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Cylinder.java new file mode 100644 index 0000000..666367d --- /dev/null +++ b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Cylinder.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 com.calebfontenot.mp1_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class Cylinder { + public static void main(String[] args) + { + Scanner input = new Scanner(System.in); + + // Enter radius of the cylinder + System.out.print("Enter the radius and length of a cylinder: "); + double radius = input.nextDouble(); + double length = input.nextDouble(); + + // Compute area and volume + double area = radius * radius * 3.14159; + double volume = area * length; + + // Display result + System.out.println("The area is " + area); + System.out.println("The volume of the cylinder is " + volume); + + } +} diff --git a/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/MP1_CalebFontenot.java b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/MP1_CalebFontenot.java new file mode 100644 index 0000000..aaa88eb --- /dev/null +++ b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/MP1_CalebFontenot.java @@ -0,0 +1,17 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/Project/Maven2/JavaApp/src/main/java/${packagePath}/${mainClassName}.java to edit this template + */ + +package com.calebfontenot.mp1_calebfontenot; + +/** + * + * @author caleb + */ +public class MP1_CalebFontenot { + + public static void main(String[] args) { + System.out.println("Hello World!"); + } +} diff --git a/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/NumberOfYears.java b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/NumberOfYears.java new file mode 100644 index 0000000..f1b870e --- /dev/null +++ b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/NumberOfYears.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 com.calebfontenot.mp1_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class NumberOfYears { + public static void main(String[] args) + { + // Define vars + double NumberOfMinutes; + double NumberOfYears; + double NumberOfDays; + double NumberOfHours; + + // Create Scanner + Scanner input = new Scanner(System.in); + + // Prompt for input + System.out.print("Enter the number of minutes: "); + NumberOfMinutes = input.nextDouble(); + + // Calculate + NumberOfHours = (NumberOfMinutes / 60); + NumberOfDays = (NumberOfHours / 24); + NumberOfYears = (NumberOfDays / 365); + + + // Print output + System.out.println((int) NumberOfMinutes+" minutes is approx. :"); + System.out.println((int) NumberOfHours+" hours,"); + System.out.println((int) NumberOfDays+" days,"); + System.out.println((int) NumberOfYears+" years."); + } +} diff --git a/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/SumOfDigits.java b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/SumOfDigits.java new file mode 100644 index 0000000..f4647be --- /dev/null +++ b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/SumOfDigits.java @@ -0,0 +1,34 @@ +/* + * 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.calebfontenot.mp1_calebfontenot; + +/** + * + * @author caleb + */ +public class SumOfDigits { + public static void main(String[] args) + { + java.util.Scanner input = new java.util.Scanner(System.in); + //> Read a number + System.out.print("Inter an integer between 0 and 1000: "); + int number = input.nextInt(); + + //> Find all digits in number + int lastDigit = number % 10; + int remainingNumber = number / 10; + int secondLastDigit = remainingNumber % 10; + remainingNumber = remainingNumber / 10; + int thirdLastDigit = remainingNumber % 10; + + //> Obtain the sum of all digits + int sum = lastDigit + secondLastDigit + thirdLastDigit; + + //>Display results + System.out.println("The sum of all digits in "+ number + + " is " + sum); + } + +} diff --git a/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Total.java b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Total.java new file mode 100644 index 0000000..21e153c --- /dev/null +++ b/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Total.java @@ -0,0 +1,40 @@ +/* + * 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.calebfontenot.mp1_calebfontenot; + +import java.util.Scanner; + +/** + * + * @author caleb + */ +public class Total { + public static void main(String[] args) + { + // Define variables: + double subtotal; + double gratuity; + double total; + + // Get subtotal and gratuity rate + // Setup Scanner + Scanner input = new Scanner(System.in); + + // Get vars + System.out.print("Enter subtotal and gratuity rate: "); + subtotal = input.nextDouble(); + gratuity = input.nextDouble(); + + // Calculate + // Convert gratuity into a decimal because its a percentage: + gratuity = (gratuity / 10); //* 10; + + total = (subtotal + gratuity); + + // Print result + System.out.println("The gratuity is $"+gratuity+" and the total is $"+total); + + } +} diff --git a/MP1_CalebFontenot/target/classes/.netbeans_automatic_build b/MP1_CalebFontenot/target/classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29 diff --git a/MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/Cylinder.class b/MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/Cylinder.class new file mode 100644 index 0000000000000000000000000000000000000000..5a3e8d68e80c652711a3702c2f08be50cf33b1a7 GIT binary patch literal 1516 zcmb7E-EI>{6#gc0b{%JdkRLEjNj4~eO(0wPA52rgCdAZ0T1T!B7ieM+@!;JVYj+$q zFVJV`Ym|#1rBd&D)2HceZ>pZzb%ditm1;|~b7s!@&UgOi&wq}72e5%33K+wjT(! zEY&es9+w$bA1fnb-*kl^^Nt)OK35$-6l%|Oef`Gge)}Mlsw3iiegRkTk&6WnALA;+ z>@mX;P=<-VbwNId^wIa&3Q1n{P$lAKdTu^ z_;n9AaFgM3#CxKuRhye1rRmZxFn`pv+-~bA zX!B6)zR?u8(k6)dcVC}8sSYD%$W?WR$X#eiC7utWT@ml_l+c~d>JV`|2;yLx+sa%{DqKj>Y#s5~NqGkEOGH%m*WPfAS-Si^Sx<*n!Uq;`F zTkpYsO|Ju5?KSAh`Gi(4Q@~w(O41}g!{-EIjsHN79uJ`Y8{C)gF!`QZ{~cy#E*+w{ zdWglkUDk7@Qg05|dh1TnDdu|Xc~U7lM_2(4QL;k*2&<{^fxr!N1WaQJv-F=s5%XB2 z^(M{h8a*f#T*VfaQi2;qmq_3Xd`aIadVIga*F?HVl-F^O$Sx9og?2fzzlQs?a|mSt r-_R~k`V>DSb6_0b(mI9*cu3##w0lHATj}}~4LU23{0uMfJ+AxVd_YR z(i}6yOMC4Urjc@xb}<8YjNW>BNCFzYib#qmeGO-)oIKzxF^E*)%K;* ze!rMT7V{2rF7jAl$WO>(aBi)JAChe8OEl; zZp)o<j7Ce+TwKQN$vB zvt2PT`_W{V$n)rAbSC#-z#gOUGFcl2T&zSkB48D3`(z2nw9J?krXzuMff)DBqIk@r${!2olk9mnBD*Y literal 0 HcmV?d00001 diff --git a/MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/NumberOfYears.class b/MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/NumberOfYears.class new file mode 100644 index 0000000000000000000000000000000000000000..9b086defa7617dddb8c01155432bff8570aa90d8 GIT binary patch literal 1639 zcmb7E>rNX-6#fRV7o1HYhJ;HR;#4HyG{w;L22LrB9SVuLw5Coem8!uEc!RxT?T%6W z68+uRXnqhWmHGhv)%WN-RQ+bxPK-d6y3(GRGw1f5GiT19|GfDFzzTj!p%48I23#bN z6c~9SPi3wy{o~yB!3$M20?9|7@0k^W{<&<$!JxpkNU3GKdahiRzORBIq;SQ7>*6Zj zJLjd`4vlIE^m)F(^-^T%>D-3jY?-nNlx*Zva4=%yUlW*^yHq7xu@OdHjNv+g=oWFk zbG8$Be%IL`#szLY@r?>HrlvA}t8u`sKFTyazhzXooJnC4Qx0yrcptX}M!T4L+z2F^ z)+wWO07WGsV9!6!XDb%+Z5J8b5lH#!r77yxL0v^PDkfLASX+L{)i1i6)4!r!nl$U; zK0Xu}Z^#o>(0)~#=bou?7aHlC(8k=z#%1V@YGHrmV%}nQB6M{>4S{T$S4h&2tb>OF zi&fpoRb^cr9BG!p*Cy9!F8+M}WGgDm_R*e_0V56+^dZp?mpos^qFou~lP+l*R%GB= zzH>NWY95Uqmi~97JVQ04ZG{_i`xjHpRw$RjF`bWIA|}8t?#=iz1w>KcYWK90joamm zvQ1ZS#p}9dlTCQG`4}Pw(A&qvH?pZrO&{*aKsFS+hz6-L4XbL+vp1aXI*)?Q+vcIs zW35eS0@;kM!{H=0Qh17I4oddEHw9**K8tSD^H24O%Ej#zx4@dL8XdF+e(i0zj$-U| zUHXT070#5jK4~@c7t7aka?WtK-Bg#T_f|N5?D^id>$oV$dcEu!l^?`5uT6B{QN{~1 zve^vu%lXXmAifox44Im(@Pk2=*`gwI$nulM{&f=->x|yB7*` zS-uW_6qx>RRSv7TIJkq4`6}$!$0x$kM*0c499O|LasM^MZ;|*@QY!{$*Jq?|tbos9 zU+)l>uuLb`_-_nw3IWHz!`XX2y*@jJ5A>2V;f!HMFC``t zW4NcEQfKy;H<$y?@PN#OLoWB0OORXWa#=Eq5%Uh-JgzY8IH65(0^TH@W`?(s(qPjMn#Kuf;)KMl6Htv@RsGSd?ZIqV&sw|V zw7f}QqxnIkRO$otN%|C3&+L+71gca^p1E^B&OP_eo&EFgcYgrb!cGnPN6ATZ%7fkHEibp1+04M)1A1L+KESy;%M{IdeZ(uFSNw#hJ`!-pu4h(98)Q?T8@ zRqw$vSQNO?P+A7Iqih;vpJGSqpQTiGmCByIQLR?*+F4w}M;0#Uu!LoS`S;w$-~>`b z1I}zG#G=-axU2fLa@$b9l7o$_0+y1$XeN#t)tF;@ujjCe8v=_1=TO#t)phjuu0Eg? zYDei%V4>7#l;euWfeo{db0`^FRz$#47S;qRU4KyNI-cz8`>ag)x-uAU{B%~+8Vz># zAG>|mWJuQio)nmAx=Own4LUN|b2=V1b4{ONZ6|Qe`9zu22QGs)n*TFTjfn=1x#ES= zkLT+tw`q5RKB4C?Ftf|9nFm_q*zwUKbXrBk1w=z&(sM!`RmZ9VX|nPz;?k%IW!G1| z=Bdv#OA5vniEzYu%s-d{3i+zCY8@w}F+Wi5ke0$279q|Gkb{=Q9v-HT?4 zZ^;(68`?r3*D$ZX&Z`JzXyIEvxpReIRF8${0xSRR%KMIs$5oX1buzyRa7K{kdW)wD zcfmci_7>u|$ovUcV+N*hn`G%l?0c%(!lOpcmG9F?DJN$MSzTd^1@F_myX$nv9Ilf>G#&Z*2lKV0(cPJ%@ za~oe#N)qiR?ovw8QbdhXny53lN6Er{BBcZ&!JsX!6L^5Hxn~IckpHJ>@RX(W4Vrj? GOaB0l)r18A literal 0 HcmV?d00001 diff --git a/MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/Total.class b/MP1_CalebFontenot/target/classes/com/calebfontenot/mp1_calebfontenot/Total.class new file mode 100644 index 0000000000000000000000000000000000000000..7ecadedd30726756853e93cc5ae5c552186867c1 GIT binary patch literal 1443 zcma)6Yj4y>6g`t<*Bj$DA%VQ0V4{Sqp^c&CQL>Z*yM!bx4{4)Cs2{4?&5)RQJu7>R z$Uo^%=-2WgNL1<%=#Q#;Y$wV_i4c}NcOK{7d*DTXLC?$g3xbuWfZA+6gJLSa2$MtZ;x4N z?IlL_1cri0;CwUJ479%<^;6R_v68)-4GZI$|FZ%!)l(r}JM%E<;2h4Ah)&7t$k?km zhz^ZaFfB0uBr+;?leA;Bk)bQ2Eq6PXCJoGwTz;blL;dW-wSwM-SfLLRGqh)ca601d;Ocg zAK%%`E-x@r*IQ&Y)(j%`BJFilyeV^@6HQHpwv2;peXu!Vb^;Q*-u!A0HM;1@EWcCL z-%j4aYx7*j+cY|P%CSJ@Fi!%a!R2A582>zdltET5)Gw?LRvw*?KUZc)Z@rSS>?!7* zj_j6B_c8)1-?)B9v@WHSZ&$2dHEC(j) zG7MXRQMC%53S8aXQAb4|B<_O9-+|$F@hb8?0cSmX!SzrkiApSN2rQns|7q8<&=k1z zWhlEx5d&Pob#|KU8v+xGGRGgd@+k#n>DniVzw+Z{j@dETOni<`0l*F1elm3gyb*u-<&c=qHS=SRXMlF}07GS!*Ac*79+~JBN9_vE+5{m3ZvUls<#cb05_s zkMp^uX?mMum$|_4BA>R)ikK($Mcl(u&gK?<(j#u+Hsu@sUCw{zY?$aVqVE#t oV427o`^0@>OM*%u;1`ZVY`(uzR;c=r|0>qFvN>DFGd#!a|A`Z8Jpcdz literal 0 HcmV?d00001 diff --git a/MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..6d7369d --- /dev/null +++ b/MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +com/calebfontenot/mp1_calebfontenot/MP1_CalebFontenot.class +com/calebfontenot/mp1_calebfontenot/Cylinder.class diff --git a/MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..65f8347 --- /dev/null +++ b/MP1_CalebFontenot/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,2 @@ +/home/caleb/NetBeansProjects/ADSV Java/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/Cylinder.java +/home/caleb/NetBeansProjects/ADSV Java/MP1_CalebFontenot/src/main/java/com/calebfontenot/mp1_calebfontenot/MP1_CalebFontenot.java diff --git a/MP1_CalebFontenot/target/test-classes/.netbeans_automatic_build b/MP1_CalebFontenot/target/test-classes/.netbeans_automatic_build new file mode 100644 index 0000000..e69de29