Skip to content

Commit a601868

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/Lesson07' into Lesson07
2 parents d893361 + 79549fa commit a601868

File tree

10 files changed

+173
-0
lines changed

10 files changed

+173
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Code Differently 2024 Q4 Cohort
2+
3+
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/code-differently/code-differently-24-q4)
4+
[![Check Push](https://github.com/code-differently/code-differently-24-q4/actions/workflows/check_push.yml/badge.svg)](https://github.com/code-differently/code-differently-24-q4/actions/workflows/check_push.yml)
5+
6+
### Purpose
7+
Main project repo for the Code Differently 2024 Q4 cohort. Read the [syllabus](/syllabus/) for more information about the class. Use the lesson folders to find and submit homework assignments.
8+
9+
### Preview
10+
1. Install VS Code and Docker. You can references the [instructions here][dev-container-instructions], if needed.
11+
1. Click the `Dev Containers` button above to automatically clone and open the project in a new dev container.
12+
13+
[dev-container-instructions]: https://aka.ms/vscode-remote/containers/getting-started

lesson_04/zionbuchanan/README.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
## JavaScript Implementation
2+
3+
```javascript
4+
// Function to check if a number is prime
5+
function isPrime(number) {
6+
// A prime number must be greater than 1
7+
if (number <= 1) {
8+
return false;
9+
}
10+
11+
// Check if the number has any divisors other than 1 and itself
12+
for (let i = 2; i <= Math.sqrt(number); i++) {
13+
// If the number is divisible by i, it's not prime
14+
if (number % i === 0) {
15+
return false;
16+
}
17+
}
18+
19+
// If no divisors were found, the number is prime
20+
return true;
21+
}
22+
23+
// Example usage
24+
let num = 77;
25+
if (isPrime(num)) {
26+
console.log(num + " is a prime number.");
27+
} else {
28+
console.log(num + " is not a prime number.");
29+
}
30+
```
31+
## Java Implementation
32+
33+
```java
34+
// Prime Number Checker in Java
35+
public class PrimeChecker {
36+
37+
// Function to check if a number is prime
38+
public static boolean isPrime(int number) {
39+
// A prime number must be greater than 1
40+
if (number <= 1) {
41+
return false;
42+
}
43+
44+
// Check if the number has any divisors other than 1 and itself
45+
for (int i = 2; i <= Math.sqrt(number); i++) {
46+
// If the number is divisible by i, it's not prime
47+
if (number % i == 0) {
48+
return false;
49+
}
50+
}
51+
52+
// If no divisors were found, the number is prime
53+
return true;
54+
}
55+
56+
public static void main(String[] args) {
57+
// Example usage
58+
int num = 77;
59+
if (isPrime(num)) {
60+
System.out.println(num + " is a prime number.");
61+
} else {
62+
System.out.println(num + " is not a prime number.");
63+
}
64+
}
65+
}
66+
```
67+
## Explanation
68+
For JavaScript, I created a fuction using chatgpt that would determine whether a number is prime or not. If a number is less than or equal to 1, then the output of the function would determine the number to be false. This is due to the fact that any number less than or equal to 1 is not a prime number. Any number that is greater than 1 would simply return the output of the function to be true or false, depending on if it is or isn't a prime number. I then included a variable that would mathematically verify if any given number has any divisors others than the number 1 and itself. If the number is divisible by i, then it's not prime. It would only be prime if there were no divisors found.
69+
70+
For Java, it was a similar process, but with more structure in the data types. I also used chat gpt to help me understand this process as well.
71+
## Differences
72+
In regards to the syntax and structure, Java was more strict with its rules while JavaScript was more loose. In other words, Java had a 11pm curfew while JavaScript could go out and come back at whatever time it pleases. The data type in Java required explicit commands whereas JavaScript had more leniency towards its data types. In other words, JavaScript functions are flexible, with no need for type declarations or class associations. Java methods require explicit return and parameter types and must reside within a class.

lesson_05/WazeAround/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## User Story
2+
### AmiyahJo
3+
4+
- As a driver , I want Waze to give me a heads up about things like accidents , a certain road has closed down , or hazards on the road so that I feel more at ease with deciding which route to chose.
5+
6+
- As a person who goes to and from their job , I want waze to give me the fastest way to get to my destination based on what traffic is like, so I can get to work on time and avoid being stuck.
7+
8+
- As someone who needs to fill up their gas tank , I want waze to find the nearest gas station along with the price per gallon , so I can make my way down without having to make a long detour from where I need to be.

lesson_05/cdbluejr/CD_User_stories.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
User Stories
2+
3+
## Altomated Get Dressed Machine
4+
5+
1. As a user of the new technology, I would like to suggest showing a picture of myself, instead of an generic person who does not represent my body type.
6+
This would help elevate disappointment with the end result when a particular item did not fit just right.
7+
8+
2. As an influencer, I would like certain products to be preloaded prior to use.
9+
This would help guide the shopper to the products I am promoting.
10+
11+
3. As a designer, I would like show how much work goes into each item that is produced.
12+
This would help the consumer see how much detail and percession is but into each piece that is produced.

lesson_05/davidsmith/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## User Stories
2+
3+
* As a new user I want my webpage react to the size of the window so that it is viewable on all screen sizes.
4+
5+
* As the user I should be able to see what data is collected from my account and should be able to withdraw from said collection so that I can have control over what information is gathered.
6+
7+
* As a new user I should be able to properly use AI programs so that I can increase my productivity

lesson_05/jamescapparell/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# User Stories
2+
3+
## User Story #1
4+
As a YouTube content creater, I want to view the dislike counter for my video when I am in my YouTube app, so I can view the dislike number without logging into my YouTube Studio app.
5+
## User Story #2
6+
As a Nintendo Switch owner, I want to modify and customize what my Switch looks like on the home screen, so I can easily set a screensaver similarly to my phone.
7+
8+
## User Story #3
9+
As a Ubisoft user, I want to be able to run the program on my PC without it taking too much memory, so it makes it easier to run UNO on my PC as well.

lesson_05/nilejackson/hw5.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## USER Stories
2+
3+
## User Story examples
4+
5+
* Being a self-proclaimed sneaker enthusiast means participating in sneaker raffles which means purchasing sneakerbots to give myself the best chance of 'landing a new pair'. I want a sneakerbot that comes with clear concise directions in the manual, recommended best practices for running proxies in that paricular bot and an encrypted activation key.
6+
7+
## Acceptance Criteria:
8+
9+
* A detailed yet concise usermanual, that is easy to read and informative.
10+
* Provide the user with an encrypted activation key.
11+
* Trusted user reviews on popular sneakerbot forums such as a subreddit forum or telegram.
12+
13+
## User Story Example 2
14+
15+
* As an avid Nike fan I want to stay up to date with the latest nike drops to stay well informed about "limited edition" releases.
16+
17+
## Acceptance Criteria
18+
19+
* Simple yet informative user interface.
20+
* Consistent notifications from the app with detailed descriptions of products; from prices to store pickup according to user location.
21+
* Early registration for product drop raffles
22+
23+
## User Story Example 3
24+
25+
* Life is busy in 2024, so being able to have ready to eat food delivered to your doorstep is a lifesaver. As a food delivery app user I want to know my order is being delivered in the most efficient way possible.
26+
27+
## Acceptance Criteria
28+
29+
* Real time delivery updates should never have hanging load times.
30+
* Delivery personnal should be required to send delivery updates every five to ten minutes, and whenever possible while out on the road(at redlights/heavy traffic updates etc.).
31+
* Drivers should be held accountable for damaged or missing orders and should have to either lose pay through customer reimbursement or replace the order entirely; this should all be done through the app in a quick & simple fashion.

lesson_05/shawndunsmore/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## User Stories
2+
* As the user, I want to generate a list of Fibonacci numbers so that I can explore their properties and patterns.
3+
4+
* As the user, I should be able to view my recent comment's in my newest post so that I can explore new user's on my post.
5+
6+
* As the user, I want to be able to sign up with more option's then email so I am not limited to one source.

lesson_05/zionbuchanan/lesson05.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## User Stories
2+
### ZionBuchanan
3+
4+
## User Story 1
5+
- As a Costco member, I want to add and customize food items selected from the food court menu so that I can personalize my order before checkout.
6+
Purpose: This story focuses on allowing users to customize their food orders, giving them control over what they want to purchase before placing the order.
7+
8+
## User Story 2
9+
- As a Costco member, I want to receive notifications with a countdown timer so that I can track how much time is left until my food order is ready.
10+
Purpose: The goal is to provide users with real-time updates on their food order status, improving customer experience.
11+
12+
## User Story 3
13+
- As a Costco member, I want to receive notifications about my membership expiration date so that I can renew it before it expires.
14+
Purpose: This ensures that users are informed in advance about their membership expiration to avoid any disruptions.

lesson_09/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Please review the following resources before lecture:
66

77
* [Learn Java Primitive Data Types in 5 Minutes (Video)](https://www.youtube.com/watch?v=cgp5ulbsdJ0)
88
* [Java Classes & Objects (Video)](https://www.youtube.com/watch?v=IUqKuGNasdM)
9+
* [TypeScript Tutorial #12 - Classes (Video)](https://www.youtube.com/watch?v=OsFwOzr3_sE)
910

1011
## Homework
1112

0 commit comments

Comments
 (0)