From aa7d361a05bb259c32dde73df03f0537afd08f0c Mon Sep 17 00:00:00 2001 From: Jeremy Taubman <56704648+taubman33@users.noreply.github.com> Date: Wed, 17 Jan 2024 13:29:42 -0500 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba50551..69b4e92 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## JSDR213 +## SEBR 0116 # Conditionals and Loops Lab From e77ed243d8291565ddc015db2ec2bbf13fc96a0e Mon Sep 17 00:00:00 2001 From: Jeremy Taubman <56704648+taubman33@users.noreply.github.com> Date: Wed, 17 Jan 2024 16:21:59 -0500 Subject: [PATCH 2/4] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 69b4e92..1644433 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,12 @@ Run a For Loop that starts at 0, ends at 10, and logs each number squared (your Create an array of foods, then loop through them. Run a conditional in your loop with the charAt[0] method so that you are only logging to your console foods that start with the letter F -## 8 - Even and Odd Numbers +## Bonus 8 - Even and Odd Numbers Run a loop that goes between 20 and 40, but only logs Even numbers. Then create a new loop that does the same for Odds -## 9 - FizzBuzz! + +## Bonus 9 - FizzBuzz! A coding classic, run a loop that counts and logs every number between 1 and 30. If a number is divisible by 3, log "Fizz", if it is divisible by 5, log "Buzz", and if it is divisible by 3 and 5, log "FizzBuzz" From 6e264582424fcb8afdc897136a78a9466acb356f Mon Sep 17 00:00:00 2001 From: CV2Tre Date: Wed, 17 Jan 2024 16:34:52 -0500 Subject: [PATCH 3/4] inital commit --- script.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 script.js diff --git a/script.js b/script.js new file mode 100644 index 0000000..e69de29 From 4cbfca42dcd985e632632e64ae11346750ff2921 Mon Sep 17 00:00:00 2001 From: CV2Tre Date: Thu, 18 Jan 2024 09:29:35 -0500 Subject: [PATCH 4/4] hw submission --- script.js | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/script.js b/script.js index e69de29..85c3350 100644 --- a/script.js +++ b/script.js @@ -0,0 +1,51 @@ +let Temperature = 80; +if (Temperature > 75) { + console.log("It is warm"); +} else { + console.log("It is cold") +} + +let softballTeamName =["Bill", "John", "Jim", "Tony", "Sam", "Caleb", "Carl", "Phil", "Lance"] +if (softballTeamName.length>=9){ + console.log("Play ball!") +} else{ + console.log("Not enough players") +} + + +let grade = 88; +if ((numericGrade)){ + console.log("Please enter a valid grade"); +if (numericGrade >= 90) { + console.log("A"); +} else if (numericGrade >=80) { + console.log("B"); +} else if (numericGrade >= 70) { + console.log("C"); +} else if (numericGrade >=60) { + console.log("D"); +} else { + console.log("Failing mark"); +} +} + +let checkingAccount = 2000.00 +let savingsAccount = 3000.00 +const actionType = ['Withdraw', 'Deposit', 'Transfer'] +switch(actionType[1]) { + case 'Withdraw': + console.log(`Checking Account: $${checkingAccount - 100}`); + console.log(`Savings Account: $${savingsAccount}`); + break; + case 'Deposit': + console.log(`Checking Account: $ ${checkingAccount + 100.00}`); + console.log(`Savings Account: $${savingsAccount}`); + break; + case 'Transfer': + console.log(`Checking Account: $ ${checkingAccount - 100.00}`); + console.log(`Savings Account: $${savingsAccount + 100.00}`); + break; + default: + console.log('Error: Invalid Entry'); + } +