Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
585be9f
Create Logic.md & Logic folders
rohinsood Jul 4, 2022
f2988a6
Create ForLoops.md and For Loops Folder
rohinsood Jul 4, 2022
fd581ec
Create While Loops.md and While Loops folder
rohinsood Jul 4, 2022
27c566c
Create NonVoidMethods.md & Non-Void Methods folder
rohinsood Jul 4, 2022
956614b
Create VoidMethods.md and Void Methods file
rohinsood Jul 4, 2022
e92be0a
Create Classes & Objects markdown and folder
rohinsood Jul 4, 2022
b595405
Create Modifiers markdown and folder
rohinsood Jul 4, 2022
6423cba
update forloops.md
rohinsood Jul 5, 2022
5509a32
Update NonVoidMethods.md
dashpen Jul 5, 2022
1bca0bf
update whileloops.md
rohinsood Jul 5, 2022
765a882
your mom
rohinsood Jul 5, 2022
9ab0660
update nonvoid method
rohinsood Jul 5, 2022
7dcf634
update classes & objects
rohinsood Jul 5, 2022
e55da63
deleting modifiers activyt
rohinsood Jul 5, 2022
d9fab42
Update Logic.md
dashpen Jul 5, 2022
3789735
Update ClassesAndObjects.md
rohinsood Jul 6, 2022
8c10600
Merge branch 'main' into day2
rohinsood Sep 22, 2022
41496e8
delete printing.md
rohinsood Sep 22, 2022
49f102d
Merge branch 'main' into day2
rohinsood Sep 22, 2022
9c4537d
rename files to readme
rohinsood Sep 22, 2022
bcb2595
add back files & rename to readme.md fr this time
rohinsood Sep 22, 2022
85aeb49
Merge branch 'main' into day2
rohinsood Sep 25, 2022
984e902
move to "week 2" folder & delete wrong ones
rohinsood Sep 25, 2022
a5a9548
create homework & imports activites
rohinsood Sep 25, 2022
3737b03
Merge branch 'main' into week2
rohinsood Sep 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Week 2/Arithmetics/README.md
Original file line number Diff line number Diff line change
@@ -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
```
16 changes: 16 additions & 0 deletions Week 2/Arrays/README.md
Original file line number Diff line number Diff line change
@@ -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
```
11 changes: 11 additions & 0 deletions Week 2/For Loops/README.md
Original file line number Diff line number Diff line change
@@ -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
```
16 changes: 16 additions & 0 deletions Week 2/Homework/README.md
Original file line number Diff line number Diff line change
@@ -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
```
16 changes: 16 additions & 0 deletions Week 2/Imports/README.md
Original file line number Diff line number Diff line change
@@ -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
```
13 changes: 13 additions & 0 deletions Week 2/Logic/README.md
Original file line number Diff line number Diff line change
@@ -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
```
15 changes: 15 additions & 0 deletions Week 2/Variables/README.md
Original file line number Diff line number Diff line change
@@ -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
```
11 changes: 11 additions & 0 deletions Week 2/While Loops/README.md
Original file line number Diff line number Diff line change
@@ -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
```