From 2879dd093c7126c69494e5ee4f7b9040d624bd3f Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Wed, 24 Jan 2024 01:02:14 -0500 Subject: [PATCH] first commit --- .gitignore | 29 ++++++++++++++++++++++++ .idea/.gitignore | 8 +++++++ .idea/misc.xml | 6 +++++ .idea/modules.xml | 8 +++++++ .idea/vcs.xml | 6 +++++ CS4306_Homework_1.iml | 11 ++++++++++ src/AnagramsCheck.java | 2 ++ src/LockerDoors.java | 50 ++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 120 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 CS4306_Homework_1.iml create mode 100644 src/AnagramsCheck.java create mode 100644 src/LockerDoors.java diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f68d109 --- /dev/null +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -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 diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..03f397c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8cdfad4 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CS4306_Homework_1.iml b/CS4306_Homework_1.iml new file mode 100644 index 0000000..c90834f --- /dev/null +++ b/CS4306_Homework_1.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/AnagramsCheck.java b/src/AnagramsCheck.java new file mode 100644 index 0000000..3931b1d --- /dev/null +++ b/src/AnagramsCheck.java @@ -0,0 +1,2 @@ +package PACKAGE_NAME;public class AnagramsCheck { +} diff --git a/src/LockerDoors.java b/src/LockerDoors.java new file mode 100644 index 0000000..2fb4c36 --- /dev/null +++ b/src/LockerDoors.java @@ -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; + } +} \ No newline at end of file