From 585be9f241325b8072f941b657f35d43f07a6789 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 12:23:27 -0700 Subject: [PATCH 01/21] Create Logic.md & Logic folders --- Day 2/Logic/Logic.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Day 2/Logic/Logic.md diff --git a/Day 2/Logic/Logic.md b/Day 2/Logic/Logic.md new file mode 100644 index 0000000..df0fbdc --- /dev/null +++ b/Day 2/Logic/Logic.md @@ -0,0 +1,12 @@ +# Logic 🍵 + +### Task 🐧 +``` + +``` +### Requirements 🏫 +``` +1. A .java file +2. +``` + From f2988a67ef712e99d15863fdb82bc373d0f9245e Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 12:25:26 -0700 Subject: [PATCH 02/21] Create ForLoops.md and For Loops Folder --- Day 2/For Loops/ForLoops.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Day 2/For Loops/ForLoops.md diff --git a/Day 2/For Loops/ForLoops.md b/Day 2/For Loops/ForLoops.md new file mode 100644 index 0000000..18ff621 --- /dev/null +++ b/Day 2/For Loops/ForLoops.md @@ -0,0 +1,12 @@ +# ForLoops 🍵 + +### Task 🐧 +``` + +``` +### Requirements 🏫 +``` +1. A .java file + +``` + From fd581ec51f6ffb012c91c928bd1c6316cd2280a6 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 12:27:07 -0700 Subject: [PATCH 03/21] Create While Loops.md and While Loops folder --- Day 2/While Loops/WhileLoops.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Day 2/While Loops/WhileLoops.md diff --git a/Day 2/While Loops/WhileLoops.md b/Day 2/While Loops/WhileLoops.md new file mode 100644 index 0000000..db4e1a3 --- /dev/null +++ b/Day 2/While Loops/WhileLoops.md @@ -0,0 +1,14 @@ +# While Loops 🍵 + +### Task 🐧 +``` +Create code that completes the following task: + + +``` +### Requirements 🏫 +``` +1. A .java file +2. +``` + From 27c566cc154649f64537e89f059acf83c6ac17af Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 12:30:50 -0700 Subject: [PATCH 04/21] Create NonVoidMethods.md & Non-Void Methods folder --- Day 2/Non-Void Methods/NonVoidMethods.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Day 2/Non-Void Methods/NonVoidMethods.md diff --git a/Day 2/Non-Void Methods/NonVoidMethods.md b/Day 2/Non-Void Methods/NonVoidMethods.md new file mode 100644 index 0000000..b57677d --- /dev/null +++ b/Day 2/Non-Void Methods/NonVoidMethods.md @@ -0,0 +1,13 @@ +# Non-Void-Methods 🍵 + +### Task 🐧 +``` +Create code that completes the following task: + + +``` +### Requirements 🏫 +``` +1. A .java file +2. +``` From 956614b9171e38d25a3497d650f89b2dd83e226e Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 12:31:32 -0700 Subject: [PATCH 05/21] Create VoidMethods.md and Void Methods file --- Day 2/Void Methods/VoidMethods.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Day 2/Void Methods/VoidMethods.md diff --git a/Day 2/Void Methods/VoidMethods.md b/Day 2/Void Methods/VoidMethods.md new file mode 100644 index 0000000..8a96711 --- /dev/null +++ b/Day 2/Void Methods/VoidMethods.md @@ -0,0 +1,13 @@ +# Void Methods 🍵 + +### Task 🐧 +``` +Create code that completes the following task: + + +``` +### Requirements 🏫 +``` +1. A .java file +2. +``` From e92be0aee6788713ae74c378f23c0fb76e6d53e5 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 12:36:37 -0700 Subject: [PATCH 06/21] Create Classes & Objects markdown and folder --- Day 2/Classes & Objects/ClassesAndObjects.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Day 2/Classes & Objects/ClassesAndObjects.md diff --git a/Day 2/Classes & Objects/ClassesAndObjects.md b/Day 2/Classes & Objects/ClassesAndObjects.md new file mode 100644 index 0000000..b6a0bc8 --- /dev/null +++ b/Day 2/Classes & Objects/ClassesAndObjects.md @@ -0,0 +1,13 @@ +# Classes and Objects 🍵 + +### Task 🐧 +``` +Create code that completes the following task: + + +``` +### Requirements 🏫 +``` +1. A .java file +2. +``` From b59540562956f5015f1b8871e2d17782abbb16ea Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 12:37:33 -0700 Subject: [PATCH 07/21] Create Modifiers markdown and folder --- Day 2/Modifiers/Modifiers.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Day 2/Modifiers/Modifiers.md diff --git a/Day 2/Modifiers/Modifiers.md b/Day 2/Modifiers/Modifiers.md new file mode 100644 index 0000000..940c724 --- /dev/null +++ b/Day 2/Modifiers/Modifiers.md @@ -0,0 +1,13 @@ +# Modifiers 🍵 + +### Task 🐧 +``` +Create code that completes the following task: + + +``` +### Requirements 🏫 +``` +1. A .java file +2. +``` From 6423cba3b39e6f7500707deb553e39e1a7def752 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 18:33:32 -0700 Subject: [PATCH 08/21] update forloops.md --- Day 2/For Loops/ForLoops.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Day 2/For Loops/ForLoops.md b/Day 2/For Loops/ForLoops.md index 18ff621..d650c20 100644 --- a/Day 2/For Loops/ForLoops.md +++ b/Day 2/For Loops/ForLoops.md @@ -2,11 +2,11 @@ ### Task 🐧 ``` - + - Create an array of integers from 1 to 5 + - Use a for loop to print all members of the array on a new line (Access the index) ``` ### Requirements 🏫 ``` 1. A .java file - +2. 1, 2, 3, 4, 5 all on subsequent lines ``` - From 5509a325d8e2167ec32037452a47038917915b3b Mon Sep 17 00:00:00 2001 From: dashpen <91174890+dashpen@users.noreply.github.com> Date: Mon, 4 Jul 2022 18:35:26 -0700 Subject: [PATCH 09/21] Update NonVoidMethods.md --- Day 2/Non-Void Methods/NonVoidMethods.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Day 2/Non-Void Methods/NonVoidMethods.md b/Day 2/Non-Void Methods/NonVoidMethods.md index b57677d..d16c7b2 100644 --- a/Day 2/Non-Void Methods/NonVoidMethods.md +++ b/Day 2/Non-Void Methods/NonVoidMethods.md @@ -2,12 +2,17 @@ ### Task 🐧 ``` -Create code that completes the following task: +Create code that completes the following tasks: +Make a method that returns a different string than you passed in (but not the same one each time) +Make a method that doubles the value you pass in +Make a method the invertes the boolean that you pass in. +Run and print these methods multiple times ``` ### Requirements 🏫 ``` 1. A .java file -2. +2. At least 3 different types of methods +3. At least 6 prints ``` From 1bca0bff09aaa97432fd99026fb08be5b49aca02 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 18:49:06 -0700 Subject: [PATCH 10/21] update whileloops.md --- Day 2/While Loops/WhileLoops.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Day 2/While Loops/WhileLoops.md b/Day 2/While Loops/WhileLoops.md index db4e1a3..410e55a 100644 --- a/Day 2/While Loops/WhileLoops.md +++ b/Day 2/While Loops/WhileLoops.md @@ -2,13 +2,12 @@ ### Task 🐧 ``` -Create code that completes the following task: - - + - Iteratively divide 64 by 2 and stop when the quotient is equal to 1 + - Print the number every iteration ``` ### Requirements 🏫 ``` 1. A .java file -2. +2. 64, 32, 16, 8, 4, 2, 1 all on seperate lines ``` From 765a8828e74c5f30d33fb9a969a56edf61c123db Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 18:51:20 -0700 Subject: [PATCH 11/21] your mom --- Day 2/Void Methods/VoidMethods.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Day 2/Void Methods/VoidMethods.md b/Day 2/Void Methods/VoidMethods.md index 8a96711..9a323fd 100644 --- a/Day 2/Void Methods/VoidMethods.md +++ b/Day 2/Void Methods/VoidMethods.md @@ -2,12 +2,11 @@ ### Task 🐧 ``` -Create code that completes the following task: - - + - Make a void that will only print if the number you pass in (parameter) is greater than 10 + - Run this method with numbers 0.37 & 49 ``` ### Requirements 🏫 ``` 1. A .java file -2. +2. Prints false and true on two different lines ``` From 9ab0660c3083702877d374323383df5ab96502c6 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 19:01:50 -0700 Subject: [PATCH 12/21] update nonvoid method --- Day 2/Non-Void Methods/NonVoidMethods.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Day 2/Non-Void Methods/NonVoidMethods.md b/Day 2/Non-Void Methods/NonVoidMethods.md index d16c7b2..1020742 100644 --- a/Day 2/Non-Void Methods/NonVoidMethods.md +++ b/Day 2/Non-Void Methods/NonVoidMethods.md @@ -1,18 +1,19 @@ -# Non-Void-Methods 🍵 +# Non-Void Methods 🍵 ### Task 🐧 ``` Create code that completes the following tasks: -Make a method that returns a different string than you passed in (but not the same one each time) +Make a method that returns a string with " is friends with Albert" appended to the end of the string passed in to it Make a method that doubles the value you pass in Make a method the invertes the boolean that you pass in. -Run and print these methods multiple times +Pass in your name to the first method & print the result +Pass in your favorite team number to the second method & print the result +Pass if true if you are an Optix Enjoyer ``` ### Requirements 🏫 ``` 1. A .java file -2. At least 3 different types of methods -3. At least 6 prints +2. Prints your name, double your favorite team number, and true ``` From 7dcf634f07f5ddda0c624cc48c446d5479cdf553 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 19:12:19 -0700 Subject: [PATCH 13/21] update classes & objects --- Day 2/Classes & Objects/ClassesAndObjects.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Day 2/Classes & Objects/ClassesAndObjects.md b/Day 2/Classes & Objects/ClassesAndObjects.md index b6a0bc8..668ed47 100644 --- a/Day 2/Classes & Objects/ClassesAndObjects.md +++ b/Day 2/Classes & Objects/ClassesAndObjects.md @@ -2,12 +2,11 @@ ### Task 🐧 ``` -Create code that completes the following task: - - + - Create a class called "Me" & intialize variables name and age + - Create an object for this class in the main method, & set the values of name and age to your name and age ``` ### Requirements 🏫 ``` 1. A .java file -2. +2. Prints your name and age from the Me object ``` From e55da63e987fcb4e6624434b937b2bae09dc8d32 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Mon, 4 Jul 2022 19:13:03 -0700 Subject: [PATCH 14/21] deleting modifiers activyt --- Day 2/Modifiers/Modifiers.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 Day 2/Modifiers/Modifiers.md diff --git a/Day 2/Modifiers/Modifiers.md b/Day 2/Modifiers/Modifiers.md deleted file mode 100644 index 940c724..0000000 --- a/Day 2/Modifiers/Modifiers.md +++ /dev/null @@ -1,13 +0,0 @@ -# Modifiers 🍵 - -### Task 🐧 -``` -Create code that completes the following task: - - -``` -### Requirements 🏫 -``` -1. A .java file -2. -``` From d9fab42d00cf9ea536caf7f8e9423db9fcff2fb0 Mon Sep 17 00:00:00 2001 From: dashpen <91174890+dashpen@users.noreply.github.com> Date: Mon, 4 Jul 2022 21:06:02 -0700 Subject: [PATCH 15/21] Update Logic.md --- Day 2/Logic/Logic.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Day 2/Logic/Logic.md b/Day 2/Logic/Logic.md index df0fbdc..8fb610b 100644 --- a/Day 2/Logic/Logic.md +++ b/Day 2/Logic/Logic.md @@ -2,11 +2,18 @@ ### Task 🐧 ``` +We are having a party with amounts of tea and candy. Print the int outcome of the party encoded as 0=bad, 1=good, or 2=great. A party is good (1) if both tea and candy are at least 5. However, if either tea or candy is at least double the amount of the other one, the party is great (2). However, in all cases, if either tea or candy is less than 5, the party is always bad (0). + + +teaParty(6, 8) → 1 +teaParty(3, 8) → 0 +teaParty(20, 6) → 2 + ``` ### Requirements 🏫 ``` 1. A .java file -2. +2. A print with the result ``` From 37897351f468aad87efea1ed9eaf4ca022259286 Mon Sep 17 00:00:00 2001 From: Rohin Sood Date: Tue, 5 Jul 2022 18:45:09 -0700 Subject: [PATCH 16/21] Update ClassesAndObjects.md --- Day 2/Classes & Objects/ClassesAndObjects.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Day 2/Classes & Objects/ClassesAndObjects.md b/Day 2/Classes & Objects/ClassesAndObjects.md index 668ed47..d6a19d5 100644 --- a/Day 2/Classes & Objects/ClassesAndObjects.md +++ b/Day 2/Classes & Objects/ClassesAndObjects.md @@ -3,7 +3,9 @@ ### Task 🐧 ``` - Create a class called "Me" & intialize variables name and age - - Create an object for this class in the main method, & set the values of name and age to your name and age + - Create parameters for these variabels and set them to the variables in the constructor + - Create 2 method that returns your name and age + - Create an object for this class in the main method, & use the method to print! ``` ### Requirements 🏫 ``` From 41496e8506b3eb10f777ed1da9b9e0c087e8edfe Mon Sep 17 00:00:00 2001 From: rohin Date: Wed, 21 Sep 2022 18:35:10 -0700 Subject: [PATCH 17/21] delete printing.md --- Printing/Printing.md | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 Printing/Printing.md diff --git a/Printing/Printing.md b/Printing/Printing.md deleted file mode 100644 index 44ae064..0000000 --- a/Printing/Printing.md +++ /dev/null @@ -1,20 +0,0 @@ -# Printing 🍵 - -### Task 🐧 -``` -Create a .java file and print out the phrase "Java is Cool!" on one line, and the phrase, "Your mom is cooler!" on the next -``` -### Requirements 🏫 -``` -1. A .java file -2. A .class file -3. Prints "Java is Cool!" and "Your mom is cooler!" on two seperate lines when run -``` -
-Hints 🤫 -
    -
  1. public static void main(String[] args)
  2. -
  3. Use escape characters
  4. -
  5. Compile & Run!
  6. -
-
From 9c4537dbe4667c6f5112838039bb8d35d01411f5 Mon Sep 17 00:00:00 2001 From: rohin Date: Wed, 21 Sep 2022 18:54:47 -0700 Subject: [PATCH 18/21] rename files to readme --- Day 2/Classes & Objects/ClassesAndObjects.md | 14 -------------- Day 2/For Loops/ForLoops.md | 12 ------------ Day 2/Logic/Logic.md | 19 ------------------- Day 2/Non-Void Methods/NonVoidMethods.md | 19 ------------------- Day 2/Void Methods/VoidMethods.md | 12 ------------ Day 2/While Loops/WhileLoops.md | 13 ------------- 6 files changed, 89 deletions(-) delete mode 100644 Day 2/Classes & Objects/ClassesAndObjects.md delete mode 100644 Day 2/For Loops/ForLoops.md delete mode 100644 Day 2/Logic/Logic.md delete mode 100644 Day 2/Non-Void Methods/NonVoidMethods.md delete mode 100644 Day 2/Void Methods/VoidMethods.md delete mode 100644 Day 2/While Loops/WhileLoops.md diff --git a/Day 2/Classes & Objects/ClassesAndObjects.md b/Day 2/Classes & Objects/ClassesAndObjects.md deleted file mode 100644 index d6a19d5..0000000 --- a/Day 2/Classes & Objects/ClassesAndObjects.md +++ /dev/null @@ -1,14 +0,0 @@ -# Classes and Objects 🍵 - -### Task 🐧 -``` - - Create a class called "Me" & intialize variables name and age - - Create parameters for these variabels and set them to the variables in the constructor - - Create 2 method that returns your name and age - - Create an object for this class in the main method, & use the method to print! -``` -### Requirements 🏫 -``` -1. A .java file -2. Prints your name and age from the Me object -``` diff --git a/Day 2/For Loops/ForLoops.md b/Day 2/For Loops/ForLoops.md deleted file mode 100644 index d650c20..0000000 --- a/Day 2/For Loops/ForLoops.md +++ /dev/null @@ -1,12 +0,0 @@ -# ForLoops 🍵 - -### Task 🐧 -``` - - Create an array of integers from 1 to 5 - - Use a for loop to print all members of the array on a new line (Access the index) -``` -### Requirements 🏫 -``` -1. A .java file -2. 1, 2, 3, 4, 5 all on subsequent lines -``` diff --git a/Day 2/Logic/Logic.md b/Day 2/Logic/Logic.md deleted file mode 100644 index 8fb610b..0000000 --- a/Day 2/Logic/Logic.md +++ /dev/null @@ -1,19 +0,0 @@ -# Logic 🍵 - -### Task 🐧 -``` -We are having a party with amounts of tea and candy. Print the int outcome of the party encoded as 0=bad, 1=good, or 2=great. A party is good (1) if both tea and candy are at least 5. However, if either tea or candy is at least double the amount of the other one, the party is great (2). However, in all cases, if either tea or candy is less than 5, the party is always bad (0). - - -teaParty(6, 8) → 1 -teaParty(3, 8) → 0 -teaParty(20, 6) → 2 - - -``` -### Requirements 🏫 -``` -1. A .java file -2. A print with the result -``` - diff --git a/Day 2/Non-Void Methods/NonVoidMethods.md b/Day 2/Non-Void Methods/NonVoidMethods.md deleted file mode 100644 index 1020742..0000000 --- a/Day 2/Non-Void Methods/NonVoidMethods.md +++ /dev/null @@ -1,19 +0,0 @@ -# Non-Void Methods 🍵 - -### Task 🐧 -``` -Create code that completes the following tasks: - -Make a method that returns a string with " is friends with Albert" appended to the end of the string passed in to it -Make a method that doubles the value you pass in -Make a method the invertes the boolean that you pass in. - -Pass in your name to the first method & print the result -Pass in your favorite team number to the second method & print the result -Pass if true if you are an Optix Enjoyer -``` -### Requirements 🏫 -``` -1. A .java file -2. Prints your name, double your favorite team number, and true -``` diff --git a/Day 2/Void Methods/VoidMethods.md b/Day 2/Void Methods/VoidMethods.md deleted file mode 100644 index 9a323fd..0000000 --- a/Day 2/Void Methods/VoidMethods.md +++ /dev/null @@ -1,12 +0,0 @@ -# Void Methods 🍵 - -### Task 🐧 -``` - - Make a void that will only print if the number you pass in (parameter) is greater than 10 - - Run this method with numbers 0.37 & 49 -``` -### Requirements 🏫 -``` -1. A .java file -2. Prints false and true on two different lines -``` diff --git a/Day 2/While Loops/WhileLoops.md b/Day 2/While Loops/WhileLoops.md deleted file mode 100644 index 410e55a..0000000 --- a/Day 2/While Loops/WhileLoops.md +++ /dev/null @@ -1,13 +0,0 @@ -# While Loops 🍵 - -### Task 🐧 -``` - - Iteratively divide 64 by 2 and stop when the quotient is equal to 1 - - Print the number every iteration -``` -### Requirements 🏫 -``` -1. A .java file -2. 64, 32, 16, 8, 4, 2, 1 all on seperate lines -``` - From bcb2595fd63c7f40cdd9e725e47a1b85c64256d1 Mon Sep 17 00:00:00 2001 From: rohin Date: Wed, 21 Sep 2022 19:01:16 -0700 Subject: [PATCH 19/21] add back files & rename to readme.md fr this time --- Day 2/Classes & Objects/README.md | 14 ++++++++++++++ Day 2/For Loops/README.md | 12 ++++++++++++ Day 2/Logic/README.md | 14 ++++++++++++++ Day 2/Non-Void Methods/README.md | 17 +++++++++++++++++ Day 2/Void Methods/README.md | 12 ++++++++++++ Day 2/While Loops/README.md | 12 ++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 Day 2/Classes & Objects/README.md create mode 100644 Day 2/For Loops/README.md create mode 100644 Day 2/Logic/README.md create mode 100644 Day 2/Non-Void Methods/README.md create mode 100644 Day 2/Void Methods/README.md create mode 100644 Day 2/While Loops/README.md diff --git a/Day 2/Classes & Objects/README.md b/Day 2/Classes & Objects/README.md new file mode 100644 index 0000000..d6a19d5 --- /dev/null +++ b/Day 2/Classes & Objects/README.md @@ -0,0 +1,14 @@ +# Classes and Objects 🍵 + +### Task 🐧 +``` + - Create a class called "Me" & intialize variables name and age + - Create parameters for these variabels and set them to the variables in the constructor + - Create 2 method that returns your name and age + - Create an object for this class in the main method, & use the method to print! +``` +### Requirements 🏫 +``` +1. A .java file +2. Prints your name and age from the Me object +``` diff --git a/Day 2/For Loops/README.md b/Day 2/For Loops/README.md new file mode 100644 index 0000000..0d03f8e --- /dev/null +++ b/Day 2/For Loops/README.md @@ -0,0 +1,12 @@ +# ForLoops 🍵 + +### Task 🐧 +``` + - Create an array of integers from 1 to 5 + - Use a for loop to print all members of the array on a new line (Access the index) +``` +### Requirements 🏫 +``` +1. A .java file +2. 1, 2, 3, 4, 5 all on subsequent lines +``` \ No newline at end of file diff --git a/Day 2/Logic/README.md b/Day 2/Logic/README.md new file mode 100644 index 0000000..68cfcdc --- /dev/null +++ b/Day 2/Logic/README.md @@ -0,0 +1,14 @@ +# Logic 🍵 + +### Task 🐧 +``` +We are having a party with amounts of tea and candy. Print the int outcome of the party encoded as 0=bad, 1=good, or 2=great. A party is good (1) if both tea and candy are at least 5. However, if either tea or candy is at least double the amount of the other one, the party is great (2). However, in all cases, if either tea or candy is less than 5, the party is always bad (0). +teaParty(6, 8) → 1 +teaParty(3, 8) → 0 +teaParty(20, 6) → 2 +``` +### Requirements 🏫 +``` +1. A .java file +2. A print with the result +``` diff --git a/Day 2/Non-Void Methods/README.md b/Day 2/Non-Void Methods/README.md new file mode 100644 index 0000000..64f9490 --- /dev/null +++ b/Day 2/Non-Void Methods/README.md @@ -0,0 +1,17 @@ +# Non-Void Methods 🍵 + +### Task 🐧 +``` +Create code that completes the following tasks: +Make a method that returns a string with " is friends with Albert" appended to the end of the string passed in to it +Make a method that doubles the value you pass in +Make a method the invertes the boolean that you pass in. +Pass in your name to the first method & print the result +Pass in your favorite team number to the second method & print the result +Pass if true if you are an Optix Enjoyer +``` +### Requirements 🏫 +``` +1. A .java file +2. Prints your name, double your favorite team number, and true +``` diff --git a/Day 2/Void Methods/README.md b/Day 2/Void Methods/README.md new file mode 100644 index 0000000..9a323fd --- /dev/null +++ b/Day 2/Void Methods/README.md @@ -0,0 +1,12 @@ +# Void Methods 🍵 + +### Task 🐧 +``` + - Make a void that will only print if the number you pass in (parameter) is greater than 10 + - Run this method with numbers 0.37 & 49 +``` +### Requirements 🏫 +``` +1. A .java file +2. Prints false and true on two different lines +``` diff --git a/Day 2/While Loops/README.md b/Day 2/While Loops/README.md new file mode 100644 index 0000000..3835fe6 --- /dev/null +++ b/Day 2/While Loops/README.md @@ -0,0 +1,12 @@ +# While Loops 🍵 + +### Task 🐧 +``` + - Iteratively divide 64 by 2 and stop when the quotient is equal to 1 + - Print the number every iteration +``` +### Requirements 🏫 +``` +1. A .java file +2. 64, 32, 16, 8, 4, 2, 1 all on seperate lines +``` From 984e902d84eafe0042a274b93c72c7bb8ba70090 Mon Sep 17 00:00:00 2001 From: rohin Date: Sat, 24 Sep 2022 21:43:52 -0700 Subject: [PATCH 20/21] move to "week 2" folder & delete wrong ones --- Day 2/Classes & Objects/README.md | 14 -------------- Day 2/Logic/README.md | 14 -------------- Day 2/Non-Void Methods/README.md | 17 ----------------- Day 2/Void Methods/README.md | 12 ------------ Week 2/Arithmetics/README.md | 13 +++++++++++++ Week 2/Arrays/README.md | 16 ++++++++++++++++ {Day 2 => Week 2}/For Loops/README.md | 3 +-- Week 2/Logic/README.md | 13 +++++++++++++ Week 2/Variables/README.md | 15 +++++++++++++++ {Day 2 => Week 2}/While Loops/README.md | 5 ++--- 10 files changed, 60 insertions(+), 62 deletions(-) delete mode 100644 Day 2/Classes & Objects/README.md delete mode 100644 Day 2/Logic/README.md delete mode 100644 Day 2/Non-Void Methods/README.md delete mode 100644 Day 2/Void Methods/README.md create mode 100644 Week 2/Arithmetics/README.md create mode 100644 Week 2/Arrays/README.md rename {Day 2 => Week 2}/For Loops/README.md (96%) create mode 100644 Week 2/Logic/README.md create mode 100644 Week 2/Variables/README.md rename {Day 2 => Week 2}/While Loops/README.md (81%) diff --git a/Day 2/Classes & Objects/README.md b/Day 2/Classes & Objects/README.md deleted file mode 100644 index d6a19d5..0000000 --- a/Day 2/Classes & Objects/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Classes and Objects 🍵 - -### Task 🐧 -``` - - Create a class called "Me" & intialize variables name and age - - Create parameters for these variabels and set them to the variables in the constructor - - Create 2 method that returns your name and age - - Create an object for this class in the main method, & use the method to print! -``` -### Requirements 🏫 -``` -1. A .java file -2. Prints your name and age from the Me object -``` diff --git a/Day 2/Logic/README.md b/Day 2/Logic/README.md deleted file mode 100644 index 68cfcdc..0000000 --- a/Day 2/Logic/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Logic 🍵 - -### Task 🐧 -``` -We are having a party with amounts of tea and candy. Print the int outcome of the party encoded as 0=bad, 1=good, or 2=great. A party is good (1) if both tea and candy are at least 5. However, if either tea or candy is at least double the amount of the other one, the party is great (2). However, in all cases, if either tea or candy is less than 5, the party is always bad (0). -teaParty(6, 8) → 1 -teaParty(3, 8) → 0 -teaParty(20, 6) → 2 -``` -### Requirements 🏫 -``` -1. A .java file -2. A print with the result -``` diff --git a/Day 2/Non-Void Methods/README.md b/Day 2/Non-Void Methods/README.md deleted file mode 100644 index 64f9490..0000000 --- a/Day 2/Non-Void Methods/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# Non-Void Methods 🍵 - -### Task 🐧 -``` -Create code that completes the following tasks: -Make a method that returns a string with " is friends with Albert" appended to the end of the string passed in to it -Make a method that doubles the value you pass in -Make a method the invertes the boolean that you pass in. -Pass in your name to the first method & print the result -Pass in your favorite team number to the second method & print the result -Pass if true if you are an Optix Enjoyer -``` -### Requirements 🏫 -``` -1. A .java file -2. Prints your name, double your favorite team number, and true -``` diff --git a/Day 2/Void Methods/README.md b/Day 2/Void Methods/README.md deleted file mode 100644 index 9a323fd..0000000 --- a/Day 2/Void Methods/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Void Methods 🍵 - -### Task 🐧 -``` - - Make a void that will only print if the number you pass in (parameter) is greater than 10 - - Run this method with numbers 0.37 & 49 -``` -### Requirements 🏫 -``` -1. A .java file -2. Prints false and true on two different lines -``` diff --git a/Week 2/Arithmetics/README.md b/Week 2/Arithmetics/README.md new file mode 100644 index 0000000..513e0aa --- /dev/null +++ b/Week 2/Arithmetics/README.md @@ -0,0 +1,13 @@ +# Arithmetics 🍵 + +### Task 🐧 +Create code that completes the following task: + - Compute the remainder of 6 multiplied by 1234124 divided by 11345 minus 890809 plus 90800 (use order of operations) is divided by 980098, and store this in a variable called num (get an exact number as opposed to a whole number) + - Divide num by 100 + - Print num to the terminal + +### Requirements 🏫 +``` +1. A .java file +2. Prints the resulting number +``` diff --git a/Week 2/Arrays/README.md b/Week 2/Arrays/README.md new file mode 100644 index 0000000..a732edc --- /dev/null +++ b/Week 2/Arrays/README.md @@ -0,0 +1,16 @@ +# Arrays 🍵 + +### Task 🐧 +Create code that consists of an array with the following elements: + - An element containing the name of your department + - An element contianing the name of the oldest person in the world + - An element contianing the name of the Rapid React world champion alliance captains + - An element containing the name of the 2019 FRC game + + - Then print each element, from last to first. + +### Requirements 🏫 +``` +1. A .java file +2. Creates an array and prints the elements as specified +``` diff --git a/Day 2/For Loops/README.md b/Week 2/For Loops/README.md similarity index 96% rename from Day 2/For Loops/README.md rename to Week 2/For Loops/README.md index 0d03f8e..4f3f6fb 100644 --- a/Day 2/For Loops/README.md +++ b/Week 2/For Loops/README.md @@ -1,10 +1,9 @@ # ForLoops 🍵 ### Task 🐧 -``` - Create an array of integers from 1 to 5 - Use a for loop to print all members of the array on a new line (Access the index) -``` + ### Requirements 🏫 ``` 1. A .java file diff --git a/Week 2/Logic/README.md b/Week 2/Logic/README.md new file mode 100644 index 0000000..7cf928f --- /dev/null +++ b/Week 2/Logic/README.md @@ -0,0 +1,13 @@ +# Logic 🍵 + +### Task 🐧 + - We are having a party with amounts of tea and candy. Print the int outcome of the party encoded as 0=bad, 1=good, or 2=great. A party is good (1) if both tea and candy are at least 5. However, if either tea or candy is at least double the amount of the other one, the party is great (2). However, in all cases, if either tea or candy is less than 5, the party is always bad (0). + - teaParty(6, 8) → 1 + - teaParty(3, 8) → 0 + - teaParty(20, 6) → 2 + +### Requirements 🏫 +``` +1. A .java file +2. A print with the result +``` diff --git a/Week 2/Variables/README.md b/Week 2/Variables/README.md new file mode 100644 index 0000000..4a94274 --- /dev/null +++ b/Week 2/Variables/README.md @@ -0,0 +1,15 @@ +# Variables 🍵 + +### Task 🐧 +Create code that has a variable for each of the following, and then prints them using one print statement: + - A variable "age" containing your age + - A variable "height" containing your exact height in feet inches (if you dont know you can make someting up) + - A variable "firstLetter" contianing the first letter of your name + - A variable "lastName" containing your last name + - A variable "programmingBest" containing the answer to whether programming is best + +### Requirements 🏫 +``` +1. A .java file +2. Prints all the variables listed in the task +``` diff --git a/Day 2/While Loops/README.md b/Week 2/While Loops/README.md similarity index 81% rename from Day 2/While Loops/README.md rename to Week 2/While Loops/README.md index 3835fe6..b20e56e 100644 --- a/Day 2/While Loops/README.md +++ b/Week 2/While Loops/README.md @@ -1,10 +1,9 @@ # While Loops 🍵 ### Task 🐧 -``` - Iteratively divide 64 by 2 and stop when the quotient is equal to 1 - - Print the number every iteration -``` + - Print the number at every iteration + ### Requirements 🏫 ``` 1. A .java file From a5a9548dd1c3aad8a744d4fac878b97215d8f137 Mon Sep 17 00:00:00 2001 From: rohin Date: Sat, 24 Sep 2022 21:44:03 -0700 Subject: [PATCH 21/21] create homework & imports activites --- Week 2/Homework/README.md | 16 ++++++++++++++++ Week 2/Imports/README.md | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 Week 2/Homework/README.md create mode 100644 Week 2/Imports/README.md diff --git a/Week 2/Homework/README.md b/Week 2/Homework/README.md new file mode 100644 index 0000000..4c52a97 --- /dev/null +++ b/Week 2/Homework/README.md @@ -0,0 +1,16 @@ +# Week 2 Homework 🍵 + +### Task 🐧 +Create a calculator from the requirements below! (Import Scanner and Math) + - Ask the user to input the first number, operation, and second number + - Operations should consist of addition, subtraction, multiplication, division, modulo, power, square root, cube root, and finding the hypotenuse + - Challenge: Use one input statement for the first number, operation, and the second number. (Hint: Seperate the inputs by spaces) + - Ask the user if they want to do another calculation. If so, repeat the process listed above + - Store the numbers & operations in two different arrays + - Compute & print out the answer of the given calculation(s) with the arithmetic formula written out + +### Requirements 🏫 +``` +1. A .java file +2. The calculation(s)' answers +``` diff --git a/Week 2/Imports/README.md b/Week 2/Imports/README.md new file mode 100644 index 0000000..25800c1 --- /dev/null +++ b/Week 2/Imports/README.md @@ -0,0 +1,16 @@ +# Imports 🍵 + +### Task 🐧 +Create a number guessing game with the following requirements! (Import Scanner and Math) + - Generate a random number between 1 and 100 + - Ask the user to guess the number + - If the user guesses the number, print "You guessed the number!" + - If the user guesses too high, print "Too high!" + - If the user guesses too low, print "Too low!" + - If the user guesses the number more than 5 times, print "You lose!" + +### Requirements 🏫 +``` +1. A .java file +2. The guessing game & result of the guessing game +```