From 6a25c8be4ab8a01a62c6cc9abecf7c030af63b58 Mon Sep 17 00:00:00 2001 From: rickpvf Date: Tue, 6 Jun 2023 17:08:52 -0400 Subject: [PATCH 1/4] Hewwo o/ --- Assignments/Assignment 0 - Git Basics.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assignments/Assignment 0 - Git Basics.md b/Assignments/Assignment 0 - Git Basics.md index 26a0944..e68c261 100644 --- a/Assignments/Assignment 0 - Git Basics.md +++ b/Assignments/Assignment 0 - Git Basics.md @@ -7,4 +7,6 @@ Keep track of any git commands that you use to do these tasks, and put them into 3. Create a new repo under your own GitHub account with the name "CS4G". Send me the link on Discord. 4. Now fork the repo you cloned in (1). Create a pull request to my repo that adds your name to the bottom of this file. 5. Create a new branch of the repo from (4) and push it to your fork as a separate branch from main/master. -6. Commit your responses to this assignment into your repo from the question 3 as a single file. The filename should contain "Git Basics" in some form. \ No newline at end of file +6. Commit your responses to this assignment into your repo from the question 3 as a single file. The filename should contain "Git Basics" in some form. + +Rick \ No newline at end of file From d44bb21536421384e11cf9fe108a80f679eea97e Mon Sep 17 00:00:00 2001 From: rickpvf Date: Tue, 6 Jun 2023 17:17:25 -0400 Subject: [PATCH 2/4] Commiting and pushing my answers file --- Assignments/Answers/Assignment 0- Git Basics Answers.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Assignments/Answers/Assignment 0- Git Basics Answers.txt diff --git a/Assignments/Answers/Assignment 0- Git Basics Answers.txt b/Assignments/Answers/Assignment 0- Git Basics Answers.txt new file mode 100644 index 0000000..926c683 --- /dev/null +++ b/Assignments/Answers/Assignment 0- Git Basics Answers.txt @@ -0,0 +1,6 @@ +1. git clone +2. P33P33H33H33 +3. done and done chief +4. done +5. done +6. Homework 0 is done, hooraay \o/ \ No newline at end of file From cc8f898bd41d476a24e708b7f18ab73bf1c4ac78 Mon Sep 17 00:00:00 2001 From: rickpvf Date: Fri, 9 Jun 2023 12:59:15 -0400 Subject: [PATCH 3/4] answers for assignment 1 --- .../Assignment 1 Responses/Question 1.txt | 32 +++++++++++++++++++ .../Assignment 1 Responses/Question 2.txt | 26 +++++++++++++++ .../Assignment 1 Responses/Question 3.txt | 14 ++++++++ .../Assignment 1 Responses/Question 6.txt | 16 ++++++++++ .../Assignment 1 Responses/Question 7.txt | 11 +++++++ .../Assignment 1 Responses/Questions 4, 5.txt | 6 ++++ 6 files changed, 105 insertions(+) create mode 100644 Assignments/Answers/Assignment 1 Responses/Question 1.txt create mode 100644 Assignments/Answers/Assignment 1 Responses/Question 2.txt create mode 100644 Assignments/Answers/Assignment 1 Responses/Question 3.txt create mode 100644 Assignments/Answers/Assignment 1 Responses/Question 6.txt create mode 100644 Assignments/Answers/Assignment 1 Responses/Question 7.txt create mode 100644 Assignments/Answers/Assignment 1 Responses/Questions 4, 5.txt diff --git a/Assignments/Answers/Assignment 1 Responses/Question 1.txt b/Assignments/Answers/Assignment 1 Responses/Question 1.txt new file mode 100644 index 0000000..8f30619 --- /dev/null +++ b/Assignments/Answers/Assignment 1 Responses/Question 1.txt @@ -0,0 +1,32 @@ +X= (User Input 1) cookies +Y= (User Input 2) cookies +z=0 +w=-1 + +while w<0; + If x>=0 and y>=0; + Z= the total number of cookies ; + Return Z; + Print "I can math"; + w=1; + + If x<0 or y<0; + Z= the total number of cookies; + if z>=0; + return z; + + else; + return "You owe somebody cookies"; + + Print "Don't be negative" + w=1; + + Else; + Print "Please input a number"; + + end; +end; + +\\ The idea here is to create an algorithm that can be prompted for basic addition, and will +\\ return for the user a little joke if it detects a negative number operation. The algorithm will also +\\ prompt the user to reinput their values if it detects the user has input anything other than a number. \ No newline at end of file diff --git a/Assignments/Answers/Assignment 1 Responses/Question 2.txt b/Assignments/Answers/Assignment 1 Responses/Question 2.txt new file mode 100644 index 0000000..8cf2a55 --- /dev/null +++ b/Assignments/Answers/Assignment 1 Responses/Question 2.txt @@ -0,0 +1,26 @@ +Class Data type structure + ATK=int + DEF=int + EVASION=int + IsWestern=Bool + IsEastern=Bool + TAUNT=String + +Pirate Class + ATK=2 + DEF=3 + EVASION=1 + IsWestern=T + IsEastern=F + TAUNT= "YAAARGH" + +Ninja Class + ATK=1 + DEF=2 + EVASION=3 + IsWestern=F + IsEastern=T + TAUNT= "..." + +\\ I have derrived both Pirate and Ninja from the "Class" data type with arbitrary values assigned, +\\ As they are both sharing the same "Class" data type, they differ only in the values attributed to it. \ No newline at end of file diff --git a/Assignments/Answers/Assignment 1 Responses/Question 3.txt b/Assignments/Answers/Assignment 1 Responses/Question 3.txt new file mode 100644 index 0000000..a29b318 --- /dev/null +++ b/Assignments/Answers/Assignment 1 Responses/Question 3.txt @@ -0,0 +1,14 @@ +Banana Data Type: + Array of 6 + Color=Yellow + Size=Small + Flavor=delicious + Nutrition=Potassium; + + +BannanaTree Data Type: + Contains array of X bannanas, + X= any whole integer between 3 and 4 + Size=Large + Flavor=Inedible + Nutrition=none; \ No newline at end of file diff --git a/Assignments/Answers/Assignment 1 Responses/Question 6.txt b/Assignments/Answers/Assignment 1 Responses/Question 6.txt new file mode 100644 index 0000000..49bf470 --- /dev/null +++ b/Assignments/Answers/Assignment 1 Responses/Question 6.txt @@ -0,0 +1,16 @@ +D1= Current Date in days +D2= User input date in days + +if D1>D2; + then return (365-D1)+D2 + +else + return D2-D1; + +\\\Without built in date calculation functions, I am not sure if there is a way to write this algorithm +automatically without manually inputting which months have 31 or 30 days. My solution can be +imprecise and does not account for leap years. + +\\\If I am required to have the user input their birthday in the month/year format, then we would +need to declare the range of days for each month, verify at the start of the algorithm whether or not +it is a leap year, and then convert the months to days using the date compiled from the second step. \ No newline at end of file diff --git a/Assignments/Answers/Assignment 1 Responses/Question 7.txt b/Assignments/Answers/Assignment 1 Responses/Question 7.txt new file mode 100644 index 0000000..0d4ec51 --- /dev/null +++ b/Assignments/Answers/Assignment 1 Responses/Question 7.txt @@ -0,0 +1,11 @@ +x=userinput Celsius temp +y=userinput Farenheit temp + +xa=Farenheit conversion +ya=Celsius conversion + + xa=(x*9/5)+32 + + ya=(y-32)*5/9 + + \ No newline at end of file diff --git a/Assignments/Answers/Assignment 1 Responses/Questions 4, 5.txt b/Assignments/Answers/Assignment 1 Responses/Questions 4, 5.txt new file mode 100644 index 0000000..20f3cd9 --- /dev/null +++ b/Assignments/Answers/Assignment 1 Responses/Questions 4, 5.txt @@ -0,0 +1,6 @@ +4. A compiled language is technically run in a smaller amount of steps due to it directly translating the language into machine code, meaning it will run faster than an interpreted language and consume less processing real-estate, but it also means it is less flexible or user friendly. An interpreted language has a middle man of sorts that allows for on the fly alterations and easier debugging, but will run slower due to needing to then translate the user-friendly language into machine code. + + Their uses may vary, but generally, for a simple process that won't need to be changed very often, it would be more useful to use a compiled language. If there is a more complex script that may require many moving parts or multiple users to work on, an interpreted language would help to catch mistakes early on and to support a non-destructive workflow. + + +5. All three codes are in fact the same, or if not, contain the same inherent code. Source code is written using a human-readable language and is the direct set of instructions given to fulfill a function or process. Assembly code is the lowest level of program description possible before reaching machine code. The Assembly code will inform the machine code, which is the actual code that the machine is able to read and understand (bytes and bits of 1's and 0's), and explain to the machine in which direction goes which set of data into whatever stored memory may be required. \ No newline at end of file From 5b1229363bc67ad7ef2da6d858126e16a76f0a7d Mon Sep 17 00:00:00 2001 From: rickpvf Date: Fri, 9 Jun 2023 17:45:22 -0400 Subject: [PATCH 4/4] Added Semester Project Ideas file --- Assignments/Semester Project Ideas.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 Assignments/Semester Project Ideas.txt diff --git a/Assignments/Semester Project Ideas.txt b/Assignments/Semester Project Ideas.txt new file mode 100644 index 0000000..a28ba50 --- /dev/null +++ b/Assignments/Semester Project Ideas.txt @@ -0,0 +1 @@ +CSP to Blender plugin to better translate vectors and avoid using blender's god awful draw app \ No newline at end of file