├── .gitignore ├── Class_Lectures ├── cssFoundationLesson.md └── htmlFoundationLesson.md ├── unit 4_javascript ├── asyncReviewJan31.js ├── feDev │ ├── logic.js │ ├── index.html │ └── logicInstructions.js ├── loops.js ├── countdownLoop.html ├── asyncReviewJan17.js ├── forloops.js ├── asyncReviewJan24.js ├── calculator.js ├── jsArrayMethods.js ├── whileLoops.js ├── asyncReviewJan10.js ├── postHolidayReview.js ├── asyncReviewFeb7.js ├── javaScriptLoops.js └── asyncReviewJan31.py ├── .vscode └── settings.json ├── v-petGifs ├── IdleDog.gif ├── ClappingDog.gif ├── DancingDog.gif └── JumpingDog.gif ├── functionInstructionJs1.png ├── functionInstructionJs2.png ├── functionInstructionPython1.png ├── functionInstructionPython2.png ├── Async_Activities ├── cssGridPractice.png ├── restuarantWebsite.png ├── asyncActivitySept27.md ├── asyncActivityOct18.md ├── asyncActivityJan17.md ├── asyncActivityFeb7.md ├── asyncActivityJan10.md ├── asyncActivityDec6.md ├── asynActivityDec13.md ├── asyncActivitiyNov8.md ├── asyncActivityNov1.md ├── asynActivityNov15.md ├── asyncActivityJan24.md └── asyncActivityJan31.md ├── Q1_ExtraCredit ├── exampleFootball.jpg ├── importImg.html └── ExtraCreditPrompts.md ├── python_122.py ├── unit 1 ├── githubProfileReview.md ├── attributePractice.html ├── htmlStylePractice.html ├── aboutme.txt └── ayncActivityDemo.html ├── functionPractice.txt ├── unit 4_python ├── asyncReviewJan24.py ├── forLoops.py ├── postHolidayReview.py ├── asyncReviewJan17.py ├── loops.py ├── problemSolving.py ├── listFunctions.py ├── pythonLoops.py ├── asyncReviewJan10.py └── whileLoops.py ├── unit3_javascript ├── functionPractice │ ├── home.html │ └── functions.js ├── jsConditionalReview.js ├── handsOnFunctions.js ├── asnycActivity_nov1.js ├── asnycReviewDec13.js ├── dec6AsyncReview.js ├── jsFoundation.js ├── asyncReviewNov15.js ├── asyncActivityNov8.js └── operatorReview.js ├── Class_Projects ├── restuarantProject_example │ ├── groupLog.txt │ ├── restuarantPitch.txt │ └── IansDonutsCleaners.html └── RestuarantProject_instructions.md ├── unit 2 ├── cssGrid.html ├── asyncGridReview.html ├── cssIntroduction.html └── OfficeHours_optional_Assignment.html ├── unit3_python ├── restuarantOrderFunction.py ├── pythonConditionalReview.py ├── asyncReviewDec13.py ├── asyncDec6Revirew.py ├── operatorReview.py ├── asyncActivity_nov1.py ├── functions.py ├── asyncActivityNov8.py ├── handsOnFunctions.py ├── pythonFoundation.py └── asnycActivityReviewNov15.py ├── holidayExtraCredit.md ├── restuarant_project_page.html ├── ClassPresentationGuide.md ├── pythonDataTypes.py ├── extraCredit_Nov25.md ├── jsPopQuiz_6thPeriod.js ├── jsPractice.js ├── spadesUi.html ├── spadesUi2v2.html └── spades2v2.html ├── README.MD └── q2QuizAlt.md /.gitignore: -------------------------------------------------------------------------------- 1 | /classActivities -------------------------------------------------------------------------------- /Class_Lectures/cssFoundationLesson.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /unit 4_javascript/asyncReviewJan31.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5513 3 | } -------------------------------------------------------------------------------- /v-petGifs/IdleDog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/v-petGifs/IdleDog.gif -------------------------------------------------------------------------------- /functionInstructionJs1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/functionInstructionJs1.png -------------------------------------------------------------------------------- /functionInstructionJs2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/functionInstructionJs2.png -------------------------------------------------------------------------------- /v-petGifs/ClappingDog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/v-petGifs/ClappingDog.gif -------------------------------------------------------------------------------- /v-petGifs/DancingDog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/v-petGifs/DancingDog.gif -------------------------------------------------------------------------------- /v-petGifs/JumpingDog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/v-petGifs/JumpingDog.gif -------------------------------------------------------------------------------- /functionInstructionPython1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/functionInstructionPython1.png -------------------------------------------------------------------------------- /functionInstructionPython2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/functionInstructionPython2.png -------------------------------------------------------------------------------- /Async_Activities/cssGridPractice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/Async_Activities/cssGridPractice.png -------------------------------------------------------------------------------- /Q1_ExtraCredit/exampleFootball.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/Q1_ExtraCredit/exampleFootball.jpg -------------------------------------------------------------------------------- /Async_Activities/restuarantWebsite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BlackTechPhilly/BTP_BoysLatin_Fall24_Coding-1/HEAD/Async_Activities/restuarantWebsite.png -------------------------------------------------------------------------------- /unit 4_javascript/feDev/logic.js: -------------------------------------------------------------------------------- 1 | console.log("JS file connected"); 2 | 3 | document.getElementById("personalMsg").innerHTML = 4 | "Welcome to front end development."; 5 | 6 | -------------------------------------------------------------------------------- /unit 4_javascript/loops.js: -------------------------------------------------------------------------------- 1 | // For Loops 2 | // 3 PARTS, iterator, condition, incrementor/decrementor 3 | // for in - FOR item IN LIST/OBJ, do this 4 | 5 | // While Loops 6 | -------------------------------------------------------------------------------- /python_122.py: -------------------------------------------------------------------------------- 1 | # python version 2 | def mystery_function(x): 3 | numbers = [1,2,3,4,5,6,7,8,9,10] 4 | i = 0 5 | for i in numbers: 6 | print(i * x) 7 | 8 | mystery_function(2) -------------------------------------------------------------------------------- /Q1_ExtraCredit/importImg.html: -------------------------------------------------------------------------------- 1 | ! 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /unit 1/githubProfileReview.md: -------------------------------------------------------------------------------- 1 | ## Github Profile Review 2 | 3 | Please visit the following link and complete the form. 4 | 5 | [Github Profile Form Link](https://forms.gle/xKSA6TnsgxdDjuZE7) 6 | 7 | -------------------------------------------------------------------------------- /unit 4_javascript/feDev/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | FE Development 5 | 6 | 7 |

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /unit 4_javascript/countdownLoop.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Loops 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /functionPractice.txt: -------------------------------------------------------------------------------- 1 | For JS the lesson is going to be about writting functions 2 | and connecting functions to HTML- being able to see the data 3 | output in html. goal should be to create simple function to do math 4 | as well as enter text 5 | 6 | For Python, be able to output text and do math. 7 | 8 | show them how to use input function -------------------------------------------------------------------------------- /unit 4_python/asyncReviewJan24.py: -------------------------------------------------------------------------------- 1 | numberList = [1,23,56,3,56,3,20,200] 2 | 3 | # Create a function that uses a 4 | # while loop to print/ console.log 5 | # the list but in reverse order. 6 | 7 | # numberList.reverse() 8 | # print(numberList) 9 | 10 | def numberReverseLoop(): 11 | listNumberCount= 7 12 | 13 | while listNumberCount >= 0: 14 | print(numberList[listNumberCount]) 15 | listNumberCount -=1 16 | 17 | numberReverseLoop() -------------------------------------------------------------------------------- /unit 1/attributePractice.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HTML Tutorial 6 | 7 | 8 | 9 |
10 |
11 | 13 | 14 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /unit3_javascript/functionPractice/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

JavaScript Banking Practice App

8 | 9 |
10 |
11 | 12 |
13 | email password 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /Class_Projects/restuarantProject_example/groupLog.txt: -------------------------------------------------------------------------------- 1 | 10/7/2024 2 | - Ian searched for images for our food menu. 3 | - John setup the the HTML page and found the html elements we can use for our site. 4 | - Michael began writing our project pitch. 5 | - Robin helped with finding HTML elements and CSS styling properties to use in our project. 6 | 7 | 10/8/2024 8 | - Ian found a landing image and menu item images. 9 | - John and Michale worked on figuring out how to create the menu item cards 10 | - Robin continued working on the project pitch document. Specifically he worked to make sure it meets the project critiera. 11 | 12 | 10/9/2024 13 | 14 | 10/10/2024 15 | 16 | 10/11/2024 -------------------------------------------------------------------------------- /unit 2/cssGrid.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | CSS Grid 5 | 17 |
18 | 19 | 20 |
1
21 |
2
22 |
3
23 |
4
24 |
5
25 |
6
26 |
7
27 |
8
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /unit 4_javascript/asyncReviewJan17.js: -------------------------------------------------------------------------------- 1 | // 1 . Reverse the order of the array 2 | campingSupplies = ['tent', 3 | 'sleeping bag', 4 | 'flash light', 5 | 'camping knife'] 6 | 7 | reverseCampingList= campingSupplies.reverse(); 8 | //console.log(reverseCampingList); 9 | 10 | // 2. add a new elemen to camping array 11 | reverseCampingList.push('water bottle') 12 | // console.log(reverseCampingList) 13 | 14 | // 3 . combine the array above with the array below: 15 | var campingFood = ['marshmellows', 16 | 'gram crackers','chocolate', 17 | 'chicken hot dogs','water',] 18 | 19 | var allCampingGear = reverseCampingList.concat(campingFood) 20 | console.log(allCampingGear) 21 | -------------------------------------------------------------------------------- /unit 4_javascript/forloops.js: -------------------------------------------------------------------------------- 1 | // For Loop = is a type of loop that iterates through 2 | // a list. 3 | // A list has a finite loop; it has a start point 4 | // and an end point; these are typcially the first 5 | // and last item in the list. 6 | 7 | let groceryList = ["apple", "mango", "water", "cereal", "beef"]; 8 | let i = 0; 9 | for (i; i < groceryList.length; i += 1) { 10 | console.log("this is a " + groceryList[i]); 11 | } 12 | 13 | let gradeBookList = [80, 70, 74, 68, 93, 92, 100, 70]; 14 | let x = 0; 15 | for (x; x < gradeBookList.length; x += 1) { 16 | if (gradeBookList[x] < 75) { 17 | gradeBookList[x] + 5; 18 | console.log(gradeBookList[x]) 19 | } 20 | //console.log(gradeBookList[x]); 21 | } 22 | -------------------------------------------------------------------------------- /unit 4_javascript/asyncReviewJan24.js: -------------------------------------------------------------------------------- 1 | var numberList = [1, 23, 56, 3, 56, 3, 20, 200] 2 | 3 | // Create a function that uses a while loop to print/ console.log 4 | // the list but in reverse order. 5 | 6 | reverseNumberList = numberList.reverse() 7 | console.log(reverseNumberList) 8 | 9 | function reverseNumbers(){ 10 | var ListNumber = 7 11 | while( ListNumber >= 0 ){ 12 | console.log(numberList[ListNumber]) 13 | ListNumber -=1 14 | } 15 | } 16 | 17 | reverseNumbers() 18 | 19 | function runLoop() { 20 | var input = document.getElementById("userInput").value; 21 | 22 | while ( input >= 0 ){ 23 | console.log('countdown') 24 | console.log(input) 25 | input -=1 26 | } // variable. 27 | } 28 | -------------------------------------------------------------------------------- /unit 4_python/forLoops.py: -------------------------------------------------------------------------------- 1 | # FOR LOOP is a type of loop that iterates over 2 | # a list. 3 | 4 | # A for loop does not repeat 5 | # itself infinitely (or atleast it shouldnt) 6 | # it will loop through the length of the list. 7 | 8 | # numbers = [1,2,3,4,5,6,7,8,9,10] 9 | # for x in numbers: 10 | # print(x) 11 | # print('loop is repeating...') 12 | # if x ==10: 13 | # print('Loop has stopped.') 14 | 15 | 16 | # groceryList = ['apple','orange','beef','bread','orange','water'] 17 | 18 | # for item in groceryList: 19 | # if item == 'orange': 20 | # continue 21 | # print(item) 22 | 23 | 24 | gradeList = [100,50,70,80,80,95,70,50] 25 | 26 | for grade in gradeList: 27 | if grade < 75: 28 | grade += 5 29 | print(grade) -------------------------------------------------------------------------------- /unit 1/htmlStylePractice.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HTML Tutorial 6 | 7 | 8 | 9 |
nav bar
10 |
11 | 17 |
18 |
23 | 24 | 2K18 25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /Async_Activities/asyncActivitySept27.md: -------------------------------------------------------------------------------- 1 | ## Async Friday Activity September 27th 2 | 3 | Inside of you unit 2 folder,create a html document and name the file asyncActivity_sept27.html. 4 | 5 | Used what we've learned in class about html and css and try to emulate/ copy developing and designing this page. 6 | 7 | Your website will be graded based on the following criteria: 8 | 9 | - Did you name your document courrectly? 10 | - Did you put your assignment in the correct unit folder? 11 | - Does your page feature a navbar? 12 | - Does your page feature a landing image? 13 | - Does your page feature a menu of food items with prices? 14 | 15 | ### Once complete, make sure to publish your work to github. 16 | 17 | ![Ian's Restuarant Image](restuarantWebsite.png) 18 | 19 | 20 | ### This assignment is due at the end of class 21 | -------------------------------------------------------------------------------- /unit 2/asyncGridReview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16 | 17 | 18 |
1
19 |
20 |
2
21 |
3
22 |
23 |
4
24 |
5
25 |
6
26 |
7
27 | 28 | 29 | -------------------------------------------------------------------------------- /unit 4_javascript/calculator.js: -------------------------------------------------------------------------------- 1 | // 1 .Create a function to store the instructions. 2 | 3 | // 2 .Create a variable or input function to take in the numbers 4 | 5 | // 3. We will need and if / else conditional statement to check the arithmetic operators. 6 | 7 | // 4. Based on the symbol that will be the operation we will do with the two numbers. 8 | 9 | function calculate(numberA, arithmeticOperator, numberB) { 10 | if (arithmeticOperator == "+") { 11 | console.log("we are doing addition"); 12 | var result = numberA + numberB; 13 | console.log(result); 14 | } else if (arithmeticOperator == "-") { 15 | console.log("we are doing subtraction"); 16 | var result = numberA - numberB; 17 | console.log(result); 18 | } else { 19 | console.log("somthing went wrong."); 20 | } 21 | } 22 | 23 | calculate(10, "+", 20); 24 | maj the Geo -------------------------------------------------------------------------------- /Async_Activities/asyncActivityOct18.md: -------------------------------------------------------------------------------- 1 | ## Async Friday Activity October 18th, 2024 2 | 3 | ### Instructions 4 | Inside of your Unit 2 folder, create a new file called asyncActivity_Oct18.html. 5 | Read the W3Schools article on CSS grid and the CSS grid container (Link provided below). 6 | Once you have completed reading the articles, apply what you've learned try and recreate the 7 | layout below. 8 |
9 | This assignment will be do by the end of class. 10 | You are permitted to work with other students. 11 | 12 | ***Remember to do your best!*** 13 | 14 | ### Links to read 15 | 16 | [W3Schools CSS Grid Intro](https://www.w3schools.com/css/css_grid.asp) 17 |
18 | [W3Schools CSS Grid Container](https://www.w3schools.com/css/css_grid_container.asp) 19 | 20 | ### Screenshot of what you need to create/ code 21 | ![CSS Grid Container Practice Example](cssGridPractice.png) 22 | -------------------------------------------------------------------------------- /unit 4_javascript/feDev/logicInstructions.js: -------------------------------------------------------------------------------- 1 | // 1. Inside of your Unit 4 folder, create a new 2 | // folder called feDev. 3 | 4 | // 2. Inside of the new feDev folder, create two files. 5 | //- A HTML file with named index.html. 6 | // - A JavaScript called logic.js. 7 | 8 | // 3. Once you have completed these steps, completing the following 9 | // instructions. 10 | 11 | // - Copy/ paste the starter code for html found on W3schools landing page. 12 | 13 | // Read the following W3schools article on connecting a JS file to a HTML file. 14 | //Article: https://www.w3schools.com/js/js_whereto.asp 15 | 16 | // Use the information that from the article to make it so your HTML webpage does the following: 17 | // - 1. Displays a message that says "JS file connected" in the inspector tool in the browser. 18 | // - 2. Display the following text in a H1 tag: "Welcome to front end development" 19 | 20 | // Good Luck -------------------------------------------------------------------------------- /Class_Projects/restuarantProject_example/restuarantPitch.txt: -------------------------------------------------------------------------------- 1 | Ian's Donuts & Soap, is a combination of two great necessities; 2 | freshly made donuts and a clean, convenient laundromat. This unique concept lets you take care of your 3 | laundry while indulging in delicious, handcrafted donuts, locally roasted coffee, and a cozy atmosphere. 4 | Whether you're here for a quick wash or a snack, we offer a fun and stress-free environment that turns 5 | laundry day into a treat. In our restuarant we also offerfree Wi-Fi, plenty of seating, and an assortment of 6 | sweet and savory donuts, we’re the perfect spot to relax while your clothes are spinning. 7 | 8 | Ian's Donuts & Soap, unqiue value we bring to our customers is the convenience of being able to wash your clothes 9 | while being in a comfortable, relaxing environment. We have the best state-of-the-art, energy-efficient washers and dryers 10 | to make sure your clothes are clean as quickly and efficiently as possible. 11 | -------------------------------------------------------------------------------- /unit3_python/restuarantOrderFunction.py: -------------------------------------------------------------------------------- 1 | # Create a function that will allow a user add food items to their cart. 2 | 3 | def foodMenu(): 4 | print('Welcome to my restuarant!') 5 | print('1. burger') 6 | print('2 fries') 7 | print('3 soda') 8 | food = input('Which Item would you like to order? ') 9 | if food == 1: 10 | print('you have ordered a burger') 11 | elif food == 2: 12 | print('you have order fries') 13 | elif food == 3: 14 | print('you have ordered a soda') 15 | else: 16 | print('please select one of the following menu items.') 17 | 18 | # foodMenu(food) 19 | # print('Welcome to my restuarant!') 20 | # print('1. burger') 21 | # print('2. fries') 22 | # print('3. soda') 23 | # if food == 1: 24 | # print('you have ordered a burger') 25 | # elif food == 2: 26 | # print('you have order fries') 27 | # elif food == 3: 28 | # print('you have ordered a soda') 29 | # else: 30 | # print('please select one of the following menu items.') -------------------------------------------------------------------------------- /unit 2/cssIntroduction.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | HTML Tutorial 17 | 18 | 19 | 20 |

21 | Lorem Ipsum is simply dummy text of the printing and typesetting industry. 22 | Lorem Ipsum has been the industry's standard dummy text ever since the 23 | 1500s, when an unknown printer took a galley of type and scrambled it to 24 | make a type specimen book. It has survived not only five centuries, but 25 | also the leap into electronic typesetting, remaining essentially 26 | unchanged. It was popularised in the 1960s with the release of Letraset 27 | sheets containing Lorem Ipsum passages, and more recently with desktop 28 | publishing software like Aldus PageMaker including versions of Lorem 29 | Ipsum. 30 |

31 | 32 | 33 | -------------------------------------------------------------------------------- /unit3_python/pythonConditionalReview.py: -------------------------------------------------------------------------------- 1 | 2 | # Functions are sets of instructions 3 | # that inform the computer on what to do 4 | # with data. 5 | 6 | # function definition 7 | def welcomeMsg(): 8 | # step 1 9 | print('welcome to coding class.') 10 | 11 | # function call 12 | welcomeMsg() 13 | 14 | # Conditional Statements use the if/ else keywords 15 | # to help us make multiple decisions and outcomes 16 | # based on data. 17 | 18 | def mealTime(time): 19 | if time == 'before noon': 20 | print('it is breakfast time.') 21 | elif time =='noon': 22 | print('it is lunch time.') 23 | elif time == 'after noon': 24 | print('it is dinner time. ') 25 | else: 26 | print('sorry, we do not recgonise your data.') 27 | 28 | mealTime('noon') 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /unit 4_python/postHolidayReview.py: -------------------------------------------------------------------------------- 1 | # data types - level 1: most basic building block of 2 | # code . (numbers, letters, true or false) 3 | 4 | # operators - level 2: the ability to manipulate and 5 | # do things with data types 6 | # (math, comparisons, assignment, etc. ) 7 | 8 | # functions - level 3: taking the first two concepts and 9 | # organizing these operations and data types 10 | # into instructions 11 | 12 | # conditional statements: level 3a: being able 13 | # to add more control on our function instructions. 14 | 15 | 16 | # Billing System Function. 17 | # You've been hired as an engineer at spotify to assist with developing 18 | # a payment verification system. Your function should be able to check 19 | # a users payment date and account balance and verify if they need to make 20 | # payment today, and if yes, check if they have enough money in their account 21 | # to pay there bill. If they do have enough money, your program should 22 | # return a message confirm they're bill has been paid and show their remaining 23 | # account balance. If they do NOT have enough money, your function should 24 | # return that they do not have enough money. 25 | -------------------------------------------------------------------------------- /unit 4_python/asyncReviewJan17.py: -------------------------------------------------------------------------------- 1 | campingSupplies = ['tent', 2 | 'sleeping bag', 3 | 'flash light', 4 | 'camping knife' 5 | ] 6 | 7 | # 1. Reverse the order of the list. 8 | 9 | campingSupplies.reverse() 10 | #print(campingSupplies) 11 | 12 | # 2. Add a camping item to the list 13 | campingSupplies.append('water bottle') # will add the new item 14 | # to the end of the list. 15 | 16 | campingSupplies.insert(2,'portable fan') # will add the item 17 | # to the list based on a list position. 18 | 19 | #print(campingSupplies) 20 | 21 | # 3. Combine the list above with the list below 22 | campingFood = ['marshmellows','gram crackers', 23 | 'chocolate','chicken hot dogs', 24 | 'water',] 25 | 26 | # campingSupplies.append(campingFood) 27 | # print(campingSupplies) 28 | 29 | # numbers =[1,2,3,4,[5,6,7,8]] 30 | 31 | campingSupplies.extend(campingFood) 32 | #print(campingSupplies) 33 | 34 | # numbers =[1,2,3,4,5,6,7,8] 35 | 36 | # 4. Replace the 'flash light' string item with 'campfire kit' string 37 | # item. 38 | 39 | campingSupplies.pop(1) 40 | campingSupplies.insert(1,'campfire kit') 41 | print(campingSupplies) 42 | -------------------------------------------------------------------------------- /holidayExtraCredit.md: -------------------------------------------------------------------------------- 1 | # Holiday Extra Credit assignment 2 | 3 | Create a new document called holidayExtraCredit.py or holidayExtraCredit.js (depending on which programming language you are learning) and complete the following prompt. 4 | 5 | This assignment will be graded on accuracy- NOT effort. Your code NEEDS to work to get full credit. 6 | 7 | You will have until 8pm tonight, 12/19/2024 to complete this assignment. 8 | 9 | MAKE SURE TO TEST YOUR CODE BEFORE YOU SUBMIT YOUR WORK 10 | 11 | ## Holiday schedule function 12 | 13 | Create a function that will act as your holiday schedule planner. When you pass in a date. The event 14 | calenar should return an event that you have planned on that day. If there is no event on that day it should return "nothing is planned for this day". Your planner should encompass the dates between 12/21/24 15 | through 1/7/2025. You should have atleast 5 events planned. 16 | 17 | - ex. if a user passes in 12/21/2024, the program should return- on saturday dec. 21, I'm going to chill. 18 | - ex. if a user passes in 12/31/2024, the program should return- on tuesday dec. 31, I'm going to a new years party. 19 | - ex. if a user passes in 1/7/2024, the program should return- on monday Jan.1, I'm returning back to school. 20 | 21 | -------------------------------------------------------------------------------- /unit3_javascript/jsConditionalReview.js: -------------------------------------------------------------------------------- 1 | // A function is a set of instructions 2 | // that informs the computer on what to do 3 | // with data. 4 | 5 | // Conditional statements use the if/ else 6 | // keywords to allow us to create multiple 7 | // custom outcomes based on the data 8 | // we recieve 9 | 10 | function timeOfDay(time) { 11 | if (time == "am") { 12 | console.log("it is the morning. "); 13 | } else if (time == "pm") { 14 | console.log("it is the evening."); 15 | } else { 16 | console.log("sorry, cannot understand input"); 17 | } 18 | } 19 | 20 | timeOfDay(); 21 | 22 | // Create a function that will give 23 | // someone a letter grade based on their 24 | // numerical grade score. For example, 25 | // if someone has a 90, your program 26 | // should print you have an A, if the 27 | // data entered is an 80, 28 | // the program should print you have a B, 29 | // etc. 30 | 31 | // nested conditions are functions inside 32 | // of functions. this gives us more power 33 | // to make unique outcomes. 34 | function passwordRetrieval(email, password, sQuestion) { 35 | if (email == dbEmails.sort(email)) { 36 | console.log("correct"); 37 | console.log("please provide a password?"); 38 | }else{ 39 | console.log('sorry, this email doesnt exist.') 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /unit3_python/asyncReviewDec13.py: -------------------------------------------------------------------------------- 1 | # 3. You have been hired by target to assist them 2 | # with their store member discount software. The would 3 | # like to make it so that shoppers who have a specific 4 | # membership tier can save a certain amount of money on the 5 | # products they buy. provided below are the memberships and t 6 | # the discount amount they should recieve: 7 | 8 | # - superShopper should recieve a 10% discount on their items 9 | # - megaShopper should recieve a 15% discount on their items 10 | # - ultraShopper should receive a 20% discount on their items 11 | 12 | # You program should be able to take in the 13 | # shoppers membership type, the name of the item 14 | # they are purchasing, and the item price, and should 15 | # return a message telling the user what the final price of 16 | # the item is and how much they saved. 17 | 18 | # For example: congratulations superShopper, you saved $10.00 19 | # on this TV. Your final 20 | # item price is $90.00. 21 | 22 | # KEY POINTS 23 | # Determine the price of the item based on the user's membership. 24 | # - superShopper = 10% discount on their item. 25 | # - megaShopper = 15% discount on their item. 26 | # - ultraShopper = 20% discount on their item. 27 | # we need an item name, item price, membership and a message. 28 | 29 | f -------------------------------------------------------------------------------- /restuarant_project_page.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

5 | 6 | 31 | 32 | 33 | 34 | 39 | 40 | 41 | 42 | 43 | 44 | burgerking 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /unit3_python/asyncDec6Revirew.py: -------------------------------------------------------------------------------- 1 | 2 | # 1. Create a function that will accept a word in the function parameter 3 | # and return the word in reverse order. 4 | # For example, the word 'pet' should return as 'tep', the word 'book' 5 | # should return as 'koob', etc. 6 | # HINT- There is a built-in function that you can use to accomplish this. 7 | # Please use W3 schools to research what function you'll need to use. 8 | 9 | # 2. Create a function that uses a conditional statement to output a block 10 | # of text that will tell users about a states landmarks. 11 | # Your program should return the following states and their respective 12 | # landmarks. For example, if a user passes in the value of south carolina, 13 | # in the function parameter, your program should return the message: 14 | # ' A landmark in South Carolina is Fort Sumter, where the inital shots of the' 15 | # 'American Civil war took place.' WRITE A COMPLETE SENTENCE! 16 | 17 | # Pennsylvania = Liberty Bell. 18 | # New York = Statue of Liberty. 19 | # California = Hollywood Walk of Fame. 20 | # One additional state and landmark of your choice. 21 | 22 | # If you pass in a state that does not exist in your program, 23 | # your function should return a message saying that the state 24 | # could not be found. 25 | 26 | # HINT: refer back to your notes and use w3schools to reseach if/else conditional statements. 27 | 28 | -------------------------------------------------------------------------------- /unit 1/aboutme.txt: -------------------------------------------------------------------------------- 1 | Ian Kimble. 2 | 3 | About Me Activity: Part 1 4 | 5 | Please copy and paste the questions below and answer them in 6 | the aboutme.txt file we created a few days ago. When your finish, submit 7 | your activity by using the source control button. Remember: before you 8 | can successfully submit your work you need to provide a comment/ description 9 | in the text box in soucre control to submit your work. 10 | 11 | 12 | 1. In a 3-4 sentences, please tell me about yourself. What are your hobbies outside of school. 13 | 14 | 2. Do you have someone in your network of family and friends that works in tech? If yes, please 15 | describe what they do and how you are connected to them. 16 | 17 | 3. Do you plan on attending college? If yes, what are you interested in studying 18 | (if you know you want to got to college, but unsure of what you want to study, thats alright.) 19 | 20 | 4. In your own words, what do you think will be the hardest thing about learning coding? 21 | 22 | 5. Bonus: 23 | Do you watch the NFL? If yes, who is your favorite team, and what will your teams record 24 | be at the end of the season? 25 | 26 | About Me Activity: Part 2 27 | 28 | Once you have completed the first part of this activity, please use the following 29 | link below to complete the course kickoff survey. 30 | 31 | Survey link: 32 | https://forms.gle/HCLfdGwUqoz1smjW9 33 | 34 | by ian 35 | 36 | -------------------------------------------------------------------------------- /ClassPresentationGuide.md: -------------------------------------------------------------------------------- 1 | ## Class Presentation Guide 2 | Please refer to this document for guidance on how you should present your project(s). 3 | 4 | ### How to present 5 | - When presenting to an audience be sure to speak clearly and loud enough so that everyone in the room can hear and understand you. 6 | - Take your time when speaking to ensure that not only can everyone in the room can hear you, but that you can also hear yourself. 7 | - Stand up straight when speaking in front of a room. It will help you project your voice as well as your confidence. 8 | 9 | ### Criteria for your presentation 10 | - Introduce yourselves by telling use your names and grade. 11 | - Tell us about your project (you are allowed to refer to your project pitch if necessary). Tell us about your restaurant, its unique feature and why you chose this feature. 12 | - Walk us through your website and showcase to use that your website works properly and how a user would navigate getting food on your site. 13 | 14 | **Each team member should volunteer and answer one of these questions on behalf of the group.** 15 | - Tell us something you enjoyed about working on this project and why. 16 | - Tell us about a coding concept you learned doing this project. 17 | - Tell us about a challenge you had with this project and how you overcame it. 18 | - Tell us something you wish you could have changed or done differently if you had more time and why. 19 | -------------------------------------------------------------------------------- /unit 4_javascript/jsArrayMethods.js: -------------------------------------------------------------------------------- 1 | // Arrays - A special data type for 2 | // collecting and storing data inside 3 | // of a variable. 4 | 5 | // We declare an array by giving it a 6 | // variable name, and then assigning it the 7 | // square brackets 8 | var numbers = [1,2343,23,23435,234] 9 | var randomData =[true, 'name',numbers, numbers] 10 | 11 | // What is a method? 12 | // a method is a special type of function 13 | // the works on array/ lists (...and objects) 14 | 15 | // push() - this special function pushes new 16 | // data into a array. 17 | // PUSH needs and argument to passed into the array. 18 | // it will add the new data to the end of the array 19 | var snowGear =['gloves','hats','mittens','coat'] 20 | snowGear.push('snowboard') 21 | console.log(snowGear) 22 | 23 | // pop()- this is a special function for removing 24 | // and item from an array. 25 | // POP does not need an argument. It will always 26 | // remove the last item in the array 27 | snowGear.pop() 28 | console.log(snowGear) 29 | 30 | // LIFO = Last in, First out 31 | 32 | // length- counts the items in the array 33 | // Length does NOT take any arguments 34 | console.log(snowGear.length) 35 | 36 | // Remove the hats string from this list 37 | // use w3schools or google to find a method 38 | // to remove the hats from the array 39 | //var snowGear =['gloves','hats','mittens','coat'] 40 | 41 | snowGear.splice(1,1,' ') 42 | console.log(snowGear) 43 | 44 | // replace() 45 | // pop() 46 | // splice() -------------------------------------------------------------------------------- /unit3_javascript/handsOnFunctions.js: -------------------------------------------------------------------------------- 1 | // Anatomy of a function 2 | 3 | // curly brackets = this is called a parameter. we pass data 4 | // inside of the functions parameters 5 | 6 | // parameter = placeholder for data 7 | // data = just means data types 8 | 9 | // Condtional Statements in JS 10 | 11 | // Conditional statements are written using the 'IF' and 'ELSE' 12 | // keywords. This allows use to make decisions based on data 13 | // our function recieves. 14 | 15 | // Activity 16 | 17 | // 1. Create a function that will take a number that 18 | // is passed into the functions parameters and convert 19 | // the number into minutes. For example, a value of 2 20 | // should return 120 minutes. a value of 3 should 21 | // return 180 minutes, etc. 22 | 23 | function hoursToMinutes(hour) { 24 | console.log(hour * 60 + " minutes"); 25 | } 26 | 27 | //hoursToMinutes(15); 28 | 29 | // Conditional Statements 30 | // If/ Elese keywords used create specific 31 | // outcomes based on the data the function recieves. 32 | 33 | function timeManagementSystem(hoursWorked) { 34 | if (hoursWorked < 8) { 35 | console.log("Unfortunately you will not get full time pay."); 36 | } else if (hoursWorked > 8) { 37 | console.log("You will be paid overtime. "); 38 | } else if (hoursWorked > 16) { 39 | console.log("You are working way too hard! "); 40 | } else { 41 | console.log("You will get paid full time for the day."); 42 | } 43 | } 44 | 45 | timeManagementSystem(10); 46 | 47 | -------------------------------------------------------------------------------- /Class_Projects/restuarantProject_example/IansDonutsCleaners.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Ian's Donuts and Cleaners 5 | 6 | 7 |
Instructor Note: Remember to get creative. Look up examples online of resturants and try to emulate their designs.
8 | 9 |
Navigation Bar section
10 | 16 | 17 |
Landing Image section
18 | 19 |
20 |

About your resturant and its unique feature.

21 |
22 | 23 |
Menu section
24 | 27 | 30 | 33 | 34 |
35 | Order form section 36 |
37 |
38 |
39 |
40 |

41 | 42 |
43 |
44 | 45 | 46 | -------------------------------------------------------------------------------- /unit 4_python/loops.py: -------------------------------------------------------------------------------- 1 | # Loops - A loop is a special type of function 2 | # that will repeat (loop through) a set of instructions 3 | # under specific conditions. 4 | 5 | # There are 2 versions of loops; there are 6 | # for loops and whiles loops. 7 | 8 | # While Loops - a while loop is a special type of function 9 | # where so long as a condition is TRUE, it will continue 10 | # to repeat set of instructions. 11 | 12 | number = 1 13 | result = 4 14 | 15 | while number + 2 == result: 16 | print('2 + 2 is always 4') 17 | 18 | # so long as the health points (50) is greater than 0, 19 | # this code will keep running and subtract 10 from the 20 | # health points. BUT once it gets to 0 the game will stop. 21 | 22 | def gameHealthManager(): 23 | healthPoints = 50 24 | while healthPoints > 0: 25 | print('keep plyaying game.') 26 | healthPoints -= 10 27 | confirmPlay= input('do you want to continue? ') 28 | print(healthPoints) 29 | 30 | # gameHealthManager() 31 | 32 | # For Loops - This is a function that will iterate over 33 | # a list and will run specific instruction on each of the 34 | # items in that list 35 | 36 | # numbers = [1,2,3,4] 37 | # for x in numbers: 38 | # print('this is ' + str(x)) 39 | 40 | def attackLogic(): 41 | attackScore =[30,10,60,25] 42 | 43 | # a way think about this of code is 44 | # FOR items (in this case attack) IN LIST (attackScore) 45 | 46 | for attack in attackScore: 47 | print(attack * 2) 48 | #attackLogic() -------------------------------------------------------------------------------- /unit3_javascript/asnycActivity_nov1.js: -------------------------------------------------------------------------------- 1 | // 1. Describe the difference between var, let, and const. 2 | // Your answer can be formatted as a comment or a string. 3 | 4 | "var - standard variable. short for variable. this can be used in any context." 5 | "let - This is a variable where the data may change. " 6 | "const - This is a variable where the data needs to remain constant. Cannot change." 7 | 8 | // 2. Use what you've learned about data types and 9 | // variables and create three variables that when multiplied 10 | // together will result in the value 4000. Research the console.log() 11 | // function on w3schools to output your result in the terminal. 12 | 13 | // keyword - word we know 14 | // variable 15 | // data types 16 | // console.log 17 | 18 | // context - what is it asking us to do 19 | // multiply 3 vars that will result in 4000 20 | var a = 2 21 | var b = 2 22 | var c = 1000 23 | console.log("this message will appear in the terminal. ") 24 | console.log(a* b* c) 25 | 26 | // 3. Describe a scenario where you would use the let 27 | // variable and when you would use a const variable in a 28 | // computer program. 29 | // Your answer can be formatted as a comment or a string. 30 | 31 | "let - email in drafts that your still working on- can still change." 32 | "const - email that has been sent- cannot change." 33 | 34 | // 4. If there were three things you that feel could 35 | // improve the class, what would those things be and why? 36 | // Your answer can be formatted as a comment or a string. 37 | -------------------------------------------------------------------------------- /pythonDataTypes.py: -------------------------------------------------------------------------------- 1 | # String data type 2 | # strings are pieces of data wrapped in quotation marks. 3 | "My name is Ian" 4 | "34" 5 | "!@@$%" 6 | 7 | # Integers 8 | # Integers are pieces of data that represent whole numbers. 9 | # whole numbers do not have decimals 10 | 22 11 | 45 12 | 24525425252534 13 | 3 14 | 15 | # Floats 16 | # Floats represent pieces of data that contain a decimal 17 | 33.56 18 | 1342.89 19 | 00.887 20 | 21 | # booleans 22 | # booleans are pieces of data that represent true or false statements 23 | True 24 | False 25 | 26 | # variables 27 | # variables are containers for data that can be re-used 28 | username='' 29 | password='' 30 | profileImg='' 31 | posts=[] 32 | 33 | 34 | 35 | 36 | # name ian hello goodbye good day. 37 | # bake 38 | # 300 degress 39 | # 15 - 20 mins 40 | # flour 41 | # 3 cups 42 | 43 | # hello, my name is Ian. Have a good day. goodbye. 44 | 45 | 46 | 47 | 48 | # String 49 | # a string is a piece of data that represents 50 | # letters, words, and characters 51 | # using the quotation marks. 52 | 53 | "Hello, my name is Ian." 54 | "I" 55 | "@#$^#" 56 | 57 | # Integer 58 | # integers are pieces of data the represent WHOLE numbers 59 | # any number WITHOUT a decimal 60 | 12 61 | 1200 62 | 124000 63 | 320382084802 64 | 65 | # Floats 66 | # floats are pieces of data that represent DECIMAL numbers 67 | 29.23 68 | 2340949.898492 69 | 23.9023902 70 | 1.394039 71 | 72 | # Booleans 73 | # booleans are pieces of data that 74 | # represent true/ false values 75 | True 76 | False -------------------------------------------------------------------------------- /unit 4_javascript/whileLoops.js: -------------------------------------------------------------------------------- 1 | // Loops = A loop is a special 2 | // construct that repeats a set 3 | // of code instructions over and 4 | // over under specific 5 | // conditions. 6 | 7 | // While Loops = This is a special type of 8 | // loop where so long as a condition is TRUE 9 | // it will repeat the code instructions over 10 | // and over. 11 | 12 | // this is an ex of an assignment 13 | // operator - giving a variable a value 14 | 15 | // = : assignment operator 16 | // == : comparison operator (same as) 17 | // != : comparison operator (not the same as) 18 | 19 | function basicLoop() { 20 | var value = ""; 21 | 22 | while (value == "") { 23 | // 0 is less than 10. This is a true statement 24 | console.log("This message will repeat"); 25 | value += 1; 26 | } 27 | } 28 | // basicLoop(); 29 | 30 | function trafficLight() { 31 | var lightColors = ["red", "yellow", "green"]; 32 | var timer = 0; 33 | while (timer < 60) { 34 | console.log("this light is " + lightColors[0]); 35 | timer += 1; 36 | if (timer % 6) { 37 | console.log("light is about to change..."); 38 | console.log("this light is " + lightColors[1]); 39 | } 40 | } 41 | } 42 | 43 | // trafficLight(); 44 | 45 | 46 | 47 | 48 | 49 | 50 | function timer(){ 51 | var interval = 60 52 | while (interval > 0){ 53 | console.log('countdown' + interval) 54 | interval -= 1 55 | } 56 | document.getElementById('count').innerHTML=interval 57 | alert('times up') 58 | console.log("Times up!") 59 | } 60 | 61 | -------------------------------------------------------------------------------- /unit3_javascript/functionPractice/functions.js: -------------------------------------------------------------------------------- 1 | // What is function? 2 | "A function is a set instructions that performs a specific task"; 3 | "or job."; 4 | 5 | // Functions come in 2 variations: 6 | // built-in functions- These are instructions that are pre-written 7 | // into the coding language, All we need to do is pass in data. 8 | 9 | // examples 10 | var className = "Coding class"; 11 | console.log(className); 12 | 13 | // user-defined functions- These are custom instructions written by 14 | // engineers to make code that performs specific tasks. 15 | 16 | // How do we write a user-defined function? 17 | function exampleFunction() { 18 | console.log("The function script is connected."); 19 | } 20 | 21 | // in order to have a function work, we need to call it. 22 | // the above code is the function definition- MEANING- it's only 23 | // telling the computer the instructions- NOT to actually run it. 24 | 25 | // we access or call a function by writing its name. 26 | // exampleFunction() 27 | 28 | let accountBalance = 1000; 29 | 30 | function depositMoney(depositAmount) { 31 | let newBalance = accountBalance + depositAmount; 32 | document.getElementById("data").innerHTML = newBalance; 33 | } 34 | 35 | function login(email, password) { 36 | console.log("depending on the data, you will or will not get access"); 37 | // if email is incorrect or doesnt 38 | } 39 | // data that we want to manipulate goes inside of the 40 | // round brackets. 41 | // the instructions on what we want to do with the data 42 | // goes inside of the curly brackets. 43 | -------------------------------------------------------------------------------- /Async_Activities/asyncActivityJan17.md: -------------------------------------------------------------------------------- 1 | # Async Activity January 17th, 2025 2 | 3 | Please create a new file called asyncActivityJan17.py or asyncActivityJan17.js and complete the following questions. 4 | 5 | This assignment is due at the end of class. If you are not present for class, this assignment will need to be completed as homework before 11pm tonight (Jan. 17, 2025). 6 | 7 | ## IMPORTANT 8 | Once you've completed the assignment, please do the following steps 9 | to ensure your assignment is submitted properly. 10 | - Commit and sync your work to your github repository. - DO NOT PUT THE LINK TO YOU CODESPACES HERE- IT MOST BE YOUR REPOSITIORY. 11 | - Drop the link to your repository in the following link below 12 | - [Async Activity Jan.10, 2025 Submission Link](https://forms.gle/9TMnvbzLx9kdcAwM7) 13 | 14 | 15 | campingSupplies = ['tent','sleeping bag','flash light','camping knife'] 16 | 17 | 1. Using the list above, create a function that will reverse the order of the list/array. 18 | 19 | Hint: there is a method that you can use to accomplish this. 20 | 21 | 2. Using the list above, Create a function that will add an item that you would bring to a camping trip to your list/array. 22 | 23 | 3. Create a function the will combine the campingSupplies list/ array, with the list/array provided below: 24 | 25 | campingFood = ['marshmellows','gram crackers','chocolate','chicken hot dogs','water',] 26 | 27 | 4. Create a function that will remove the "flash light" item from the list/array and replace it with a "camp fire kit" item. 28 | 29 | 30 | -------------------------------------------------------------------------------- /unit3_python/operatorReview.py: -------------------------------------------------------------------------------- 1 | # Arithmetic operator - code that does math processes. 2 | # a few examples of programs that use arithmetic operations 3 | 4 | # bank App 5 | checkingAccountBalance = 2000 6 | depositAmmount = 500 7 | print(depositAmmount + checkingAccountBalance) 8 | 9 | # cash app/ peer to peer money transfer app 10 | sendAmount = 20 11 | cashAppAccountName = 0.00 12 | 13 | # video game character 14 | pikachuStats = 200 15 | battlepoints= 20 16 | attackdamage = 100 17 | 18 | # Assignment operator - providing a value to a variable. 19 | # The keyword is assignment 20 | # when you are creating variables, you are actively 21 | # using the assingment variable. 22 | # the single equal symbol IS the operator. 23 | 24 | # example 25 | g = 2 26 | 27 | # example of a assignment operator 28 | 29 | jeans= 200.00 30 | discount= .70 31 | #jeans *=.25 32 | totalDiscont=jeans * discount 33 | 34 | total= jeans- totalDiscont 35 | print(total) 36 | 37 | # Comparision operator - analyzing to values. 38 | # == double equal sign checks if values are equal or the same 39 | # != sign checks if values are NOT the same. 40 | 41 | pikachuHP= 200 42 | pikachuAttack= 90 43 | pikachuSpeed = 20 44 | 45 | charizardHP= 400 46 | charizardAttack= 90 47 | charizardSpeed= 35 48 | 49 | print (pikachuAttack == charizardAttack) 50 | 51 | # an example of a comparison operator being used is a password manager 52 | userPassword ='1234' 53 | databasePassword ='1234' 54 | 55 | print(userPassword != databasePassword) 56 | 57 | # Logical operator - evaluating expressions to check for conditions 58 | -------------------------------------------------------------------------------- /unit 4_python/problemSolving.py: -------------------------------------------------------------------------------- 1 | # CALCULATOR APP 2 | # You have been tasked with developing a calculator 3 | # app that students can use during their standardized test. 4 | # The calculator should be able to take in a number, followed by an 5 | # arithmetic operator and then another number. Once your 6 | # program has all of these components, it should return the answer. 7 | 8 | # 1. What is the problem asking you to do? 9 | 'your answers should be in string format...' 10 | 11 | # 2. What are some keywords and phrases ? 12 | 13 | # 3. Is there input data that the question provides ? 14 | 15 | # 4. What is the desired output ? 16 | 17 | # 5. Pseudocode Steps & Additional Notes 18 | 19 | # Solution 20 | 21 | # ROCK, PAPER, SCISSOR GAME APP 22 | # You are working on a game concept with several 23 | # other engineers and you need to provide them with a 24 | # simple proof of concepts. 25 | # For now, you have suggested that your 26 | # game work on a RPS (rock, paper, scissors) loop. 27 | # When a user plays, rock, paper, or scissors, 28 | # the computer will randomly select one of the 3 29 | # options as well. Your program will then determine 30 | # who won, based on the values. The game should only 31 | # allow the player to play 3 hands, and inform the 32 | # player if the won or lost (best 2 out of 3 format.) 33 | 34 | # 1. What is the problem asking you to do? 35 | 36 | # 2. What are some keywords and phrases ? 37 | 38 | # 3. Is there input data that the question provides ? 39 | 40 | # 4. What is the desired output ? 41 | 42 | # 5. Pseudocode Steps & Additional Notes 43 | 44 | # Solution 45 | 46 | -------------------------------------------------------------------------------- /Async_Activities/asyncActivityFeb7.md: -------------------------------------------------------------------------------- 1 | # Async Activity February 7th, 2025 2 | 3 | Please create a new file called asyncActivityFeb7.py or asyncActivityFeb7.js and complete the following questions. 4 | 5 | This assignment is due at the end of class. If you are not present for class, this assignment will need to be completed as homework before 11pm tonight (Feb. 7, 2025). 6 | 7 | ### IMPORTANT 8 | 9 | Once you've completed the assignment, please do the following steps 10 | to ensure your assignment is submitted properly. 11 | 12 | - Commit and sync your work to your github repository. - DO NOT PUT THE LINK TO YOU CODESPACES HERE- IT MOST BE YOUR REPOSITIORY. 13 | - Drop the link to your repository in the following link below 14 | - [Async Activity Feb.7, 2025 Submission Link](https://forms.gle/TL66yoLkbNA9RXzc8) 15 | 16 | ### These questions are code agnostic (meaning it does not matter which coding language you are learning, you should be able to answer them. ) 17 | 18 | 1. In your own words, describe the difference between a "FOR" loop and a "WHILE" loop. 19 | Please make sure your response is written in a complete sentence. 20 | 21 | 2. Describe a situation where you would use a WHILE LOOP in a computer program. Then, attempt to create your example in code. 22 | 23 | 3. You have been hired by temple university to work on a graduation checker program. your program should be able to find the highest grade in a list. 24 | Create a function that will loop through each number in the list and identify if it is the highest number. When your program finds the highest grade, 25 | it should return a message telling the user what the highest grade is. 26 | 27 | -------------------------------------------------------------------------------- /unit 4_python/listFunctions.py: -------------------------------------------------------------------------------- 1 | # List = A data type for collecting and organizing data 2 | # in 1 varable. 3 | # - Lists can include all data types, including 4 | # other lists. 5 | # - Lists can contain duplicates. 6 | # - we can search and select specific items from a list 7 | # using the list index. 8 | # - Lists can be changable. We can add and remove items from a list. 9 | # - We can also duplicate or delete entire lists. 10 | 11 | skii_Trip_Items = ['snow boots','hat','heavy coat'] 12 | 13 | # append() method - this is a special type of function 14 | # that allow us to add items to a list. The new item 15 | # will be attached to the end of the list. 16 | 17 | skii_Trip_Items.append('gloves') 18 | print(skii_Trip_Items) 19 | 20 | # insert() method - this is a special type of function 21 | # that will allow us to add items to a list at specific 22 | # index position. 23 | # this method will require 2 arguments to work; 24 | # the index position you want to place the data 25 | # and the data you want to add. 26 | 27 | skii_Trip_Items.insert(2,'goggles') 28 | print(skii_Trip_Items) 29 | 30 | # pop method() - A special function that 31 | # allows us to remove the last item in the list. 32 | 33 | skii_Trip_Items.pop() 34 | print(skii_Trip_Items) 35 | 36 | # remove() method. This is a special function 37 | # that allows us to remove a list item specifically by its 38 | # value. 39 | # remove() require 1 argument, which is the value you 40 | # want to remove. 41 | 42 | skii_Trip_Items.remove('hat') 43 | print(skii_Trip_Items) 44 | 45 | # clear() method - this is a special function that 46 | # allows us to delete all the items inside of a list. 47 | skii_Trip_Items.clear() 48 | print(skii_Trip_Items) 49 | 50 | -------------------------------------------------------------------------------- /Async_Activities/asyncActivityJan10.md: -------------------------------------------------------------------------------- 1 | # Async Activity January 10th, 2025. 2 | 3 | Please create a new file called asyncActivityJan10.py or asyncActivityJan10.js and complete the following questions. 4 | 5 | This assignment is due at the end of class. If you are not present for class, this assignment will need to be completed as homework before 11pm tonight (Jan. 10, 2025). 6 | 7 | ## Once you've completed the assignment, please do the following steps 8 | ## to ensure your assignment is submitted properly. 9 | - Commit and sync your work to your github repository. 10 | - Drop the link to your repository in the following link below 11 | - [Async Activity Jan.10, 2025 Submission Link](https://forms.gle/JLuFfhdVcJZyNQEn7) 12 | 13 | ### 1. Create 3 different lists data types that will include things found in grocery store. Make sure your items use the string data type. 14 | - Create a list that includes 5 items that you can find in the frozen food isle. 15 | - Create a list that includes 5 items that you can find in the international food isle. 16 | - Creat a list that includes 5 items that you can find in the produce 17 | isle. 18 | 19 | ### 2. With the list provided below; use the print (for python) or console.log (for javascript) functions to return the correct value for the index. 20 | 21 | numbers = [1,30,39,50,293,100] 22 | 23 | Hint: If you get stuck, search for accessing JS list by index or 24 | accessing Python list by index depending on which language you are learning 25 | 26 | - print/ console.log the number at index 0 27 | - print/ console.log the number at index 3 28 | - print/ console.log the number at index 4 29 | 30 | ### 3. Create a function that will multiply the number at index 4 in the list above. 31 | 32 | 33 | -------------------------------------------------------------------------------- /unit3_python/asyncActivity_nov1.py: -------------------------------------------------------------------------------- 1 | # 1. Use what you've learned about data types and variables and create two 2 | # variables that when added together will result in the value 245. 3 | # Research the print() function on w3schools to output your result in the terminal. 4 | 5 | # keywords 6 | # w3schools 7 | # print() function--> output 8 | # terminal 9 | # variable 10 | # data types 11 | 12 | # Context Clues 13 | # we need add two variables to output a value of 245 14 | # we need to understand what the print() function does 15 | # 245 is an integer (a whole number) 16 | a= 100 17 | b= 145 18 | print(a+b) 19 | 20 | # 2. If you were asked to create a calendar app, which data type would you 21 | # use to create the days of the week and which data type would you use for the date? 22 | 23 | # Your answer can be formatted as a comment or a string. 24 | 25 | "If I want to write the days of the week I would use the ______strings______ data type." 26 | "Monday" 27 | 28 | "If I want to write the dates of the week I would use the integer data type." 29 | 1 30 | 14 31 | 27 32 | 33 | # 3. What is the difference between the float and integer data types. Your answer can be 34 | # formatted as a comment or a string. 35 | 36 | "floats are decimials numbers" 37 | 12.38483 38 | "integers are whole numbers" 39 | 1234 40 | 41 | # 4. Identify the the correct data type for each scenario: 42 | 43 | #- A comment section on a picture on instagram. 44 | "string" 45 | 46 | # - A survey form that asks users if they have ever traveled to another country. 47 | "boolean" 48 | 49 | # Your answer can be formatted as a comment or a string. 50 | 51 | # 5. If there were three things you that feel could improve the class, what would those things be and why? 52 | # Your answer can be formatted as a comment or a string. 53 | 54 | -------------------------------------------------------------------------------- /unit 4_javascript/asyncReviewJan10.js: -------------------------------------------------------------------------------- 1 | // Async Activity January 10th, 2025. 2 | 3 | // 1. Create 3 different lists data types that will include things found in grocery store. Make sure your items use the string data type. 4 | // Create a list that includes 5 items that you can find in the frozen food isle. 5 | // Create a list that includes 5 items that you can find in the international food isle. 6 | // Creat a list that includes 5 items that you can find in the produce isle. 7 | 8 | // A list is a data type that can be used to group and collect other 9 | // data types together in one variable. 10 | 11 | // list can contain all data types, including variables and other lists. 12 | 13 | var internationalFood = [ 14 | "Ramen", 15 | "Chili sauce", 16 | "Soy sauce", 17 | "Old bay", 18 | "Tacos shells", 19 | ]; 20 | var produceFood = [ 21 | "apples", 22 | "bell peppers", 23 | "mushrooms", 24 | "tomatos", 25 | "cucumbers", 26 | ]; 27 | 28 | groceryShoppingList = [internationalFood, produceFood]; 29 | console.log(groceryShoppingList); 30 | 31 | // 2. With the list provided below; use the print (for python) or 32 | // console.log (for javascript) functions to return the correct 33 | // value for the index. 34 | var numbers = [1, 30, 39, 50, 293, 100]; 35 | // Hint: If you get stuck, search for accessing JS list by index or accessing Python list by index depending on which language you are learning 36 | // print/ console.log the number at index 0 37 | 1; 38 | // print/ console.log the number at index 3 39 | 50; 40 | // print/ console.log the number at index 4 41 | 293; 42 | 43 | // 3. Create a function that will multiply the number at index 4 in the 44 | // list above. 45 | 46 | function multiplier(x) { 47 | // console.log(x * 293); 48 | // console.log(x * numbers[4]); 49 | } 50 | 51 | multiplier(5) -------------------------------------------------------------------------------- /extraCredit_Nov25.md: -------------------------------------------------------------------------------- 1 | # Extra Credit November 25th, 2024 2 | Please complete the following questions to earn additional credit toward your grade. 3 | 4 | This activity is due by the end of class on Tuesday, November 26th, 2024. 5 | 6 | The questions provided are code agnostic, meaning you can answer them in either Python or JavaScript. Please answer the questions with the programming language you are currently learning. 7 | 8 | 9 | Please use W3schools and your class notes for reference. 10 | 11 | Good Luck! 12 | 13 | 1. In your own words, describe what a function is? What is a reason why 14 | we use functions to create programs. 15 | 16 | 2. Please create a function that will accept a number and then calculate that number by 12 and then subtract it by 5. Then use the console.log() or print() functions to return your answer. 17 | 18 | hint: you will need to pass your number in as a parameter- inside the round brackets. 19 | 20 | 3. Please creat a function that will accept a name as a string and contatonate that string in a message that welcomes the person to coding class by name. Then return the result using the print() or console.log function. 21 | 22 | ex. your message should say "hello (person's Name)! Welcome to coding! 23 | 24 | 4. Create a function that will compare a number to 17. If the number is larger than 17, it should return true, and if the number is smaller than 17 it should return false. Use the console.log() function and print() function to output the result. 25 | 26 | hint 1: you will need to use one of the comparison operators. 27 | hint 2: you will need to pass your number in as a parameter- inside the round brackets? 28 | 29 | 5. Please create a function that when it is run will show the instructions on how to create a cheese steak sandwich. 30 | 31 | 6. Please explain what the difference is between a function call and a function definition? -------------------------------------------------------------------------------- /Class_Lectures/htmlFoundationLesson.md: -------------------------------------------------------------------------------- 1 | ## Vocabulary Terms 2 | - HTML - Stands for hyper text markup language. Used to create structure for a web application. 3 | - Syntax - The rules of a language. the conventions that must be followed in writing a language. 4 | - Element - A piece of HTML code that is comprised of an opening tag, content, and a closing tag. 5 | - Attribute - A piece of code that give html tags more power. 6 | 7 | ## HTML Foundations 8 | 9 | HTML stands for Hypertext Markup Language, and it is the programming language we use 10 | to structure websites. 11 | 12 | Every website that is accessible on the internet 13 | is built upon HTML. 14 | 15 | 16 | ## HTML Composition/ Syntax 17 | HTML code is comprised of elements. HTML Elements are 18 | blocks of code that use tags to display some sort of content. 19 | 20 | Example of an Element 21 |
22 | Some content... 23 | 24 | HTML Tags are built-in pieces of code that do a specific 25 | task to create an html elements. HTML tags come in pairs 26 | that feature an opening and closing tag. 27 | 28 | An opening Tag features the tag name between two arrows 29 | 30 | 31 | A closing tag features the tag name BUT has a foward slash; "/". 32 | 33 | 34 | ## HTML Starter code/ Boilerplate 35 | --- 36 | starter code or boilerplate, is prewritten code that can be used to start a coding project. 37 | 38 | ```html 39 | 40 | 41 | 42 | HTML Tutorial 43 | 44 | 45 | 46 |

This is a heading

47 |

This is a paragraph.

48 | 49 | 50 | 51 | ``` 52 | --- 53 | When we write html code, all of our code must go between the body tags. 54 | This is the visible area of the HTML structure (the things that you 55 | see on the webpage.) -------------------------------------------------------------------------------- /unit3_javascript/asnycReviewDec13.js: -------------------------------------------------------------------------------- 1 | // 3. You have been hired by target to assist 2 | // them with their store member discount software. 3 | // The would like to make it so that shoppers who have 4 | // a specific membership tier can save a certain amount of 5 | // money on the products they buy. provided below are the 6 | // memberships and the discount amount they should recieve: 7 | 8 | // - superShopper should recieve a 10% discount on their items 9 | // - megaShopper should recieve a 15% discount on their items 10 | // - ultraShopper should receive a 20% discount on their items 11 | 12 | // You program should be able to take in the shoppers 13 | // membership type, the name of the item they are purchasing, 14 | // and the item price, and should return a message telling the 15 | // user what the final price of the item is and how much they saved. 16 | 17 | // For example: congratulations superShopper, you saved 18 | // $10.00 on this TV. Your final 19 | 20 | // item price is $90.00. 21 | 22 | // KEY POINTS 23 | // Create a function that will apply a discount to an item's price 24 | // based on their membership tier. 25 | 26 | // - superShopper = 10% discount on their item. 27 | // - megaShopper = 15% discount on their item. 28 | // - ultraShopper = 20% discount on their item. 29 | 30 | // Program needs to print out message congratulating them on savings. 31 | // need item name, item price, membership tier. 32 | 33 | function membershipDiscount() { 34 | console.log("function is working"); 35 | 36 | if (member == "superShopper") { 37 | console.log("you are a super shopper. You get 10 percent off."); 38 | } 39 | 40 | else if (member == "megaShopper") { 41 | console.log("you are a super shopper. You get 10 percent off."); 42 | } 43 | 44 | else if (member == "ultraShopper") { 45 | console.log("you are a ultra shopper. You get 10 percent off."); 46 | } 47 | } 48 | 49 | membershipDiscount(); 50 | -------------------------------------------------------------------------------- /unit 4_javascript/postHolidayReview.js: -------------------------------------------------------------------------------- 1 | // data types - level 1: most basic building block of 2 | // code (numbers, letters, true or false). 3 | 4 | // operators - level 2: the ability to manipulate and 5 | // do things with data types 6 | // (math, comparisons, assignment, etc. ). 7 | 8 | // functions - level 3: taking the first two concepts and 9 | // organizing these operations and data types 10 | // into instructions 11 | 12 | // Billing System Function. 13 | // You've been hired as an engineer at spotify to assist with 14 | // developing 15 | // a payment verification system. Your function s 16 | // hould be able to check 17 | // a users payment date and account balance and verify if 18 | // they need to make 19 | // payment today, and if yes, check if they have enough 20 | // money in their account 21 | // to pay there bill. If they do have enough money, your 22 | // program should 23 | // return a message confirm they're bill has been paid 24 | // and show their remaining 25 | // account balance. If they do NOT have enough money, 26 | // your function should 27 | // return that they do not have enough money. 28 | 29 | // Payment function that checks to see if the payment is today for a 30 | // user and then check to see if they have money in their account 31 | // to pay their subscription 32 | 33 | function checkSubscription(scheduledPayDate, accountBalance) { 34 | if (scheduledPayDate == 10) { 35 | if (accountBalance > 15.0) { 36 | console.log( 37 | "Your subscription has been renewed. Auto-pay was successful." 38 | ); 39 | } else if (accountBalance < 15.0) { 40 | console.log( 41 | "Your subscription is on hold. Please check you payment method." 42 | ); 43 | } else { 44 | console.log("There was an error in our system"); 45 | } 46 | } else { 47 | console.log("Bill not due. It is not the payment date yet."); 48 | } 49 | } 50 | checkSubscription(10, 'sorry i aint got it'); 51 | -------------------------------------------------------------------------------- /Async_Activities/asyncActivityDec6.md: -------------------------------------------------------------------------------- 1 | ## Async Activity December 6th, 2024 ## 2 | Inside of your unit 3 folder create a new file called 3 | asyncActivityDec6.py OR asyncActivityDec6.js, depending on which programming language you are learning. 4 | 5 | Please follow the directions provided and answer the following questions.This will be do at the end of class. This will need to be submitted whether you are present or not. 6 | 7 | The questions are code agnostic, meaning it does not matter which 8 | coding language you are learning- you should be able to answer them 9 | regardless of if you are learning JavaScript or Python. 10 | 11 | Good luck. 12 | 13 | 1. Create a function that will accept a word in the function parameter 14 | and return the word in reverse order. 15 | For example, the word 'pet' should return as 'tep', the word 'book' 16 | should return as 'koob', etc. 17 | HINT- There is a built-in function that you can use to accomplish this. 18 | Please use W3 schools to research what function you'll need to use. 19 | 20 | 2. Create a function that uses a conditional statement to output a block 21 | of text that will tell users about a states landmarks. 22 | Your program should return the following states and their respective 23 | landmarks. For example, if a user passes in the value of south carolina, 24 | in the function parameter, your program should return the message: 25 | ' A landmark in South Carolina is Fort Sumter, where the inital shots of the' 26 | 'American Civil war took place.' WRITE A COMPLETE SENTENCE! 27 | 28 | Pennsylvania = Liberty Bell. 29 | New York = Statue of Liberty. 30 | California = Hollywood Walk of Fame. 31 | One additional state and landmark of your choice. 32 | 33 | If you pass in a state that does not exist in your program, 34 | your function should return a message saying that the state 35 | could not be found. 36 | 37 | HINT: refer back to your notes and use w3schools to reseach if/else conditional statements. 38 | -------------------------------------------------------------------------------- /unit 4_javascript/asyncReviewFeb7.js: -------------------------------------------------------------------------------- 1 | // 1. 2 | // For Loop - is a type of loop that iterates (counts over) 3 | // a list or collection of data. For loops generally have 4 | // a starting point and ending point. 5 | 6 | // While Loop - is a type of loop that will repeat a 7 | // set of instructtions so long as a condition is true. 8 | 9 | // 2. 10 | // A Timer program is an example of a program that can 11 | // be built ussing a while loop. 12 | 13 | function timer() { 14 | var interval = 60; 15 | while (interval > 0) { 16 | console.log("countdown: " + interval); 17 | interval -= 1; 18 | } 19 | console.log("Timer done"); 20 | } 21 | 22 | //timer(); 23 | 24 | // You have been hired by temple university 25 | // to work on a graduation checker program. your 26 | // rogram should be able to find the highest grade 27 | // in a list. Create a function that will loop 28 | // through each number in the list and identify 29 | // if it is the highest number. When your program 30 | // finds the highest grade, it should return a 31 | // message telling the user what the highest grade is. 32 | 33 | ("Create a loop that is checking for the highest grade."); 34 | 35 | ("loop, function, number/ integer, list"); 36 | ("looking for highest grade"); 37 | 38 | ("how many grades do we need to check -"); 39 | ("how many items are in list"); 40 | 41 | ("1. create a function."); 42 | ("2. I need a loop to check a list of number (For Loop)."); 43 | ("3. I need to compare the grades to check."); 44 | ("for the highest value."); 45 | ("4. we need a list of numbers"); 46 | ("I need to make a comparision between each number in the list"); 47 | (" the loop will compare each number to the previous number and only "); 48 | (" only carry over the highest value. "); 49 | grades = [70, 88, 75, 90, 100, 71]; 50 | 51 | function gradeChecker() { 52 | let i = 0; 53 | for (i; i < grades.length; i += 1) { 54 | console.log(grades[i]); 55 | } 56 | } 57 | 58 | gradeChecker(); 59 | -------------------------------------------------------------------------------- /unit 4_python/pythonLoops.py: -------------------------------------------------------------------------------- 1 | # Create a function that will determine what 2 | # level of education a college student is in, 3 | # based on the number of years they've been in 4 | # school. 5 | 6 | collegeTitles= ['no college experience yet...','freshman','sophmore','junior','senior'] 7 | 8 | # the len() function id used to count items in a list. 9 | # the code below will return 5, because there are 10 | # 5 items in the list. 11 | print (len(collegeTitles)) 12 | 13 | 14 | def titleBySchoolYear(): 15 | # the input function allows us to pass data directly into 16 | # our code. 17 | # BUT, it will transform the data that you give it 18 | # into a STRING 19 | 20 | # INT is a built-in function that allows us to transform 21 | # anything in its round brackets, into numbers. 22 | # the first three letters of Integer are INT. 23 | year = int(input('How many years of college do you have? ')) 24 | if year == 0: 25 | print(collegeTitles[0]) 26 | elif year== 1: 27 | print(collegeTitles[1]) 28 | elif year== 2: 29 | print(collegeTitles[2]) 30 | elif year== 3: 31 | print(collegeTitles[3]) 32 | elif year== 4: 33 | print(collegeTitles[4]) 34 | elif year== 5 or year== 6: 35 | print('Youre grad school attaining your masters degree.') 36 | elif year== 7 or year== 8: 37 | print('Youre in grad school attaining your doctorate.') 38 | else: 39 | print('error: didnt recognize input.') 40 | 41 | titleBySchoolYear() 42 | 43 | 44 | # A list is a data type for collecting and organizing 45 | # other data types. 46 | 47 | # In order to create a list we need to create variable 48 | # and then use the square brackets to place data inside of. 49 | 50 | GroceryList = ['Water','Apples','Chicken','Window Cleaner'] 51 | tiktokProfile = [GroceryList, 'iankProfile','ewof4oi8hfrio43hf0943hfoi4i/eoiffewo/hionwoei/',30, 10, 100, 10, 10, True] 52 | 53 | # print(tiktokProfile) 54 | 55 | -------------------------------------------------------------------------------- /unit3_javascript/dec6AsyncReview.js: -------------------------------------------------------------------------------- 1 | // 1. Create a function that will accept a word in the 2 | // function parameter 3 | // and return the word in reverse order. For example, the word 4 | // 'pet' should return as 'tep', the word 'book' should return as 5 | //'koob', etc. HINT- There is a built-in function that 6 | // you can use to accomplish this. Please use W3 schools to 7 | // research what function you'll need to use. 8 | 9 | function reveseWorld(word) { 10 | var originalStr = word; 11 | var reversedStr = ""; 12 | for (i = 0; i < originalStr.length; i++) { 13 | reversedStr = originalStr.charAt(i) + reversedStr; 14 | } 15 | console.log("Reversed string: " + reversedStr); 16 | } 17 | 18 | reveseWorld('Ian Kimble') 19 | 20 | const word = "Banana" 21 | const newWord = word.split("") 22 | const reversedWord= newWord.reverse() 23 | console.log(reversedWord) 24 | 25 | // Reverse the Array 26 | // const fruits2 = fruits.reverse(); 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | // 2. Create a function that uses a conditional statement to output a block 40 | // of text that will tell users about a states landmarks. 41 | // Your program should return the following states and their respective 42 | // landmarks. For example, if a user passes in the value of south carolina, 43 | // in the function parameter, your program should return the message: 44 | // ' A landmark in South Carolina is Fort Sumter, where the inital shots of the' 45 | // 'American Civil war took place.' WRITE A COMPLETE SENTENCE! 46 | 47 | // Pennsylvania = Liberty Bell. 48 | // New York = Statue of Liberty. 49 | // California = Hollywood Walk of Fame. 50 | // One additional state and landmark of your choice. 51 | 52 | // If you pass in a state that does not exist in your program, 53 | // your function should return a message saying that the state 54 | // could not be found. 55 | 56 | // HINT: refer back to your notes and use w3schools to reseach if/else conditional statements. 57 | -------------------------------------------------------------------------------- /Async_Activities/asynActivityDec13.md: -------------------------------------------------------------------------------- 1 | ## Please create a new file called asyncActivityDec13.py or asyncActivityDec13.js and complete the following questions. 2 | 3 | ## This assignment is due at the end of class. If you are not present for class this 4 | ## will be do as homework. 5 | 6 | ## good luck. 7 | 8 | 1. Create a function that will determine if a number passed into it's funtion parameters is either positive or negative. For example, If I pass in the number 9 | 10 it should return the message,"this is a positive number", or if I type in the number -12, it should return the message, "this is a negative number. If the user 10 | types in zero, it should return the message; "this is zero". 11 | 12 | 13 | 2. You have been hired by netflix to help them develop a movie ticket program. You 14 | must create a function that will check the movie goers age and return the price of the movie ticket based on that person's age. Provided are the lists of ages and the prices: 15 | 16 | - 10 and under should pay $5.00 17 | - 16 and up should pay $10.00 18 | - 20 an up should pay $15.00 19 | - 65 and up should pay 5.00 20 | 21 | 3. You have been hired by target to assist them with their store member discount software. The would like to make it so that shoppers who have a specific membership tier can save a certain amount of money on the products they buy. provided below are the memberships and the discount amount they should recieve: 22 | 23 | - superShopper should recieve a 10% discount on their items 24 | - megaShopper should recieve a 15% discount on their items 25 | - ultraShopper should receive a 20% discount on their items 26 | 27 | You program should be able to take in the shoppers membership type, the name of the item they are purchasing, and the item price, and should return a message telling the user what the final price of the item is and how much they saved. 28 | 29 | For example: congratulations superShopper, you saved $10.00 on this TV. Your final 30 | item price is $90.00. 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /unit 4_javascript/javaScriptLoops.js: -------------------------------------------------------------------------------- 1 | // Create a function that will determine 2 | // what level of education and title 3 | // a college student, based on the number of years 4 | // they've been in school. 5 | 6 | // 2 sophmore 7 | // 3 junior 8 | // 5 ~ 6- master 9 | // 7 or more - doctorate 10 | 11 | var collegeTitles = ["Freshman", "Sophmore", "Junior", "Senior"]; 12 | console.log(collegeTitles[0]); 13 | 14 | function collegeTitleByYear(year) { 15 | if (year == 1) { 16 | console.log("You are a " + collegeTitles[0]); 17 | } else if (year == 2) { 18 | console.log("You are a " + collegeTitle[1]); 19 | } else if (year == 3) { 20 | console.log("You are a junior."); 21 | } else if (year == 4) { 22 | console.log("You are a senior."); 23 | } else if (year == 5 || year == 6) { 24 | console.log("You are in a masters program."); 25 | } else { 26 | console.log("Error. data not accepted."); 27 | } 28 | } 29 | 30 | // collegeTitleByYear(1); 31 | 32 | // A JS list is a data type that is used to group and 33 | // organize other data types into one variable. 34 | 35 | // we use the square brackets to designate something as 36 | // a list. 37 | 38 | var groceryList = ["water", "apple", "ground beef", "oranges"]; 39 | 40 | var RandomData = [ 41 | "Ian", 42 | 202020, 43 | 202.323, 44 | "coding class", 45 | true, 46 | false, 47 | groceryList, 48 | ]; 49 | 50 | //console.log(RandomData) 51 | // We can organize different items to differnt lists 52 | coding1s = ["black cw", "green cw", "white cw"]; 53 | codings2s = ["red cw", "blue cw"]; 54 | codings3s = []; 55 | 56 | //console.log("These are the coding sneakers we have in stock.") 57 | //console.log(coding1s,codings2s,codings3s) 58 | 59 | deliMeats = ["turkey", "ham", "roastbeef"]; 60 | cleaningSupplies = ["dish soap", "paper towels", "soap"]; 61 | snacks = ["chips", "candy", "soda", "juice"]; 62 | 63 | let numbers = [1, 230, 304, 233]; 64 | 65 | function multiply() { 66 | console.log(numbers * 2); 67 | } 68 | 69 | multiply() -------------------------------------------------------------------------------- /unit3_python/functions.py: -------------------------------------------------------------------------------- 1 | # What is a function? 2 | 3 | # A function is a set of instructions that performs a specific task 4 | # or job. 5 | 6 | # There are 2 variations to python functions: 7 | # Built-In Functions- These are instructions for code that 8 | # has been pre-written in the programming language. All we need to 9 | # do is pass our data into it. 10 | 11 | # example of built-in functions 12 | #print('coding class') 13 | 14 | #name = input('What is your name?') 15 | 16 | #print('hello ' + name) 17 | 18 | # User- Defined Functions- Are custom functions where engineers 19 | # provide the instructions and the data. 20 | 21 | # syntax - how is it written 22 | 23 | # function definition = telling the computer what you want it to do. 24 | def sandwich(): 25 | print('step 1. get bread') 26 | print('step 2. get ingredients') 27 | print('step 3. put it together.' ) 28 | 29 | # function call= runs your code when you tell it to. 30 | #sandwich() 31 | 32 | def multiply(number): 33 | print(number * 825) 34 | #multiply(5) 35 | 36 | 37 | # 11/20/24 38 | 39 | # functions using arithmetic operators 40 | 41 | # What is a function? 42 | 'a function is a set of instructions that performs a ' 43 | 'specific task or job.' 44 | 45 | #print('hello') 46 | # answer =input('what does input do?') 47 | # print(answer) 48 | 49 | def depositMoney(x): 50 | checkAccountAmount = 500 51 | print('Money has been added to your account.') 52 | print(checkAccountAmount + x) 53 | 54 | #depositMoney(28) 55 | 56 | def withdrawMoney(x): 57 | checkAccountAmount = 500 58 | print('Money has been subtracted from your account.') 59 | print(checkAccountAmount - x) 60 | 61 | #withdrawMoney(120) 62 | 63 | def checkAccountBalance(): 64 | checkAccountAmount = 500 65 | print('Here is the current amount in your account: ') 66 | print(checkAccountAmount) 67 | 68 | # checkAccountBalance() 69 | 70 | 71 | 72 | 73 | 74 | 75 | # function to check age 76 | 77 | # function to select an item 78 | 79 | 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /unit 1/ayncActivityDemo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | some function 6 | 7 | 8 | 9 | 10 |

Friday Async Activity

11 |

Sepetember 13th, 2024

12 |
13 |

Use what we've learned this week about HTML and create a page called "asyncActivityDemo.html" 14 | inside of your Unit 1 folder and complete the following: 15 |

16 | 23 |
24 |

For this assignment you will need to use W3schools to conduct research in properly applying the 25 | correct 26 | HTML tags. Some of html tags for this assignment should be familiar, and others will be new.

27 |
28 |

Once you have completed this assignment, use the source control button to commit and publish your work! 29 |

30 | 31 | 34 | 38 |
39 |
40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /jsPopQuiz_6thPeriod.js: -------------------------------------------------------------------------------- 1 | // JavaScript Pop Quiz 2 | // Create a new document called jsPopQuiz.js and answer the following questions. 3 | // When you have completed the quiz, please commit and sync your work so that it can be 4 | // graded. 5 | 6 | let person = prompt("Please enter your name:"); 7 | if (person != null) { 8 | console.log(person) 9 | } 10 | 11 | // RULES 12 | 13 | // You are ONLY permitted to use W3 schools. 14 | // You may NOT use any other external websites. 15 | // No music is permitted during the quiz. 16 | // All phones must be put away- If a phone is visible, you will recieve a verbal warning. 17 | // A second warning will result in an automatic failure. 18 | // Once you've completed your quiz, you may use the computer at your leisure- PLEASE DO NOT 19 | // disrupt/ distract your classmates who are still taking the quiz. 20 | 21 | // 1. How do you declare a variable in JavaScript? Please write your answer 22 | // using JavaScript code. 23 | 24 | // 2. How would you declare a variable where the data WILL NOT change in JavaScript? 25 | // Please write your answer using JavaScript code. 26 | 27 | 28 | // 3. Identify the following JavaScript operators and describe when you would use it? 29 | // Please write your answers using the string data type. 30 | // === 31 | // == 32 | // = 33 | 34 | // 4. Describe a scenario where you would use a comparison operator, 35 | // and then provide a code example based on the scenerio you provided. 36 | 37 | // 5. Describe a scenario where you would use a logical operator, 38 | // and then provide a code example based on the scenerio you provided. 39 | 40 | // 6. Create three variables where when combined will result in the value of 36. 41 | // Please use the console.log () to out put your result. 42 | var a="" 43 | var b="" 44 | var c="" 45 | console.log(a+b+c) 46 | 47 | // 7. Fill in the variable that will output the appropriate result. 48 | 49 | var x ='Please replace this text with your answer.' 50 | var y = x *2 51 | 52 | // Your console log should output the value 28. 53 | console.log(y) 54 | 55 | // 8. What does it "concatenation" mean? Please write your response as a string 56 | // and also provide a code example of two variables being concatenated and output the result 57 | // using the console.log() function. -------------------------------------------------------------------------------- /jsPractice.js: -------------------------------------------------------------------------------- 1 | // data types 2 | // the basic building blocks of JavScript. 3 | 4 | // string 5 | // are pieces of data bound together by quotation marks 6 | "a person name"; 7 | "general text"; 8 | "symbols and even number !@42342@$3"; 9 | "these are all strings"; 10 | "we can use double quotes "; 11 | "we can also use single quotes"; 12 | 13 | // integer 14 | // integers are data types that represent nunmbers 15 | // even decimal numbers 16 | 12; 17 | 12323; 18 | 12141; 19 | 940.0; 20 | 7657.876876; 21 | 567585875785875875875; 22 | 23 | // boolean 24 | // booleans represent data that has a true of false value 25 | true; 26 | 1; 27 | false; 28 | 0; 29 | // variables 30 | // variables are a construct that allows us to store 31 | // data types 32 | // vairables operate on a key/ value pair. meaning- 33 | // we give a value a name to be associated with in 34 | // the programs memory 35 | 36 | // universial variable/ data container 37 | var name = "Ian"; 38 | 39 | // a variable that is expected to change 40 | let loginName = "ik123"; 41 | // a variable that will not change. stays constant 42 | const password = "123abc"; 43 | 44 | // syntax - how we write and format our code. 45 | // when we do not follow the format rules, just like in english 46 | // it can be hard for the computer 47 | // to understand what we want it to do 48 | ("hello goodbye ian name is today good weather. by is!"); 49 | 50 | // when we follow the syntax rules, just like in the real- 51 | // world, we can be understood. 52 | ("hello, my name is Ian. today there is good weather. goodbye"); 53 | 54 | // warnings and errors 55 | varnumber = 10; 56 | console.log("this is the terminal"); 57 | 58 | // syntax rules for variables 59 | // step 1- you first have to declare that it is a variable 60 | // let 61 | // var 62 | 63 | // you can use either var, let, or const 64 | // step 2- we need to give our variable a name 65 | // let name ='' 66 | // var carType ='' 67 | 68 | // step 3 - we need to assign the variable some data 69 | // let name = "chevy"; 70 | // var carType = "sport"; 71 | 72 | // JavaScript version 73 | function mystery_function(x) { 74 | let numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; 75 | let i = 0; 76 | for (i; i < numbers; i++) { 77 | console.log(numbers[i] * x); 78 | } 79 | } 80 | 81 | mystery_function(2); 82 | -------------------------------------------------------------------------------- /Async_Activities/asyncActivitiyNov8.md: -------------------------------------------------------------------------------- 1 | ## Async Activity November 8th, 2024 ## 2 | inside of your unit 3 folder create a new file called 3 | asyncActivityNov8.py OR asyncActivityNov8.js, depending on which programming language you are learning. 4 | 5 | Please follow the directions provided and answer the following questions.This will be do at the end of class. This will need to be submitted whether you are present or not. 6 | 7 | Good luck. 8 | 9 | 1. What does it "string concatenation" mean? Please write your response as a string and also provide a code example of two variables being concatenated and output the result in your terminal. 10 | 11 | - if you are learning JavaScript you will be using the 12 | console.log() function. 13 | 14 | - if you are learning Pyhon you will be using the print() function. 15 | 16 | 2. Please list and describe three rules for creating variable names. Please provide your answer as a string. 17 | 18 | 3. Define each of the following variable name formats then provide a code example of how you would write them. 19 | - Camel case 20 | - Snake case 21 | - Pascal case 22 | 23 | 4. Find the missing variable for each of the following assignment operaor code snippets 24 | 25 | ***Python Version*** 26 | a = '?' 27 | 28 | b = a *100 29 | 30 | print(b) // the output in the terminal should be 300. 31 | 32 | ***JavaScript Version*** 33 | let a = '?' 34 | 35 | let b = a *b 36 | 37 | print(b) // the output in the terminal should be 700. 38 | 39 | 40 | 5. Use the logical operators and evaluate the following variables 41 | to get the requested result. 42 | 43 | ***Python Version*** 44 | - which logical operator would you use to reflect that the result between the code expressions are **true**. use the print function to output the result in the termial, then explain why you would use that particular logical operator using a string. 45 | 46 | x= 10 47 | 48 | y= 2 49 | 50 | z= y*2 51 | 52 | x > 1 _____ z==4 53 | 54 | ***JavaScript Version*** 55 | - which logical operator would you use to reflect that the result between the code expressions below are **false**. Use the console.log() function to output the result in the termial, then explain why you would use that particular logical operator using a string. 56 | 57 | var x= 12 58 | 59 | var y= 2 60 | 61 | var z= 12/4 62 | 63 | x <= 12 _____ z < 10 64 | -------------------------------------------------------------------------------- /unit3_javascript/jsFoundation.js: -------------------------------------------------------------------------------- 1 | // data types = most fundamental building block 2 | // of JS programming language. 3 | 4 | // String data type- are characters bound together 5 | // with quotation marks 6 | "anything wrapped in quotes" 7 | "it can be numbers, letter, and symbols" 8 | "we can create strings with the double quotation marks." 9 | 'we can also write strings with single quotation marks.' 10 | 11 | // Integer data type- numbers 12 | // doesn't matter if its a whole or decimal number 13 | 14313414314 14 | 7656 15 | 354.8775875 16 | 0.8758 17 | 18 | // boolean data type - true or false value. 19 | true 20 | false 21 | 22 | // variables - containers for data 23 | // we create variables by doing the following: 24 | // 1. we need to declare the type of variable we are using. 25 | // 2. we need to give the variable a name. 26 | // 3. we need to give it an equal sign. 27 | // 4. we need to give it data/ a value. 28 | 29 | var weather_city = 'philly' // universal variable keyword. 30 | let weather_temp = 70 // temporary/ expected to change. 31 | let forcast_weekly = 'sunny' // constant/ doesnt change. 32 | const main_city_weather ='Philly' 33 | 34 | 35 | 36 | 37 | var example1 = 'this is a string' // anything wrapped in quotes. 38 | var example2 = true // boolean = true and false. 39 | var example3 = 128932 // integers = numbers. 40 | 41 | // var is short for variable- 42 | // it is the universal keyword for a variable 43 | // when you create a variable you always need to start with 'var' 44 | // OR use 'let' or 'const' BUT these have special contextual usage. 45 | 46 | var userAccount = 'Ian' 47 | var userAddress = '123 main street' 48 | 49 | // var is a keyword- meaning it is a word built into the JavaScript 50 | // language. e cannot use keywords in anyway other 51 | // than how JS knows it 52 | 53 | var userPhoneNumber1= 12321321 54 | var userPhoneNumber2= 56747647887 55 | var phoneNumber= '' 56 | 57 | let='' // special usage- data is expected to change. 58 | 59 | const='' // special usage- data is expected to NOT change. 60 | 61 | // camel case = every word after the first is capitalized. 62 | var tiktokAccountName= 'ian123' 63 | 64 | // snake case = every word is seperated by an underscore. 65 | var tiktok_account_name= 'kimble321' 66 | 67 | // pascal case = every word is capitalized. 68 | var TiktokAccountName= '3eowihio' 69 | -------------------------------------------------------------------------------- /Async_Activities/asyncActivityNov1.md: -------------------------------------------------------------------------------- 1 | ## Async Friday Activity November 1st, 2024 2 | Inside your unit 3 folder create a new file called **asyncActivity_nov1.py OR asyncActivity_nov1.js** 3 | 4 | **(The file type will be based on which programming language your class is learning)** 5 | 6 | Please complete the following questions before class is end. 7 | There are no exceptions for being absent. If you are not present this will be homework and must be submitted before 9pm 11/1/24. 8 | 9 | ### For students learning Python please follow the instructions below 10 | 1. Use what you've learned about data types and variables and create two 11 | variables that when added together will result in the value 245. 12 | Research the print() function on w3schools to output your result in the terminal. 13 | 14 | 2. If you were asked to create a calendar app, which data type would you 15 | use to create the days of the week and which data type would you use for the date? 16 | Your answer can be formatted as a comment or a string. 17 | 18 | 3. What is the difference between the float and integer data types. Your answer can be 19 | formatted as a comment or a string. 20 | 21 | 4. Identify the the correct data type for each scenario: 22 | - A comment section on a picture on instagram. 23 | - A survey form that asks users if they have ever traveled to another country. 24 | Your answer can be formatted as a comment or a string. 25 | 26 | 5. If there were three things you that feel could improve the class, what would those things be and why? 27 | Your answer can be formatted as a comment or a string. 28 | 29 | ### For students learning JavaScript please follow the instructions below 30 | 1. Describe the difference between var, let, and const. Your answer can be 31 | formatted as a comment or a string. 32 | 33 | 2. Use what you've learned about data types and variables and create three 34 | variables that when multiplied together will result in the value 4000. 35 | Research the console.log() function on w3schools to output your result in the terminal. 36 | 37 | 3. Describe a scenario where you would use the let variable and when you 38 | would use a const variable in a computer program. Your answer can be 39 | formatted as a comment or a string. 40 | 41 | 4. If there were three things you that feel could improve the class, what would those things be and why? 42 | Your answer can be formatted as a comment or a string. 43 | -------------------------------------------------------------------------------- /unit 4_python/asyncReviewJan10.py: -------------------------------------------------------------------------------- 1 | 2 | # 1. Create 3 different lists data types that will include things found in grocery store. Make sure your items use the string data type. 3 | # Create a list that includes 5 items that you can find in the frozen food isle. 4 | # Create a list that includes 5 items that you can find in the international food isle. 5 | # Creat a list that includes 5 items that you can find in the produce isle. 6 | 7 | # A list is a data type for grouping together data. We can group together 8 | # different types of data into one variable. We use the [] square brackets 9 | # to designate something as a list. 10 | # Lists can contain other lists and other variables. 11 | 12 | name ='Ian' 13 | grades=[12,70,90,90] 14 | generalList =[name,grades, 19, 12332.324, True, 'Kimble'] 15 | 16 | produceFood = ['grapes','apples','bell pepper','bananas','oranges'] 17 | internationalFood =['soy sauce','oxtail sauce','sushi','chilli sauce','ramen'] 18 | 19 | # 2. With the list provided below; use the print (for python) or console.log (for javascript) functions to return the correct value for the index. 20 | numbers = [1,30,39,50,293,100] 21 | 22 | # Hint: If you get stuck, search for accessing JS list by index or accessing Python list by index depending on which language you are learning 23 | 24 | # print/ console.log the number at index 0 25 | 1 26 | # print/ console.log the number at index 3 27 | 50 28 | 29 | # print/ console.log the number at index 4 30 | 293 31 | 32 | # 3. Create a function that will multiply the number at index 4 in the list above. 33 | def multiplyBy4(x): 34 | result = x * 293 35 | result = x * numbers[4] 36 | print(result) 37 | 38 | multiplyBy4(1) 39 | 40 | 41 | 42 | # create a new document called inputFunction.py 43 | 44 | # the input function is a built-in function that allows 45 | # us to enter data in the terminal and use it in our code. 46 | 47 | # When we use the input function, the data we pass into it 48 | # is always transformed into a string. 49 | 50 | # built-in functions are functions we do not need to write instructions 51 | # for. It is already built into the code. All we need to do is call it. 52 | 53 | def traveledPlace(): 54 | place = input('What place have you been to recently? ') 55 | print(place) 56 | 57 | traveledPlace() 58 | 59 | def compareNumbers(): 60 | userNumber = input('please type in a number? ') 61 | if userNumber > 10: 62 | print('this number is larger than 10') 63 | elif userNumber < 10: 64 | print('this number is smaller than 10.') 65 | else: 66 | print("error") -------------------------------------------------------------------------------- /Q1_ExtraCredit/ExtraCreditPrompts.md: -------------------------------------------------------------------------------- 1 | ## Extra Credit Mini-projects 2 | To earn additional credit, you can complete any of the following development prompts. You can do as many as you would like. 3 | Please be sure to follow the naming conventions and directions to get full credit. These websites will be due at the end of class on Friday, October 25th, 2024. 4 | 5 | For your extra credit work, please put all work inside of a **NEW FOLDER** called Q1_extraCredit 6 | your projects must use CSS grid. 7 | Good Luck! 8 | 9 | ## Requirements 10 | - Please be sure to have the correct folder name and file name for your web app. 11 | - Your website needs to use the CSS grid system to layout your website. 12 | - Your website must contain all of the specified features listed in the prompt. 13 | 14 | 15 | ## Shipping and Delivery Company Webpage Prompt 16 | As an engineer, you have been tasked with developing a webpage for a shipping and delivery company. The client has requested the following features: 17 | 18 | - About Section: A brief overview of the company, its mission, and the services it offers. 19 | - Landing Image: A prominent image on the homepage that features the company's name and sets the tone for the site. 20 | - Shipping Form: A form element where users can provide details about their shipment. The form should include fields for: 21 | - Item name 22 | - Item description 23 | - Weight or dimensions of item 24 | - Destination address 25 | - Shipping origin address 26 | - Contact information for the sender and recipient 27 | 28 | **Please make sure to name your code file as shippingCompany.html** 29 | 30 | ## Art Gallery Website Prompt 31 | You have been hired to design a website for an art gallery. The following elements should be included: 32 | 33 | - About Section: A description of the gallery, its history, and the type of art it showcases. 34 | - Landing Image: A featured image that includes the gallery's name, setting the visual tone of the site. 35 | - Art Showcase: Display six (6) pieces of artwork that the gallery is selling. Each piece should include: 36 | - A name or title of the artwork 37 | - The price of the artwork 38 | - An image of the artwork 39 | 40 | **Please make sure to name your code file as artGallery.html** 41 | 42 | 43 | ## Boys Latin News Blog 44 | You will be developing a news blog for Boys Latin. The following features are required: 45 | 46 | - Landing Image: A header image that represents the blog or school. 47 | - Blog Posts: Three (3) blog posts, each featuring: 48 | - An image relevant to the post 49 | - A short paragraph about current events or updates happening at the school 50 | - the blog post should also include a title and a date when the post was published 51 | 52 | **Please make sure to name your code file as blBlog.html** 53 | 54 | -------------------------------------------------------------------------------- /Async_Activities/asynActivityNov15.md: -------------------------------------------------------------------------------- 1 | ## Async Activity November 8th, 2024 ## 2 | inside of your unit 3 folder create a new file called 3 | asyncActivityNov11.py OR asyncActivityNov11.js, depending on which programming language you are learning. 4 | 5 | Please follow the directions provided and answer the following questions.This will be do at the end of class. This will need to be submitted whether you are present or not. 6 | 7 | The following async questions are program agnostic (meaning that 8 | the questions can be answered regardless of which programming language you are learning) 9 | 10 | Good luck. 11 | 12 | 1. A company is developing a security system that requires 2 factor authorization. This means that the system needs to verify that 2 pieces of data are correct for the person to enter the building. When someone approached the building they need to have the correct name and correct passcode to enter the building. 13 | Which operator would be used here? Please provide a code example of how you would write this and output the result using the print() function for python or the console.log() function for javascript? 14 | 15 | * Hint the value will need to return true 16 | 17 | 18 | 2. A hospital needs to keep track of medical equipment. they are getting a shipment of new ECG machines and Oxygen tanks and need to verify. If they have more than whats needed in their office, they need to send the overflow of equipment back to the manufacturer, but if they have less, the need to request more. 19 | In this scenario, they are supposed to have 10 ECG machines, but only recieved 4, and for the oxygen tanks they are supposed to have 6 in stock, but recieved 9. Which operator would be used here? Please provide a code example of how you would write this and output the result using the print() function for python or the console.log() function for javascript? 20 | 21 | 3. A company is developing a messaging app that allows people to send text message for free. They need to allow users to capture the user data and then send it to someone else. Which operator would be used here? Please provide a code example of how you would write this and output the result using the print() function for python or the console.log() function for javascript? 22 | 23 | 24 | ## for student's learning Python 25 | 4. Use W3 schools to research the input function. then create 2 variable that will contain the values/ data from your inputs. The data you pass in should be your name and your age. Lastly, use string concatenation to combine the new variable you created with the sentence below. 26 | 27 | for students learning Python 28 | print('my name is' + name '. I am ' + age + 'years old.' ) 29 | 30 | ## for student's learning JavaScript 31 | 4. Identify and explain what each of these symbols are 32 | - = 33 | - && 34 | - || 35 | - == 36 | -------------------------------------------------------------------------------- /unit3_python/asyncActivityNov8.py: -------------------------------------------------------------------------------- 1 | # ## Async Activity November 8th, 2024 ## 2 | # inside of your unit 3 folder create a new file called 3 | # asyncActivityNov8.py OR asyncActivityNov8.js, depending on which programming language you are learning. 4 | 5 | # Please follow the directions provided and answer the following questions.This will be do at the end of class. This will need to be submitted whether you are present or not. 6 | 7 | # Good luck. 8 | 9 | # 1. What does "string concatenation" mean? Please write your response as 10 | # a string and also provide a code example of two variables 11 | # being concatenated and output the result in your terminal. 12 | 13 | 'con-cat-ten-a-tion' 14 | 'string concatenation is when you combine two or more strings with' 15 | 'the + (addition symbol) operator.' 16 | 17 | a = 'this is ' 18 | b = 'coding class' 19 | c = a + b 20 | 21 | # - if you are learning JavaScript you will be using the 22 | # console.log() function. 23 | 24 | # - if you are learning Pyhon you will be using the print() function. 25 | 26 | # 2. Please list and describe three rules for creating variable names. 27 | 'const - is used to declare variables that WILL NOT change' 28 | 'let - is used to declare variables that WILL change' 29 | 'var - universal/ default variable, can be used in any context.' 30 | 31 | '1. variables names cannot start with a number' 32 | '2. ' 33 | 34 | # 3. Define each of the following variable name formats then provide a code example of how you would write them. 35 | 36 | # - Camel case - 37 | 38 | # - Snake case - 39 | 40 | # - Pascal case - 41 | ='' 42 | 43 | # 4. Find the missing variable for each of the following assignment operaor code snippets 44 | 45 | # ***Python Version*** 46 | a = '' 47 | 48 | b = a *100 49 | 50 | print(b) # the output in the terminal should be 300. 51 | 52 | # ***JavaScript Version*** 53 | # let a = '?' 54 | 55 | # let b = a *b 56 | 57 | # print(b) // the output in the terminal should be 700. 58 | 59 | # 5. Use the logical operators and evaluate the following variables 60 | # to get the requested result. 61 | 62 | # ***Python Version*** 63 | # - which logical operator would you use to reflect that the result between the code expressions are **true**. use the print function to output the result in the termial, then explain why you would use that particular logical operator using a string. 64 | 65 | # x= 10 66 | 67 | # y= 2 68 | 69 | # z= y*2 70 | 71 | # print( x > 1 ___ z== 4) 72 | 73 | 74 | # ***JavaScript Version*** 75 | # - which logical operator would you use to reflect that the result between the code expressions below are **false**. Use the console.log() function to output the result in the termial, then explain why you would use that particular logical operator using a string. 76 | 77 | # var x= 12 78 | 79 | # var y= 2 80 | 81 | # var z= 12/4 82 | 83 | # x <= 12 _____ z < 10 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /unit3_python/handsOnFunctions.py: -------------------------------------------------------------------------------- 1 | # Discuss the anatomy of a function 2 | 3 | # A function definition provides instructions 4 | # to the computer on what to do with data. 5 | 6 | # data = just data types 7 | 8 | # () curly brackets are called parameters. 9 | # This is where we pass in data in the function 10 | # definition. 11 | 12 | # parameter = placeholder (for data). 13 | 14 | def customizeMyName(name): 15 | print('Your new custom name is the cool guy '+ name) 16 | 17 | # arguement is the data passed inside of the function 18 | # call. 19 | # arguement = evidence or real facts and data. 20 | 21 | # customizeMyName('Ian') 22 | 23 | # Lesson on Conditional Statements 24 | 25 | # Conditional statements are built using 26 | # the 'IF' and 'ELSE' keywords. They allow us 27 | # to make decisions based on the data we receive. 28 | 29 | # a conditional function for if someone is old enough 30 | # to buy GTA VI 31 | 32 | def ageVerification(age): 33 | if age > 17: 34 | print('Congrats! you just purchased GTA 6!') 35 | else: 36 | print('Sorry you must have an adult to get this game.') 37 | 38 | #ageVerification(19) 39 | 40 | 41 | def playerHealth(hp): 42 | if hp > 0 and hp < 99: 43 | print('You are still alive!') 44 | elif hp > 100: 45 | print('Congrats! you have leveled up!') 46 | else: 47 | print('Game over your hp is zero') 48 | 49 | # playerHealth(101) 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | # Activity 59 | 60 | # 1. Create a function that will take a number 61 | # that is passed into the functions parameters and 62 | # convert the number into minutes. For example, a 63 | # value of 2 should return 120 minutes, a value 64 | # of 3 should return 180 minutes, a value of 4 should 65 | # return 240 minutes, etc. 66 | 67 | def hoursToMinutes(hour): 68 | # timeConversion = hour * 60 69 | # print('There are ' + str(timeConversion) + ' minutes in ' + str(hour) + ' hours') 70 | print(hour * 60) 71 | #hoursToMinutes(7.5) 72 | 73 | # Conditional Statements 74 | # IF/ ELSE keywords are used to run different outcomes 75 | # based on the data our function recieves. 76 | 77 | def alarmClock(time): 78 | if time == 6: 79 | print('Ring alarm!! TIME TO GET UP!!') 80 | else: 81 | print('alarm is not active.') 82 | 83 | #alarmClock(4) 84 | 85 | def lightControl(room): 86 | if room == 1: 87 | print('room light is on') 88 | else: 89 | print('room is off') 90 | 91 | # lightControl(1) 92 | 93 | def elevator(floor): 94 | if floor == 'b': 95 | print('you are in the basement') 96 | elif floor == 1: 97 | print('you are on the first floor') 98 | elif floor == 2: 99 | print('you are on the second floor') 100 | elif floor == 3: 101 | print('you are on the third floor') 102 | else: 103 | print('please enter a floor number') 104 | 105 | elevator(2) 106 | 107 | -------------------------------------------------------------------------------- /unit 2/OfficeHours_optional_Assignment.html: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | Express Shipping 19 | 34 | 35 | 36 |
37 |

Express Shipping

38 |
39 | 40 |
41 |

About us

42 |

43 | orem Ipsum is simply dummy text of the printing and typesetting 44 | industry. Lorem Ipsum has been the industry's standard dummy text ever 45 | since the 1500s, when an unknown printer took a galley of type and 46 | scrambled it to make a type specimen book. It has survived not only five 47 | centuries, but also the leap into electronic typesetting, remaining 48 | essentially unchanged. It was popularised in the 1960s with the release 49 | of Letraset sheets containing Lorem Ipsum passages, and more recently 50 | with desktop publishing software like Aldus PageMaker including versions 51 | of Lorem Ipsum. 52 |

53 |
54 |
55 |

Shipping Form

56 |
57 |
58 |
59 |
60 | 61 |
62 | 63 |
64 |
65 |
66 | 67 |
68 |
69 | 70 |
71 |
72 | 73 | 77 |
78 |
79 | 82 |
83 | 84 |
85 | 86 | 87 | -------------------------------------------------------------------------------- /unit3_javascript/asyncReviewNov15.js: -------------------------------------------------------------------------------- 1 | // 1. A company is developing a security 2 | // system that requires 2 factor authorization. 3 | // This means that the system needs to verify that 4 | // 2 pieces of data are correct for the person to 5 | // enter the building. When someone approached the 6 | // building they need to have the correct name and 7 | // correct passcode to enter the building. 8 | // Which operator would be used here? Please provide a 9 | // code example of how you would write this and output 10 | // the result using the print() function for python 11 | // or the console.log() function for javascript? 12 | 13 | var username ='Ian' 14 | var password='123' 15 | 16 | var securitySystemUsername ='Ian' 17 | var securitySystemPasscode ='123' 18 | 19 | console.log(username == securitySystemUsername) 20 | 21 | "logical operator" 22 | 23 | 24 | // * Hint the value will need to return true 25 | 26 | // 2. A hospital needs to keep track of medical equipment. 27 | // they are getting a shipment of new ECG machines and 28 | // Oxygen tanks and need to verify. If they have more 29 | // than whats needed in their office, they need to send 30 | // the overflow of equipment back to the manufacturer, 31 | // but if they have less, the need to request more. 32 | // In this scenario, they are supposed to have 10 ECG machines, 33 | // but only recieved 4, and for the oxygen tanks they are 34 | // supposed to have 6 in stock, but recieved 9. Which 35 | // operator would be used here? Please provide a 36 | // code example of how you would write this and 37 | // output the result using the print() function for 38 | // python or the console.log() function for javascript? 39 | 40 | 'comparison, because we need to compare if we have more or less than' 41 | 'what we ordered.' 42 | var ecgOrderRequest= 3 43 | var ecgShipmentRecieved= 20 44 | 45 | // 3. A company is developing a messaging app that allows people 46 | // to send text message for free. They need to allow users 47 | // to capture the user data and then send it to someone else. 48 | // Which operator would be used here? Please provide a code 49 | // example of how you would write this and output the result 50 | // using the print() function for python or the console.log() 51 | // function for javascript? 52 | 53 | 'assignment operator' 54 | 55 | var messageToSend= 'hello class' 56 | var messageToBeRec= messageToSend 57 | 58 | // ## for student's learning Python 59 | // 4. Use W3 schools to research the input function. then create 2 variable that will contain the values/ data from your inputs. The data you pass in should be your name and your age. Lastly, use string concatenation to combine the new variable you created with the sentence below. 60 | 61 | // for students learning Python 62 | // print('my name is' + name '. I am ' + age + 'years old.' ) 63 | 64 | // ## for student's learning JavaScript 65 | // 4. Identify and explain what each of these symbols are 66 | 67 | // = 68 | 'single equal sign: assignment operator' 69 | 70 | // && 71 | 'double ampersand: logical AND operator' 72 | 73 | // || 74 | 'double vertical slash: logical OR operator' 75 | 76 | // == 77 | 'double equal: comparison SAME/EQUAL operator' -------------------------------------------------------------------------------- /Async_Activities/asyncActivityJan24.md: -------------------------------------------------------------------------------- 1 | # Async Activity January 24th, 2025 2 | 3 | Please create a new file called asyncActivityJan24.py or asyncActivityJan24.js and complete the following questions. 4 | 5 | This assignment is due at the end of class. If you are not present for class, this assignment will need to be completed as homework before 11pm tonight (Jan. 24, 2025). 6 | 7 | ## IMPORTANT 8 | 9 | Once you've completed the assignment, please do the following steps 10 | to ensure your assignment is submitted properly. 11 | 12 | - Commit and sync your work to your github repository. - DO NOT PUT THE LINK TO YOU CODESPACES HERE- IT MOST BE YOUR REPOSITIORY. 13 | - Drop the link to your repository in the following link below 14 | - [Async Activity Jan.24, 2025 Submission Link](https://forms.gle/PNqjQpwwnsBcj4H57) 15 | 16 | 17 | ### FOR BOTH PYTHON AND JAVASCRIPT STUDENTS 18 | 19 | numberList = [1,23,56,3,56,3,20,200] 20 | 1. Create a function that uses a while loop to print/ console.log the list but in reverse order. 21 | 22 | ### FOR PYTHON STUDENTS ONLY 23 | 24 | 2. You have been hire as a software engineer for amazon to develop a new 2-factor login system. Users will need to provide 2 passwords to get access to their amazon account. Your new password function should run on a while loop. Your function will need to ask the user to enter their normal password, which should be a string. If the password is correct, they will then need to enter a second password which should be a float. If either of these passwords are incorrect, it should tell the user to try again. If the user is able to enter both passwords correctly, they should get a confirmation and congratulation message saying they can now access their account. 25 | 26 | HINT: you will need to use a conditional (IF/ELSE) statement 27 | 28 | ### FOR JAVASCRIPT STUDENTS ONLY 29 | 30 | 2. Create a countdown timer that takes in an number passed in from a HTML document. Your HTML document should be called countdownLoop.html your countdown timer function should use a while loop that will start the count based on the number you provide and then stop at zero (for example; If I type in the number 5 my countdown timer should output 5,4,3,2,1,0 in the console.log). The numbers counting down should be displayed in the your browsers console (right-click to open the inspect tool and the hover over the icon that says console.) 31 | 32 | Provided below is the html template you can use for your code. 33 | The template already has the input field written and will output your entry in the console. 34 | You need to finish this code by adding your countdown function. 35 | 36 | you can write you function between the 55 | 56 | 57 | ``` 58 | -------------------------------------------------------------------------------- /spadesUi.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Spades Game UI 7 | 18 | 19 | 20 |

Spades - Two Player Layout

21 | 22 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /unit3_javascript/asyncActivityNov8.js: -------------------------------------------------------------------------------- 1 | // # ## Async Activity November 8th, 2024 ## 2 | // # inside of your unit 3 folder create a new file called 3 | // # asyncActivityNov8.py OR asyncActivityNov8.js, depending on which programming language you are learning. 4 | 5 | // # Please follow the directions provided and answer the following questions.This will be do at the end of class. This will need to be submitted whether you are present or not. 6 | 7 | // # Good luck. 8 | 9 | // # 1. What does "string concatenation" mean? Please write your response as 10 | // # a string and also provide a code example of two variables 11 | // # being concatenated and output the result in your terminal. 12 | 13 | "con-cat-ten-nation" 14 | 'String concatenation is the process of combineing 2 strings together' 15 | 'using the + (addtion) operator.' 16 | 17 | var firstWord =' good afternoon ' 18 | var secondWord =' coding class' 19 | 20 | console.log(firstWord + secondWord) 21 | 22 | // # - if you are learning JavaScript you will be using the 23 | // # console.log() function. 24 | 25 | // # - if you are learning Pyhon you will be using the print() function. 26 | 27 | // # 2. Please list and describe three 28 | // rules for creating variable names. 29 | 30 | 'Variable names should confrom' 31 | 'to the formatting rules; camel case, snake case, pascal' 32 | 33 | '1. variables cannot start with numbers or symbols. they must' 34 | 'start with a letter.' 35 | '2. variable names are case sensative.' 36 | '3. variable names cannot be a JS keyword/ reserved word.' 37 | 38 | // # 3. Define each of the following variable name formats then provide a code example of how you would write them. 39 | 40 | // # - Camel case - every word after the first word is capitalized. 41 | var firstNameLastName ='' 42 | // # - Snake case - every word is seperated with an underscore. 43 | var first_Name_last_Name='' 44 | // # - Pascal case - every word is capitalized- still no spaces 45 | var FirstNameLastName ='' 46 | 47 | // # 4. Find the missing variable for each of the following assignment operaor code snippets 48 | 49 | // # *** Python Version*** 50 | // a = '' 51 | 52 | // b = a *100 53 | 54 | // print(b) # the output in the terminal should be 300. 55 | 56 | // # *** JavaScript Version*** 57 | let a = 350 58 | 59 | let b = a * 2 60 | 61 | console.log(b) // the output in the terminal should be 700. 62 | 63 | // # 5. Use the logical operators and evaluate the following variables 64 | // # to get the requested result. 65 | 66 | // # ***Python Version*** 67 | // # - which logical operator would you use to reflect that the result between the code expressions are **true**. use the print function to output the result in the termial, 68 | // then explain why you would use that particular logical operator using a string. 69 | 70 | // need to figure out which LOGICAL operator we need to use 71 | // to print out TRUE 72 | 73 | x= 10 // 10 74 | 75 | y= 2 // 2 76 | 77 | z= y*2 // 4 78 | 79 | console.log( x > 1 && z== 4) 80 | // is 10 greater than 1= true 81 | // is 4 equal to 4= true 82 | 83 | // # ***JavaScript Version*** 84 | // # - which logical operator would you use to 85 | // reflect that the result between the code expressions 86 | // below are **false**. Use the console.log() function to output the result in the termial, then explain why you would use that particular logical operator using a string. 87 | 88 | // baased on the variables and their comparisons, 89 | // which logical operator will we use to return false. 90 | 91 | var x= 12 92 | 93 | var y= 2 94 | 95 | var z= 12/y 96 | 97 | console.log(x <= 12 ____ z < 10) 98 | -------------------------------------------------------------------------------- /unit3_python/pythonFoundation.py: -------------------------------------------------------------------------------- 1 | # data types = datas are the fundamnetal building blocks 2 | # of python. 3 | 4 | # strings= characters wrapped around quotation marks. 5 | "this is a string//223093ru" 6 | "the computer does not care for spelling." 7 | "it only cares if the characters we write are in quotes" 8 | 9 | # integers= whole numbers 10 | 120 11 | 11 12 | 134 13 | 13343243542532 14 | 15 | # float = decimal numbers 16 | 234.67 17 | 986.9879 18 | 19 | # boolean = true or false value. 20 | True, 1 21 | False, 0 22 | 23 | # variable = a container for data 24 | # varibles consist of three parts: 25 | # 1. we have a variable/ container name 26 | # 2. we have the euqal sign 27 | # 3. we have the value/ data 28 | 29 | john= 82 30 | mary= 80 31 | john= 100 32 | beth= 70 33 | tom= 90 34 | 35 | print(john) 36 | 37 | 38 | 39 | 40 | 41 | # Python variables are just containers for data 42 | email= 'iank123@gmail.com' # string data type 43 | checkingAccount= 200000.43 # float data type 44 | didYouGetFluShot = True # boolean data type 45 | userLogin_passwordReset_premiumMember = '' 46 | user_password = '' 47 | discount25= .25 48 | 49 | # Camel Case = when naming a variable, 50 | # every word after the first word is capitalized 51 | loginName='' 52 | resetPasswordCode ='' 53 | 54 | # Snake Case = when naming a variable, every word after 55 | # the first word is spaced out with an underscore. 56 | login_name='' 57 | reset_password_code='123abc' 58 | 59 | # Pascal Case = when naming a variable, every 60 | # new word is capitalized 61 | LoginName= '' 62 | ResetPasswordCode ='' 63 | 64 | 65 | 66 | 67 | 68 | # camel Case= every new word starts with a capital letter 69 | # the letter are supposed to resemble a camels hump 70 | homeAddress = '123 Main street' 71 | telephoneNumber= 123214343243 72 | telphoneBillPaid= False 73 | balance = 300.00 74 | 75 | # snake case = every word is seperated by an underscore 76 | # the underscore is supposed to represent a snake 77 | cellular_Code_by_User_state_reset_Password = '970e2197e09217209' 78 | 79 | # pascal case= every word word is capitalized 80 | # pascal is a name so it mimics First name Last name capitalizatoin 81 | FamilyDiscountCode25 = .25 82 | FamilyDiscountCode50=.50 83 | FamilyDiscountCode100= 1.00 84 | 85 | x = 20 # we are assigning the value of 20 to the variable x 86 | 87 | x = x + 3 # we are assigning the value of x and then adding 3 to it. 88 | 89 | # single equal sign (=) # the equal sign in python has nothing to do with math. 90 | # we are assigning a value-NOT getting a result. 91 | 92 | # double equal sign (==) is used for comparisons 93 | valueA= 98 94 | valueB= 100 95 | 96 | print(valueA == valueB) 97 | 98 | 99 | searchByName = 'ian215code' 100 | 101 | instagramUsername = 'ian215code' 102 | numberOfPosts= 20 103 | numerOfLikes = 100 104 | bookMarks = 10 105 | 106 | edit= '' 107 | 108 | # every word is capitalized 109 | EditProfile = False 110 | EditProfileByName ='' 111 | EditReset= '' 112 | 113 | # snake case= evey word is seperated by a underscore. 114 | edit_profile_reset_password_by_text_msg='' 115 | 116 | edit_profile_reset_password_by_email= '' 117 | 118 | edit_profile_reset_password_by_phone ='' 119 | 120 | # camel case = every word after the first word is capitalized. 121 | editPictureImage='' 122 | editPictureText='' 123 | editPictureFilter='' 124 | 125 | followers= 100 126 | Follwing= 106 127 | totalFollows= followers +Follwing 128 | 129 | productInventory = 12 130 | productSold = 8 131 | totalInventoryLeft ='' 132 | 133 | print(totalFollows) 134 | 135 | name = input('what is your name') 136 | print(name) -------------------------------------------------------------------------------- /unit 4_javascript/asyncReviewJan31.py: -------------------------------------------------------------------------------- 1 | # # In a complete sentence, what is the problem asking you to do ? 2 | # "This problem is asking me to develop a looping program that take in a" 3 | # "number and returns the average letter grade" 4 | 5 | # #Where there any parts of the question that don't make sense, 6 | # # if so write them down in complete sentences. 7 | # "Calculation to average out the grades and" 8 | # "show the new letter grade" 9 | # grades = [100,50,70,70,80,90,100] 10 | # ScoreTotal = 508 # need to ADD all the scores 11 | # numberOfScores= len(grades) # need to count all of the scores 12 | # ScoreTotal/ numberOfScores # need to DIVIDE all the scores 13 | 14 | # # Please write down the keywords and phrases that will 15 | # # help you solve this problem ? 16 | 17 | # " prompts says the word repeat = loop" 18 | # " enter numerical grade = enter an integer or float data type" 19 | # " each time new number is entered it needs to perform a" 20 | # " calculation = arithmatic operators" 21 | # " I need to compare the number grade to the letter grade =" 22 | # " if/else, comparision operators" 23 | # " return a letter grade = we need to give back a string data type" 24 | 25 | # # Does the problem provide you with any input data? 26 | # # Does it tell you what type of data your program needs 27 | # # to take in ? 28 | 29 | # "we need to pass in floats and/ or integers" 30 | 31 | 32 | # # Does the problem provide you with desired output data? 33 | # # Does it tell you that your program needs to give somthing 34 | # # back to the user ? 35 | 36 | # "we need to give the user back a letter grade, " 37 | # "based on the average numbers" 38 | 39 | 40 | 41 | 42 | 43 | 44 | # Psuedocode for RPS Game PoC 45 | 46 | # I need to create a game that runs rps, where the user 47 | # and program take turns, and the after the 3rd turn 48 | # the program determines who the winner is. 49 | 50 | # 1. I need to have variables for the values of rock, paper, 51 | # and scissor. 52 | 53 | # 2. I need to create a function that runs on a loop 54 | # that runs 3x. these 3 loops represent the 3 turns the 55 | # user has. 56 | 57 | # 3. I need a to create a way to pass in the user input 58 | 59 | # 4. I need a way generate a random selection from the program 60 | 61 | # 5. I need a way to compare the user selection to 62 | # the random selection 63 | 64 | # 6. I need a way to count the score. 65 | 66 | # 7. I need a way to show the user who won/loss 67 | 68 | 69 | import random 70 | 71 | def rpsGame(): 72 | # rpsValues = ['rock', 'paper','scissors'] 73 | userScore = 0 74 | programScore = 0 75 | turn = 0 76 | while turn < 3: 77 | userSelects = int(input("please select an option 0= rock, 1= paper, 2= scissors: ")) 78 | print(userSelects) 79 | programSelect= random.randrange(0,2) 80 | print(programSelect) 81 | if userSelects== 0 and programSelect== 0: 82 | print('this is a draw, Rock and Rock cancel out') 83 | elif userSelects== 0 and programSelect== 1: 84 | print('program wins, paper beat rock') 85 | programScore += 1 86 | elif userSelects== 0 and programSelect== 2: 87 | print('user wins, rock beats scissors') 88 | userScore += 1 89 | else: 90 | print('something went wrong check your code.') 91 | turn +=1 92 | if userScore > programScore: 93 | print('user wins!') 94 | elif programScore> userScore: 95 | print('program wins') 96 | else: 97 | print("game is a draw") 98 | 99 | rpsGame() 100 | -------------------------------------------------------------------------------- /unit3_javascript/operatorReview.js: -------------------------------------------------------------------------------- 1 | // Arithmetic operators - Writing code expressions 2 | // that perform math operations 3 | 4 | // examples of apps that use arithmetic operators 5 | 6 | // depositing money into a digital account 7 | var depositAmount = 300009; 8 | var checkingAccount = 1000; 9 | var savingsAccount = 2000; 10 | 11 | //console.log(depositAmount + checkingAccount); 12 | // function- set of instructions that performs a job 13 | 14 | // peer to peer money transfers 15 | var amountBeingSent = ""; 16 | var userAccounTotal = ""; 17 | 18 | // Assignment - giving variables values. 19 | // we use the single equal sign (=) to assign data to variables 20 | 21 | // sneakers is the varable. We are ASSIGNING the value of 200.00 22 | // with the equal sign. 23 | var sneakers = 200.0; 24 | sneakers *= 0.3; 25 | 26 | //console.log(sneakers); 27 | 28 | // Comparision - analyzing values. checking to see if a certain 29 | // condition is met. 30 | // == 31 | // === 32 | // != 33 | 34 | // Logical 35 | 36 | function doMath() { 37 | console.log(2 + 60); 38 | } 39 | 40 | function ageVerification(age) { 41 | if (age >= 21) { 42 | console.log("You may purchase this item."); 43 | } else { 44 | console.log("You are restricted from buying these items."); 45 | } 46 | } 47 | 48 | //ageVerification(25); 49 | 50 | function itemVerification(item) { 51 | // Check to see if the store has an item 52 | let NorthEastStore = ["bike", "gift card", "cake"]; 53 | let NorthPhillyStore = []; 54 | let SouthPhillyStore = []; 55 | let SouthWestStore = []; 56 | let upTownStore = []; 57 | if (neStore.includes(item)) { 58 | console.log(`This location does have a ${item}.`); 59 | } else { 60 | console.log(`This location does not have a ${item}.`); 61 | } 62 | } 63 | 64 | // Test the function 65 | // itemVerification("tv"); 66 | 67 | // function itemVerification(item) { 68 | // // Stores and their inventory 69 | // let stores = { 70 | // neStore: ["bike", "gift card", "cake"], 71 | // northStore: ["candy", "bike", "tv"], 72 | // upTownStore: ["tv", "bike", "game console"], 73 | // westStore: [""], 74 | // swStore: ["gift card"], 75 | // }; 76 | 77 | // // Loop through each store 78 | // for (let store in stores) { 79 | // if (stores[store].includes(item)) { 80 | // console.log(`The ${store} has a ${item}.`); 81 | // } else { 82 | // console.log(`The ${store} does NOT have a ${item}.`); 83 | // } 84 | // } 85 | // } 86 | 87 | // // Test the function 88 | // itemVerification("tv"); 89 | 90 | // the function definition is just telling the 91 | // computer what our function does 92 | function doMath(number) { 93 | console.log(number + 1000); 94 | console.log(number - 230); 95 | } 96 | 97 | // this is the computer actually doing our instructions 98 | doMath(4000); 99 | 100 | function verifyAge(age) { 101 | if (age >= 21 && age < 45) { 102 | console.log("You may have access to this site."); 103 | } else { 104 | console.log("You may NOT have access to this site."); 105 | } 106 | } 107 | verifyAge(50); 108 | 109 | function positiveOrNegative(number) { 110 | console.log("coding is working "); // this is just for testing 111 | console.log(number); // this is just for testing 112 | if (number >= 1) { 113 | console.log("this is a postive number."); 114 | } else if (number < 0) { 115 | console.log("this is a negative number."); 116 | } else if(number== 0){ 117 | console.log('this is the number 0.') 118 | } else{ 119 | console.log('sorry, this is not a number.') 120 | } 121 | } 122 | 123 | positiveOrNegative(9); 124 | -------------------------------------------------------------------------------- /unit 4_python/whileLoops.py: -------------------------------------------------------------------------------- 1 | import random 2 | 3 | # Loops - A construct in programming 4 | # where instructions will repeat over and 5 | # over until a specific condition is met. 6 | 7 | # While loop- is special type of loop where 8 | # instructions will repat themselves 9 | # so long as a condition is true. 10 | 11 | def repeatMsg(): 12 | x = 2 13 | while x == 2: 14 | print('this message will repeat forever. ') 15 | 16 | def passwordLoops(): 17 | correctPw= '123abc' 18 | userPw='' 19 | while userPw != correctPw: 20 | print('incorrect pw. Try again') 21 | userPw=input('please enter your password: ') 22 | # if userPw == correctPw: 23 | else: 24 | print('congrats') 25 | 26 | # passwordLoops() 27 | # 28 | def inventoryLoop(): 29 | userInventory =[] 30 | pickupItem= input('what item are you picking up?: ') 31 | while len(userInventory) < 4: 32 | userInventory.append(pickupItem) 33 | print('these are the items in your bag: ') 34 | print(userInventory) 35 | pickupItem= input('what item are you picking up?: ') 36 | 37 | # inventoryLoop() 38 | 39 | # def replaceInventoryItem() save for another day 40 | # def removeInvetoryItem() save for another day 41 | 42 | # def rngGame(): 43 | # randomNumber = random.randrange(1, 11) 44 | # print(randomNumber) 45 | # userAnswer ='' 46 | # while randomNumber != userAnswer: 47 | # userInputGuess= int(input("Guess a number between 1 and 10: ")) 48 | # userAnswer= userInputGuess 49 | # print('Incorrect guess. Try again') 50 | # else: 51 | # print('This is the correct answer.') 52 | 53 | # rngGame() 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | def tripSavings(): 69 | accountBalance = 0 70 | tripGoal = 8000 71 | while accountBalance < tripGoal: 72 | # So long as the statement above is true; it will repeat 73 | depositAmount = int(input('How much do you want to deposit? :')) 74 | accountBalance += depositAmount 75 | print('Your new account balance is '+ str(accountBalance)) 76 | 77 | #tripSavings() 78 | 79 | # decrease health 80 | def damageCounter(): 81 | player1 = 100 82 | while player1 > 0: 83 | damage = int(input("How much damage is this attack doing? :")) 84 | player1 -=damage 85 | print('Player 1 health is now '+str(player1) +' healthpoints') 86 | 87 | #damageCounter() 88 | 89 | 90 | 91 | 92 | # Create a function that uses a loop to check a password. 93 | # IF the password is correct, the loop will stop. IF the password 94 | # is incorrect the loop will continue. 95 | 96 | # add in code that will provide a confirmation message to 97 | # the user. For example; if the password is correct, it should 98 | # congratulate the user. and if its inccorect it 99 | # should tell them to try again. 100 | 101 | def passwordSystem(): 102 | password = 'fastCar' 103 | userPassword = '' 104 | while password != userPassword: 105 | userAttempt = input('what is the password? ') 106 | userPassword = userAttempt 107 | print('Sorry, try again') 108 | else: 109 | print('Congrats, that is correct.') 110 | 111 | 112 | 113 | 114 | 115 | def TripSavingsLoop(): 116 | accountBalance = 0 117 | depositAmount = 0 118 | goalAmount = 4000 119 | while accountBalance < goalAmount: 120 | depositAmount =input("How much money are you depositing? ") 121 | accountBalance += int(depositAmount) 122 | print("new account balance = "+ str(accountBalance)) 123 | 124 | TripSavingsLoop() -------------------------------------------------------------------------------- /unit3_python/asnycActivityReviewNov15.py: -------------------------------------------------------------------------------- 1 | # ## Async Activity November 15th, 2024 ## 2 | # inside of your unit 3 folder create a new file called 3 | # asyncActivityNov15.py OR asyncActivityNov11.js, depending on which programming language you are learning. 4 | 5 | # Please follow the directions provided and answer the following questions.This will be do at the end of class. This will need to be submitted whether you are present or not. 6 | 7 | # The following async questions are program agnostic (meaning that 8 | # the questions can be answered regardless of which programming language you are learning) 9 | 10 | # Good luck. 11 | 12 | # 1. A company is developing a security system that requires 2 factor 13 | # authorization. This means that the system needs to verify 14 | # that 2 pieces of data are correct for the 15 | # person to enter the building. When someone 16 | # approached the building they need to have the correct 17 | # name and correct passcode to enter the building. 18 | # Which operator would be used here? Please provide a code 19 | # example of how you would write this and output the 20 | # result using the print() function for python or the console.log() function for javascript? 21 | 22 | # * Hint the value will need to return true 23 | # keywords/ things we know 24 | # - we know we need to use 1 o the 4 operators that we've learned 25 | # - we need two pieces of a data that will both be true 26 | # we need the value to be true 27 | 28 | # we are using a logical operator 29 | name = 'Bill' 30 | password ='123' 31 | 32 | securitySystemName ='Bill' 33 | securritySystemPassword='123' 34 | 35 | print(name == securitySystemName and password == securritySystemPassword) 36 | 37 | # 2. A hospital needs to keep track of medical equipment. 38 | # they are getting a shipment of new ECG machines and Oxygen 39 | # tanks and need to verify. If they have more than whats needed 40 | # in their office, they need to send the overflow of e 41 | # quipment back to the manufacturer, but if they have less, 42 | # they need to request more. 43 | # In this scenario, they are supposed to have 44 | # 10 ECG machines, but only recieved 4, and 45 | # for the oxygen tanks they are supposed to have 6 in stock, 46 | # but recieved 9. 47 | # Which operator would be used here? 48 | # Please provide a code example of how you would 49 | # write this and output the result using the print() 50 | # function for python or the console.log() function for javascript? 51 | ecgRequest = 10 52 | ecgShipment = 4 53 | oxygenRequest= 6 54 | oxygenShipment= 9 55 | 56 | # Comparion operator 57 | 58 | # 3. A company is developing a messaging app that 59 | # allows people to send text message for free. They need 60 | # to allow users to capture the user data and then send it 61 | # to someone else. Which operator would be used here? Please 62 | # provide a code example of how you would write this and 63 | # output the result using the print() function for python 64 | #or the console.log() function for javascript? 65 | # assignment operator 66 | senderMsg ='send this to my friends' 67 | recieverMsg = senderMsg 68 | print(recieverMsg) 69 | 70 | # ## for student's learning Python 71 | # 4. Use W3 schools to research the input function. then create 2 72 | # variable that will contain the values/ data from your inputs. 73 | # The data you pass in should be your name and your age. 74 | # Lastly, use string concatenation to combine the new 75 | # variable you created with the sentence below. 76 | 77 | # for students learning Python 78 | # print('my name is' + name '. I am ' + age + 'years old.' ) 79 | print("Enter your name:") 80 | x = input() 81 | print("Hello, " + x) 82 | 83 | # ## for student's learning JavaScript 84 | # 4. Identify and explain what each of these symbols are 85 | # - = 86 | # - && 87 | # - || 88 | # - == -------------------------------------------------------------------------------- /Async_Activities/asyncActivityJan31.md: -------------------------------------------------------------------------------- 1 | # Async Activity January 17th, 2025 2 | 3 | Please create a new file called asyncActivityJan31.py or asyncActivityJan31.js and complete the following questions. 4 | 5 | This assignment is due at the end of class. If you are not present for class, this assignment will need to be completed as homework before 11pm tonight (Jan. 31, 2025). 6 | 7 | ## IMPORTANT 8 | 9 | Once you've completed the assignment, please do the following steps 10 | to ensure your assignment is submitted properly. 11 | 12 | - Commit and sync your work to your github repository. - DO NOT PUT THE LINK TO YOU CODESPACES HERE- IT MOST BE YOUR REPOSITIORY. 13 | - Drop the link to your repository in the following link below 14 | - [Async Activity Jan.31, 2025 Submission Link](https://forms.gle/NDv17JRNQdn32HNv9) 15 | 16 | 17 | 18 | # These questions are code agnostic (meaning it does not matter which coding language you are learning, you should be able to answer them. ) 19 | 20 | ## Read through the prompt carefully, then answer the following quesitons 21 | 22 | Boys Latin has hired you to develop a grade checker program for students. 23 | Your program should be able to do the following; allow a student to enter a numerical grade, then return the appropriate letter grade. For example; if a student enters the number 80, the program should give back the letter grade "B". 24 | Your program should then repeat asking the user to enter another numerical grade. Each time a user enters another numerical grade, it should perform some calculation to average out the grades and show the new letter grade, For example: if the user enters the number 70, and the 100, they're average should be an 85, which is a B. 25 | 26 | 1. In a complete sentence, what is the problem asking you to do ? 27 | 28 | 2. Where there any parts of the question that don't make sense, if so write them down in complete sentences. 29 | 30 | 3. Please write down the keywords and phrases that will help you solve this problem ? 31 | 32 | 4. Does the problem provide you with any input data? Does it tell you what type of data your program needs to take in ? 33 | 34 | 5. Does the problem provide you with desired output data? Does it tell you that your program needs to give somthing back to the user ? 35 | 36 | 6. Using Pseudocode (fake code), write down Step by step how you think you can solve this problem. Remember, this does not have to be code. 37 | 38 | ## Read through the prompt carefully, then answer the following quesitons 39 | You are working on a game concept with several other engineers and you need to provide them with a simple proof of concept. 40 | For now, you have suggested that your game work on a RPS (rock, paper, scissors) loop. When a user plays, rock, paper, or scissors, the computer will randomly select one of the 3 options as well. Based on the results of a match, Your program should conditionally determine who won, loss, or if it was a draw based on the values. The game should only allow the player to play 3 for 3 turns, and inform the player if the won or lost that match at the end (this RPS game is a best of 2 out of 3 format.) 41 | 1. In a complete sentence, what is the problem asking you to do ? 42 | 43 | 44 | 2. Where there any parts of the question that don't make sense, if so write them down in complete sentences. 45 | 46 | 3. Please write down the keywords and phrases that will help you solve this problem ? 47 | 48 | 4. Does the problem provide you with any input data? Does it tell you what type of data your program needs to take in ? 49 | 50 | 5. Does the problem provide you with desired output data? Does it tell you that your program needs to give somthing back to the user ? 51 | 52 | 6. Using Pseudocode (fake code), write down Step by step how you think you can solve this problem. Remember, this does not have to be code. -------------------------------------------------------------------------------- /spadesUi2v2.html/spades2v2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Spades Game UI 7 | 18 | 19 | 20 |

Spades - Four Player Layout

21 | 22 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /Class_Projects/RestuarantProject_instructions.md: -------------------------------------------------------------------------------- 1 | ## Restuarant Website Overview 2 | In this week’s lesson, you will continue getting hands-on learning on HTML and CSS skills by working on a collaborative group project. Each group will design and develop the interface for a fictional restuarant of your own creation using HTML and CSS. Each group's restuarant shop must have a unique feature or selling point that makes it stand out amongst other restuarants (for example a donut shop luandry mat). The project must meet the criteria outlined below to receive full credit. 3 | 4 | ### Criteria 5 | - Group Size: Each group can have a maximum of four (4) students. Groups larger than four must receive approval from the instructor. 6 | 7 | **Note: You are permitted to work independently, in a duo, or in a trio as well.** 8 | 9 | - Code Collaboration: Each group will contribute code from one of the group member’s repository. 10 | - Daily Log: Students must log their individual contributions each day in a text file stored within the project folder. Students can log and publish as many times as needed but there should be atleast one (1) log published for each day. 11 | 12 | **Note: Each group will be required to present and answer technical quesions pertaining to thier project** 13 | 14 | ### What should you name your group project folder and what should be inside of it 15 | 16 | **Your group folder should be named restuarantProject and it should contain all of files.** 17 | 18 | **1. groupLog.txt**: A text file named called groupLog.txt should be inside this folder. it should detail what each group member did for that day in a few sentences. To see an example of a daily log, look at example project folder. 19 | 20 | **2. restuarantPitch.txt**: A document named restuarantPitch.txt should be inside your project folder. this document should contain at least 500 characters, that contain the following: 21 | 22 | - Introduction: The name of your restuarant, the team members who worked on it, and what type of restuarant your team has built. 23 | - Body: Tell us about your restauarant and what makes it special and different from other restuarants. 24 | 25 | **3. yourGroupName_Restuarant.html**: You should have a html document called yourGroupName_restuarant.html. How you style your HTML site with CSS is up to you and your group. 26 | 27 | **NOTE: "yourGroupName" is just a placeholder. Here are a few examples of how you should name your html file:** 28 | 29 | Example of a student working independently: IansDonutCleaner_restuarant.html 30 | 31 | Example of a group using their team name: SupremeTeamFood_restuarant.html 32 | 33 | Example of a group using their restaurant name: SuperGoodFood_restuarant.html 34 | 35 | ## What should be on your restuarant website 36 | Your website should have the following elements: 37 | 38 | - A Navbar: A navigation bar with the following links: Home, About, Menu, and Order Online . 39 | - Landing Image section: A prominent image of the donuts. 40 | - About Section: A description of your restuarant business (at least one paragraph). and at least 1 paragpraph about your restuarant's unique feature/ service. 41 | - Menu section: A display of at least 10 items with their prices. 42 | - Order Form section: A form where users can input their contact details and select items to order. 43 | 44 | ## How will your project be graded 45 | Your group project will be graded on the following: 46 | 47 | - Is your project named and structured properly ? 48 | - Does your project folder contain a restuarantPitch.txt file? 49 | - Does your restuarant pitch have at least 500 characters and addresses the requested information? 50 | - Does your project folder contain a groupLog.txt file? 51 | - Does your group log have at least 1 log for each day? 52 | - Does your project folder contain a restuarant.html file? 53 | - Does your restuarant website have all the required elements? 54 | 55 | ## When is the project due 56 | **Your project will be do on Friday, October 11th, 2024 at the end of the class period.** You and your group will begin 57 | presenting your class project starting on the following week. 58 | 59 | ## helpful tips 60 | - Use W3schools to guide as a reference tool for looking up HTML and CSS code. 61 | - Use google for inspiration for website designs as well as to find articles and videos that may help you build your website. 62 | - Be sure to commit/ publish somthing each day - this is required as part of your daily group log. 63 | - Do not use AI content generation applications. You will automatically fail if caught using AI. 64 | - As it pertains to the presentation, each member should be prepared to explain their contribution as well 65 | as answer technical questions as it relates to the application. 66 | 67 | ## Extra credit 68 | If you and/or your team are able to create a function nav bar with links to the specific nav page, you will get extra credit. -------------------------------------------------------------------------------- /README.MD: -------------------------------------------------------------------------------- 1 | # Black Tech Philly's Coding Cohort Fall 2024 2 | 3 | ## Class Assignment submission Form (updated weekly) 4 | please use the link below to submit your assignments 5 | 6 | - [Repository Submission Link](https://forms.gle/bTqNEuYSAjbW6L4FA) 7 | 8 | 9 | ## TO CHECK THE STATUS OF YOUR ASSIGNMENT 10 | ## CLICK THE LINK BELOW 11 | - [Submission Status Link ](https://docs.google.com/spreadsheets/d/1Ty95eGKxlbqx5c6RmmqJ0AGDGwAD0qrJY9e6B24ctFs/edit?usp=sharing) 12 | 13 | ## Class Overview 14 | This course includes the following: 15 |
16 | **Coding I (Intro to coding)** 17 |
18 | **Coding II** 19 |
20 | 21 | ## Class Motivation 22 | - Stay locked in. This is not a class that can 23 | be completed passively. You need to activey engage 24 | 25 | - Ask questions 26 | 27 | - Be patient 28 | 29 | ## Class Workflow 30 | In this course, students will engage in lectures that cover key coding concepts and gain hands-on experience by reading and writing code. Learning will be reinforced through a mix of lectures, activities, quizzes, and projects. 31 | 32 | ## Class Lectures 33 | Students can find class review materials in the folder Labeled "Class_Lecture". 34 | 35 | ## Async Friday Activity Guidelines 36 | Starting in October of 2024, Fridays will feature asynchronous coding activities for students. These tasks will reinforce concepts covered throughout the week and challenge students to apply their research and collaboration skills. 37 |
38 | 39 | **Async Activities for the week can be found in the "Async_Activity" folder found in this repository.** 40 |
41 | 42 | **Activities will be due by the end of the class period. If a student is absent, the activity will be assigned as homework and must be submitted by 9:59 PM that same Friday.** 43 | 44 | ## Coding Conventions 45 | **Naming Files, Folders, and Variables** 46 |
47 | In software development, engineers often collaborate on code that spans multiple files and involves several contributors. Much of the code they work on isn't brand new—it could have been written years ago. Similarly, engineers leave behind code that others may work on long after they've moved on from the project. To ensure that everyone can navigate and understand these complex codebases, developers follow coding standards that promote clarity and consistency. 48 | 49 | - A file/ folder/ variable name must start with a letter or an underscore character (_). 50 | - A file/ folder/ variable name cannot start with a digit 51 | - A file/ folder/ variable name can only contain alphanumeric characters and underscores (a-z, A-Z, 0-9, and _ ). 52 | - A file/ folder/ variable names are case-sensitive (age, Age and AGE are three different variables). 53 | - There is no limit on the length of the file/ folder/ variable name BUT it is strongly recommended to keep name short and succinct. 54 | - A File/ folder/ variable name cannot contain spaces. 55 | - The variable name cannot be any keywords/ reserved words. 56 | 57 | **Multi-Word Naming Conventions** 58 |
59 | If you encounter a situation where your file, folder, or variable name is more than one word, use the following conventions to name your documents and code apporpriately. 60 | 61 | - **Camel Case**: Writing names where the first word begins with a lowercase letter and the first letter of every other word after is capitalized. No spaces. Example: firstProject, newAssignment, camelCase 62 | 63 | - **Pascal Case**: Writing names where the first letter of each word begins with a uppercase letter. No spaces. Example: IanAssignmentProject, PascalCase, MidtermProject 64 | 65 | - **Snake Case**: Writing names where all words are lowercase but separated with the underscore symbol ( _ ). No spaces. Example: snake_case, new_folder, html_quiz_one 66 | 67 | ## Problem-Solving Steps 68 | 69 | 70 | ## Publishing work to Github 71 | When you have completed an assignment, or would just like to ensure the work you've done is visible on your Github repo page, do the following steps to pubhlish your work to Github. 72 | 73 | 1. navigate to the source control tab on the left side of your 74 | vsCode codespace editor. 75 | 76 | 2. In the text field labeled "Message", in a sentence, write a brief message describing what work you have done. Your message, should be a descriptive and clear complete sentence. 77 | 78 | 3. Once you've written your commit message click on the green button labeled "Commit". Then click it again when it is labeled as "sync changes". 79 | 80 | **IF YOUR COMMIT MESSAGE DOES NOT FOLLOW THESE GUIDELINES YOU WILL LOSE POINTS** 81 | 82 | ### Resources 83 | - [W3Schools](https://www.w3schools.com/) 84 | 85 | ## JavaScript Functions 86 | ![JavaScript functions part 1](functionInstructionJs1.png) 87 | 88 | ![JavaScript functions part 2](functionInstructionJs2.png) 89 | 90 | ## Python Functions 91 | ![Python functions part 1](functionInstructionPython1.png) 92 | 93 | ![Python functions part 2](functionInstructionPython2.png) 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /q2QuizAlt.md: -------------------------------------------------------------------------------- 1 | # Coding I and II Quarter 2 Quiz 2 | 3 | Please create a new document called Quarter2_Quiz.js or Quarter2_Quiz.py depending on the programming 4 | language you are learning. 5 | 6 | The questions on this quiz are code agnostic- meaning none of the questions 7 | are made for any specific coding language. You can answer them using Python or JavaScript. 8 | 9 | Do your best to complete the following questions. 10 | 11 | ## Resources 12 | You are permitted to use your class notes as well as W3schools. 13 | 14 | You may use google but are limitted to specifc coding websites: 15 | 16 | - W3 schools 17 | - free code camp 18 | - stack overflow 19 | - Geeks for Geeks 20 | - MDN Docs 21 | 22 | any other website must be approved by the instructor. 23 | 24 | ## Quiz rules 25 | - No phones are permitted to be out and visible during the quiz. If a phone you are caught with A phone out you will be given a 1 warning to put it away. 26 | If the warning is not honored the phone will be taken until the end of class. Refussal to forefeit the phone will result in An automatic failure. 27 | 28 | - No music/ videos is permitted during the quiz taking time - if you complete your quiz you are permitted to read a book. 29 | 30 | - Any usage of AI chat bots will result in an automatic failure. 31 | 32 | - There is no talking permitted during or after the quiz. 33 | 34 | Good Luck 35 | 36 | 1. What is an integer data type? Please write your response in a complete sentence as a string data type. 37 | 38 | 2. In your own words, describe what an if/ else conditional statement is. Please write your response 39 | in a complete sentence as a string data type. 40 | 41 | 3. In your own words, describe what a function is. Please write your response in a complete sentence as a string data type. 42 | 43 | 4. What is a boolean data type? Please write your response in a complete sentence as a string data type. 44 | 45 | 5. In your own words, describe the difference between a function parameter and a function argument. 46 | Please write your response in a complete sentenc as a string data typee. 47 | 48 | 6. Which operator would work best for the following function: 49 | An digital locker function that needs to have a specific set of numbers to be entered in order to lock and unlock a locker in a gym. Please write your answer as a string. 50 | 51 | 7. Which operator would work best for the following function: 52 | A height verification function that needs to check if a user is a certain height to get onto an amusement park ride. Please write your answer as a string. 53 | 54 | 8. You have been hired as an engineer to develop a sales tax function for the state of Pennsylvania. They would like to be able to take in a annual ammount of money businesses in the state make and deduct the proper amount of taxes from the their earnings. The state of PA should take 7% of a companies earnings. 55 | Your function should take in a total sales amount as an argument and return the amount thats owed to the state. 56 | 57 | Provided is an example of what your program should do: 58 | - If Ian's Development and Design company made $200,000.00, the state should deduct 7% from that total. 59 | - Ian's Development and Design company should pay $14,000.00 in sales tax. 60 | 61 | 9. You have been hired by Apple to help them fix their password system. They would like you to create A 62 | function that will check how long a password is. Your program should be able to accept an integer password 63 | and also check if the password is more or less than 10 characters long. if the password is longer than 10 characters, 64 | your program should tell the user that their password is too long. If the password is under 4 characters the 65 | function should tell the user the password is too short. If the password meets the length criteria, there should 66 | be a message confirming to the user that their password was created successfully. 67 | 68 | HINT - you will need to use a function that counts the number of characters in a string. I recommend looking this up on W3schools. 69 | 70 | 10. You have applied to several colleges in the state of PA and as your final project, you must create a function 71 | that will inform you on whether you will be admitted into the school based on the schools' reccomendation letter 72 | criteria. Your function should take in the name of the school along with whether it is TRUE or FALSE that you recieved 73 | a reccomendation letter from one of the staff members at Boys Latin. 74 | 75 | Provided are the schools you've applied to and their reccomendation letter criteria. 76 | 77 | - Temple Univesity - So long as you have 1 reccomendation letter from BL, you will get in. 78 | - Penn State - You must have 2 letters of recomendation from BL to get in. 79 | - University of Pennsylvania - You must have 2 letter from BL to get in. 80 | - Cheyney University - You must have 1 letter of reccomendation from BL to get in. 81 | 82 | Provided are the letters of reccomendations you've recieved: 83 | 84 | - Both Mr. Parker and Mr. Kimble have given you a reccomendation letter to Cheyney University. 85 | - Mr. Kimble has given you a letter of reccomendation for Penn State, but Mr. Parker and Mr. Paris have not. 86 | - Mr. Paris has given you a letter of reccomendation to Temple University, but Mr. Parker and Mr. Kimble have not. 87 | - Mr. Parker has given you a letter of reccomnedation to The University of Pennsylvania, Mr. Kimble did not give you letter of reccomendation, But Mr. Paris did. 88 | 89 | Your function should return which schools you did or did not get into based on the information above. 90 | --------------------------------------------------------------------------------