From dbba8ad60eeacb6f2aa961b56fa9a5f477a2045f Mon Sep 17 00:00:00 2001 From: SSU04096 <33204450+SSU04096@users.noreply.github.com> Date: Sun, 19 Nov 2017 14:02:11 -0600 Subject: [PATCH 1/2] Add a bonus challenge to the Hello World Exercise --- exercises/hello-world/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exercises/hello-world/README.md b/exercises/hello-world/README.md index eb241cd3c..1bdb97650 100644 --- a/exercises/hello-world/README.md +++ b/exercises/hello-world/README.md @@ -14,6 +14,17 @@ The objectives are simple: If everything goes well, you will be ready to fetch your first real exercise. +# Bonus/Challenge + +Once you get the string "Hello, World!" to work, try to add in more challenging code. +1. Adding an if/else/else if statement + a. Have the user enter in a number between 0 to 10. If the value is between 0 and 5, return "Hello, Again!" (if statement) + b. If the value is between 6 and 10, return "Bye!" (else statement) + c.If the value is not within the range, return "Value out of bounds! Please enter a value between 0 to 10!" +2. Adding a for loop + 1. Have the user enter in a number between 0 to 10. + a. For the value entered, print the phrase "Hello, World!" that many times. + # Java Tips Since this is your first Java exercise, we've included a detailed TUTORIAL.md From 001099e49b620c401d6b929885e09045bd3ddda5 Mon Sep 17 00:00:00 2001 From: SSU04096 <33204450+SSU04096@users.noreply.github.com> Date: Sun, 19 Nov 2017 14:46:06 -0600 Subject: [PATCH 2/2] Adds Bonus to Hello World Exercise --- exercises/hello-world/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/hello-world/README.md b/exercises/hello-world/README.md index 1bdb97650..af1bcc46c 100644 --- a/exercises/hello-world/README.md +++ b/exercises/hello-world/README.md @@ -17,7 +17,7 @@ If everything goes well, you will be ready to fetch your first real exercise. # Bonus/Challenge Once you get the string "Hello, World!" to work, try to add in more challenging code. -1. Adding an if/else/else if statement +1. Adding an if/else/else if statements a. Have the user enter in a number between 0 to 10. If the value is between 0 and 5, return "Hello, Again!" (if statement) b. If the value is between 6 and 10, return "Bye!" (else statement) c.If the value is not within the range, return "Value out of bounds! Please enter a value between 0 to 10!"