From bbdf5396f1874864d0481de2f587d97465aea667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdlipscomb244=E2=80=9D?= <“dlipscomb244@gmail.com”> Date: Thu, 3 Oct 2024 22:02:41 +0000 Subject: [PATCH 1/6] Feat: Lesson_04 isPrimeNumber Function --- lesson_04/dennislipscomb/README04.md | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 lesson_04/dennislipscomb/README04.md diff --git a/lesson_04/dennislipscomb/README04.md b/lesson_04/dennislipscomb/README04.md new file mode 100644 index 000000000..eeac3d48b --- /dev/null +++ b/lesson_04/dennislipscomb/README04.md @@ -0,0 +1,57 @@ +## Javascript +```Javascript + +function isPrime (num) { + /* first condtion is checking if 7 is less than or equal to 1. */ +if (num <= 1) return false; +/*checking if the number has a remainder or 0 if divided 2 */ +for (let i = 2; i < num; i++) { +if (num% i === 0) +return false; +} +return true;} + + +console.log(isPrime (7)) +``` + +## Java +```Java + +public class PrimeChecker { + + public static boolean isPrime(int num) { + // First condition: check if num is less than or equal to 1 + if (num <= 1) return false; + + // Check for factors from 2 to num - 1 + for (int i = 2; i < num; i++) { + if (num % i == 0) { + return false; + } + } + return true; + } + + public static void main(String[] args) { + System.out.println(isPrime(11)); // Test the function + } +} +``` + +## Explination + +In javascript, the function "isPrime" is checking if the number is less than or equal to 1. if so the fuction will fail. If it passes it will run the next fuction to see if the input has a remainder of 0 if divided by 2. + +In Java, the function "isPrime(int num)" is checking if the number is less than or equal to 1. if the number is indeed greater than or less than it will return false. if true the function will run through a for loop to determine if divided by 2 will the remainder be 0. + + +### Differences + +Java and Javascript have numerous similarites but arent related. Java runs a more strict ruleset with certain elements such capital vs lower case letters where as javascript is more lenient in its functionality. In javascript the print out to test the fuction is console.log where as in Java the print out is system.out.println + + +#### Citing + +I got my Javascript code from a youtube video https://www.youtube.com/watch?v=ZdoiS_qUOSE I took that code and pasted it into https://playcode.io/ to test if the code worked. I had to make a few changes through trial and error. Once i got the correct code, i asked chatGPT to convert the javascript into java. + From f405abed92dff7630330e2d5ad7b08a23e69207f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdlipscomb244=E2=80=9D?= <“dlipscomb244@gmail.com”> Date: Mon, 7 Oct 2024 14:43:25 +0000 Subject: [PATCH 2/6] feat: lesson_05 --- lesson_05/dennislipscomb/README_05.md | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lesson_05/dennislipscomb/README_05.md diff --git a/lesson_05/dennislipscomb/README_05.md b/lesson_05/dennislipscomb/README_05.md new file mode 100644 index 000000000..7df4306df --- /dev/null +++ b/lesson_05/dennislipscomb/README_05.md @@ -0,0 +1,31 @@ +## User Stories + +## Example 0 + +AIR PODS - As a busy professional, I want to connect my AirPods to multiple devices so that I can easily switch between my laptop and phone without the hassle of re-pairing. + +## Acceptance Criteria + +- Be able to pair devices amongst the same appleID +- Recognize when a device is open and audio is in use +- Enable a feature that promps user to connect to a device upon opening it if airpods are in use + +## Example 1 + +APPLE WATCH - As a fitness enthusiast, I want my Apple Watch to track my heart rate and workout metrics in real-time so that I can monitor my performance and stay motivated during my exercises. + +## Acceptance Criteria + +- Provide the user with ability to enter health information for more accurate analysis +- Pulse reading technology to monitor heart rate +- User replicated motions to mimic an actual workout to best replicate progress + +## Example 2 + +iPhone - As a musician, I want my iPhone to have a high-quality audio recording app so that I can capture song ideas and practice sessions quickly and easily, no matter where I am. + +## Acceptance Criteria + +- Enhance micprophone quality for clear and consise vocal recording +- Noise cancelation recording +- Multitalking ablity to play and record music at the same time for more accurate recording From f918d7e27294da611abe3724dea1d570cac686b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdlipscomb244=E2=80=9D?= <“dlipscomb244@gmail.com”> Date: Mon, 7 Oct 2024 14:43:25 +0000 Subject: [PATCH 3/6] feat: lesson_05 --- lesson_05/dennislipscomb/README_05.md | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lesson_05/dennislipscomb/README_05.md diff --git a/lesson_05/dennislipscomb/README_05.md b/lesson_05/dennislipscomb/README_05.md new file mode 100644 index 000000000..7df4306df --- /dev/null +++ b/lesson_05/dennislipscomb/README_05.md @@ -0,0 +1,31 @@ +## User Stories + +## Example 0 + +AIR PODS - As a busy professional, I want to connect my AirPods to multiple devices so that I can easily switch between my laptop and phone without the hassle of re-pairing. + +## Acceptance Criteria + +- Be able to pair devices amongst the same appleID +- Recognize when a device is open and audio is in use +- Enable a feature that promps user to connect to a device upon opening it if airpods are in use + +## Example 1 + +APPLE WATCH - As a fitness enthusiast, I want my Apple Watch to track my heart rate and workout metrics in real-time so that I can monitor my performance and stay motivated during my exercises. + +## Acceptance Criteria + +- Provide the user with ability to enter health information for more accurate analysis +- Pulse reading technology to monitor heart rate +- User replicated motions to mimic an actual workout to best replicate progress + +## Example 2 + +iPhone - As a musician, I want my iPhone to have a high-quality audio recording app so that I can capture song ideas and practice sessions quickly and easily, no matter where I am. + +## Acceptance Criteria + +- Enhance micprophone quality for clear and consise vocal recording +- Noise cancelation recording +- Multitalking ablity to play and record music at the same time for more accurate recording From a4810f6f6040ad1b092909f62e13b93b659f4a92 Mon Sep 17 00:00:00 2001 From: dlipscomb244 Date: Mon, 7 Oct 2024 11:00:08 -0400 Subject: [PATCH 4/6] Delete lesson_04/dennislipscomb/README04.md --- lesson_04/dennislipscomb/README04.md | 57 ---------------------------- 1 file changed, 57 deletions(-) delete mode 100644 lesson_04/dennislipscomb/README04.md diff --git a/lesson_04/dennislipscomb/README04.md b/lesson_04/dennislipscomb/README04.md deleted file mode 100644 index eeac3d48b..000000000 --- a/lesson_04/dennislipscomb/README04.md +++ /dev/null @@ -1,57 +0,0 @@ -## Javascript -```Javascript - -function isPrime (num) { - /* first condtion is checking if 7 is less than or equal to 1. */ -if (num <= 1) return false; -/*checking if the number has a remainder or 0 if divided 2 */ -for (let i = 2; i < num; i++) { -if (num% i === 0) -return false; -} -return true;} - - -console.log(isPrime (7)) -``` - -## Java -```Java - -public class PrimeChecker { - - public static boolean isPrime(int num) { - // First condition: check if num is less than or equal to 1 - if (num <= 1) return false; - - // Check for factors from 2 to num - 1 - for (int i = 2; i < num; i++) { - if (num % i == 0) { - return false; - } - } - return true; - } - - public static void main(String[] args) { - System.out.println(isPrime(11)); // Test the function - } -} -``` - -## Explination - -In javascript, the function "isPrime" is checking if the number is less than or equal to 1. if so the fuction will fail. If it passes it will run the next fuction to see if the input has a remainder of 0 if divided by 2. - -In Java, the function "isPrime(int num)" is checking if the number is less than or equal to 1. if the number is indeed greater than or less than it will return false. if true the function will run through a for loop to determine if divided by 2 will the remainder be 0. - - -### Differences - -Java and Javascript have numerous similarites but arent related. Java runs a more strict ruleset with certain elements such capital vs lower case letters where as javascript is more lenient in its functionality. In javascript the print out to test the fuction is console.log where as in Java the print out is system.out.println - - -#### Citing - -I got my Javascript code from a youtube video https://www.youtube.com/watch?v=ZdoiS_qUOSE I took that code and pasted it into https://playcode.io/ to test if the code worked. I had to make a few changes through trial and error. Once i got the correct code, i asked chatGPT to convert the javascript into java. - From 288309bef7b1820423b7621139fea4596b586b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdlipscomb244=E2=80=9D?= <“dlipscomb244@gmail.com”> Date: Mon, 7 Oct 2024 15:41:36 +0000 Subject: [PATCH 5/6] lesson_05Quiz --- lesson_05/quiz/src/lesson5.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lesson_05/quiz/src/lesson5.ts b/lesson_05/quiz/src/lesson5.ts index 9ad62bd67..74ec75628 100644 --- a/lesson_05/quiz/src/lesson5.ts +++ b/lesson_05/quiz/src/lesson5.ts @@ -38,7 +38,7 @@ export class Lesson5 { [AnswerChoice.C, "To insert an image"], [AnswerChoice.D, "To create a paragraph"], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.B, ); } @@ -52,7 +52,7 @@ export class Lesson5 { [AnswerChoice.C, "alt"], [AnswerChoice.D, "href"], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.C, ); } @@ -66,7 +66,7 @@ export class Lesson5 { [AnswerChoice.C, "
"], [AnswerChoice.D, ""], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.B, ); } @@ -80,7 +80,7 @@ export class Lesson5 { [AnswerChoice.C, ""], [AnswerChoice.D, "
"], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.B, ); } @@ -94,7 +94,7 @@ export class Lesson5 { [AnswerChoice.C, "Computer Style Sheets"], [AnswerChoice.D, "Cascading System Sheets"], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.B, ); } @@ -108,7 +108,7 @@ export class Lesson5 { [AnswerChoice.C, "text-color"], [AnswerChoice.D, "background-color"], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.B, ); } @@ -122,7 +122,7 @@ export class Lesson5 { [AnswerChoice.C, "/* this is a comment */"], [AnswerChoice.D, ""], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.C, ); } @@ -136,7 +136,7 @@ export class Lesson5 { [AnswerChoice.C, "text-size"], [AnswerChoice.D, "text-style"], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.B, ); } @@ -150,7 +150,7 @@ export class Lesson5 { [AnswerChoice.C, "inline-block"], [AnswerChoice.D, "none"], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.B, ); } @@ -164,7 +164,7 @@ export class Lesson5 { [AnswerChoice.C, ""], [AnswerChoice.D, ""], ]), - AnswerChoice.UNANSWERED, + AnswerChoice.A, ); } } From 5aaa8e9d98c38e834419fddd36342e939345ffde Mon Sep 17 00:00:00 2001 From: "Anthony D. Mays" Date: Fri, 11 Oct 2024 04:41:06 +0000 Subject: [PATCH 6/6] chore: revert quiz file changes before submit Signed-off-by: Anthony D. Mays --- lesson_05/quiz/src/lesson5.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lesson_05/quiz/src/lesson5.ts b/lesson_05/quiz/src/lesson5.ts index 74ec75628..9ad62bd67 100644 --- a/lesson_05/quiz/src/lesson5.ts +++ b/lesson_05/quiz/src/lesson5.ts @@ -38,7 +38,7 @@ export class Lesson5 { [AnswerChoice.C, "To insert an image"], [AnswerChoice.D, "To create a paragraph"], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); } @@ -52,7 +52,7 @@ export class Lesson5 { [AnswerChoice.C, "alt"], [AnswerChoice.D, "href"], ]), - AnswerChoice.C, + AnswerChoice.UNANSWERED, ); } @@ -66,7 +66,7 @@ export class Lesson5 { [AnswerChoice.C, "
"], [AnswerChoice.D, ""], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); } @@ -80,7 +80,7 @@ export class Lesson5 { [AnswerChoice.C, ""], [AnswerChoice.D, "
"], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); } @@ -94,7 +94,7 @@ export class Lesson5 { [AnswerChoice.C, "Computer Style Sheets"], [AnswerChoice.D, "Cascading System Sheets"], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); } @@ -108,7 +108,7 @@ export class Lesson5 { [AnswerChoice.C, "text-color"], [AnswerChoice.D, "background-color"], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); } @@ -122,7 +122,7 @@ export class Lesson5 { [AnswerChoice.C, "/* this is a comment */"], [AnswerChoice.D, ""], ]), - AnswerChoice.C, + AnswerChoice.UNANSWERED, ); } @@ -136,7 +136,7 @@ export class Lesson5 { [AnswerChoice.C, "text-size"], [AnswerChoice.D, "text-style"], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); } @@ -150,7 +150,7 @@ export class Lesson5 { [AnswerChoice.C, "inline-block"], [AnswerChoice.D, "none"], ]), - AnswerChoice.B, + AnswerChoice.UNANSWERED, ); } @@ -164,7 +164,7 @@ export class Lesson5 { [AnswerChoice.C, ""], [AnswerChoice.D, ""], ]), - AnswerChoice.A, + AnswerChoice.UNANSWERED, ); } }