diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..9eca0e4 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md deleted file mode 100644 index 400b65b..0000000 --- a/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# readingnotes -Code 201 - Foundations of Software Development -## Welcome to my readingnotes! -Here will be all my notes, demos, and learning trials for _class201_ -I am so **excited** to be here! -We ~~NOT~~ give up in this class -***I can't wait tp learn!*** diff --git a/class-01.md b/class-01.md deleted file mode 100644 index 8b13789..0000000 --- a/class-01.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/index.html b/index.html new file mode 100644 index 0000000..4647060 --- /dev/null +++ b/index.html @@ -0,0 +1,89 @@ + + + + Welcome to Seattle! + + + +
+

+ Class Lab 1 +

+
+
+

+ Have you been to Pike Place Market? +

+

+ Have you heard of a city called Seattle? + +

+ +

+ Have you ever seen a fish get thrown across the room? + +

+ +

+ Would you be willing to travel to this wet city for some excitment?! + +

+
+ + +
+ +
+ + + \ No newline at end of file diff --git a/lab5a/index.html/app.js b/lab5a/index.html/app.js new file mode 100644 index 0000000..e69de29 diff --git a/lab5a/index.html/index.html b/lab5a/index.html/index.html new file mode 100644 index 0000000..e69de29 diff --git a/lab5a/index.html/tests.js b/lab5a/index.html/tests.js new file mode 100644 index 0000000..f227665 --- /dev/null +++ b/lab5a/index.html/tests.js @@ -0,0 +1,51 @@ +'use strict'; + +// You should not modify anything in this file, but feel free to look through it! + +function testSum() { //eslint-disable-line + if (sum(4,7)[0] === 11 && sum(4,7)[1] === 'The sum of 4 and 7 is 11.') { + console.log('%c TEST FOR sum() PASSES', 'color: green'); + } else { + console.log('%c TEST FOR sum() FAILS', 'color: red'); + } +} + +function testMultiply() { //eslint-disable-line + if (multiply(5,9)[0] === 45 && multiply(5,9)[1] === 'The product of 5 and 9 is 45.') { + console.log('%c TEST FOR multiply() PASSES', 'color: green'); + } else { + console.log('%c TEST FOR multiply() FAILS', 'color: red'); + } +} + +function testSumAndMultiply() { //eslint-disable-line + if (sumAndMultiply(4, 7, 5)[0] === 16 && sumAndMultiply(4, 7, 5)[1] === 140 && sumAndMultiply(4, 7, 5)[2] === '4 and 7 and 5 sum to 16.' && sumAndMultiply(4, 7, 5)[3] === 'The product of 4 and 7 and 5 is 140.') { + console.log('%c TEST FOR sumAndMultiply() PASSES', 'color: green'); + } else { + console.log('%c TEST FOR sumAndMultiply() FAILS', 'color: red'); + } +} + +function testSumArray() { //eslint-disable-line + if (sumArray(testArray)[0] === 9 && sumArray(testArray)[1] === '2,3,4 was passed in as an array of numbers, and 9 is their sum.') { + console.log('%c TEST FOR sumArray() PASSES', 'color: green'); + } else { + console.log('%c TEST FOR sumArray() FAILS', 'color: red'); + } +} + +function testMultiplyArray() { //eslint-disable-line + if (multiplyArray(testArray)[0] === 24 && multiplyArray(testArray)[1] === 'The numbers 2,3,4 have a product of 24.') { + console.log('%c TEST FOR multiplyArray() PASSES', 'color: green'); + } else { + console.log('%c TEST FOR multiplyArray() FAILS', 'color: red'); + } +} + +function testMultiplyAnyArray() { //eslint-disable-line + if (multiplyAnyArray(testDynamicArray)[0] === 120 && multiplyAnyArray(testDynamicArray)[1] === 'The numbers 1,2,3,4,5 have a product of 120.') { + console.log('%c TEST FOR multiplyAnyArray() PASSES', 'color: green'); + } else { + console.log('%c TEST FOR multiplyAnyArray() FAILS', 'color: red'); + } +} diff --git a/prompt-engineering.md b/prompt-engineering.md deleted file mode 100644 index f73a30c..0000000 --- a/prompt-engineering.md +++ /dev/null @@ -1,6 +0,0 @@ -# Question -**WHY** are social workers so underpaid? - -## Answer - -Public Funding: Many social workers are employed by government agencies or non-profit organizations that heavily rely on public funding. Fluctuations in public budgets can impact the available resources for salaries.