lab10 go brrr

This commit is contained in:
2022-10-06 09:41:43 -05:00
parent 7d14b1b962
commit f298dfd268
21 changed files with 2159 additions and 13 deletions

View File

@@ -1,13 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/TwoLargerOfThe3.java</file>
<file>file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/ProgrammingExam1_CalebFontenot.java</file>
<file>file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/QuotientAndRemainderOfNumbersInAnyOrder.java</file>
<file>file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/LeapYear.java</file>
<file>file:/C:/Users/ar114/Documents/NetBeansProjects/ProgrammingExam1_CalebFontenot/src/programmingexam1_calebfontenot/QuotientAndRemainder.java</file>
</group>
</open-files>
</project-private>
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group/>
</open-files>
</project-private>

View File

@@ -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);
}