generated from microsoft/vscode-remote-try-java
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(5.3): finish unit 5 lesson 3 activities
- Loading branch information
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// /* Lesson 3 Coding Activity Question 1 */ | ||
|
||
// import java.util.Scanner; | ||
// import shapes.*; | ||
|
||
// public class U5_L3_Activity_One | ||
// { | ||
|
||
// /* Add the method makeEqTriangle here */ | ||
|
||
// // You can uncomment and add to the main method to test your code | ||
// // You will need to remove/comment out this method before submitting your code | ||
|
||
// public static void makeEqTriangle(RegularPolygon poly){ | ||
// poly.setNumSides(3); | ||
// } | ||
|
||
// // public static void main(String[] args){ | ||
|
||
// // } | ||
|
||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// /* Lesson 3 Coding Activity Question 3 */ | ||
|
||
// import java.util.Scanner; | ||
// import shapes.*; | ||
|
||
// public class U5_L3_Activity_Three | ||
// { | ||
|
||
// /* Add the method updateNumSides here */ | ||
|
||
// // You can uncomment and add to the main method to test your code | ||
// // You will need to remove/comment out this method before submitting your code | ||
|
||
// public static void updateNumSides(RegularPolygon poly, int sides){ | ||
// poly.setNumSides(sides); | ||
|
||
// } | ||
|
||
// /* | ||
// public static void main(String[] args){ | ||
|
||
// } | ||
// */ | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// /* Lesson 3 Coding Activity Question 2 */ | ||
|
||
// import java.util.Scanner; | ||
// import shapes.*; | ||
// import testing.Math; | ||
|
||
// public class U5_L3_Activity_Two { | ||
|
||
// /* Add the method randomize here */ | ||
|
||
// // You can uncomment and add to the main method to test your code | ||
// // You will need to remove/comment out this method before submitting your code | ||
|
||
// public static void randomize(Rectangle rect) { | ||
// int width = ((int) (Math.random() * 4) * 2) + 7; | ||
// int length = ((int) (Math.random() * 6) * 2) + 10; | ||
|
||
// rect.setWidth(width); | ||
// rect.setLength(length); | ||
// } | ||
|
||
// /* | ||
// public static void main(String[] args) { | ||
// Rectangle rect = new Rectangle(); | ||
// System.out.println(rect); | ||
// randomize(rect); | ||
// System.out.println(rect); | ||
// randomize(rect); | ||
// System.out.println(rect); | ||
// randomize(rect); | ||
// System.out.println(rect); | ||
// randomize(rect); | ||
// System.out.println(rect); | ||
// randomize(rect); | ||
// System.out.println(rect); | ||
// randomize(rect); | ||
// System.out.println(rect); | ||
// } | ||
// */ | ||
// } |