first commit

This commit is contained in:
Jonathan Turner 2024-01-24 01:02:14 -05:00
commit 2879dd093c
8 changed files with 120 additions and 0 deletions

29
.gitignore vendored Normal file
View File

@ -0,0 +1,29 @@
### IntelliJ IDEA ###
out/
!**/src/main/**/out/
!**/src/test/**/out/
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="19" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/CS4306_Homework_1.iml" filepath="$PROJECT_DIR$/CS4306_Homework_1.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

11
CS4306_Homework_1.iml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

2
src/AnagramsCheck.java Normal file
View File

@ -0,0 +1,2 @@
package PACKAGE_NAME;public class AnagramsCheck {
}

50
src/LockerDoors.java Normal file
View File

@ -0,0 +1,50 @@
// Name: Jonathan Turner
// Class: CS 4306/01
// Term: Spring 2024
// Instructor: Dr. Haddad
// Assignment: 1
// IDE Name: IntelliJ
/*
Algorithm Design Block
Algorithm title: Find and print the smallest number in a list of numbers
Logical steps:
Step 1: Declare a variable to hold the smallest number.
Step 2: Set the smallest number variable to the first number in the list.
Step 2: Set a loop to check for a smaller number in the remainder of the list.
Update the smallest number variable if a smaller value is found.
Step 4: Print out the smallest number.
Pseudocode syntax:
Algorithm: Find and print smallest number in a list of numbers
Input: Non-empty List (L) of numbers
Output: Smallest number in list L
Begin
Smallest <- L[1];
for i <- 2 to L.length do
if (L[i] < Smallest)
Smallest <- L[i];
End Loop
Print out Smallest;
End;
******************************************/
public class Main {
}
class Locker {
public boolean isOpen;
Locker() {
isOpen = false;
}
public void toggle() {
isOpen = !isOpen;
}
}