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/Week 2/For Loops/README.md b/Week 2/For Loops/README.md new file mode 100644 index 0000000..4f3f6fb --- /dev/null +++ b/Week 2/For Loops/README.md @@ -0,0 +1,11 @@ +# 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/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 +``` 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/Week 2/While Loops/README.md b/Week 2/While Loops/README.md new file mode 100644 index 0000000..b20e56e --- /dev/null +++ b/Week 2/While Loops/README.md @@ -0,0 +1,11 @@ +# While Loops 🍵 + +### Task 🐧 + - Iteratively divide 64 by 2 and stop when the quotient is equal to 1 + - Print the number at every iteration + +### Requirements 🏫 +``` +1. A .java file +2. 64, 32, 16, 8, 4, 2, 1 all on seperate lines +```