forked from CodeYouOrg/intro_pscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 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 |
---|---|---|
@@ -1,4 +1,31 @@ | ||
# Client Task A # | ||
# Add your pseudocode to this file below this line: # | ||
# ------------------------------------------------- # | ||
Start | ||
guessnum = (Random 1, 10) | ||
maximumattempt = 3 | ||
|
||
print "Pick a number 1 through 10" | ||
|
||
first attempt: | ||
if number = 8 then | ||
print "You win!" | ||
else | ||
print "Try again!" | ||
|
||
second attempt: | ||
if number = 8 then | ||
print "You win!" | ||
else | ||
print "Last chance!" | ||
|
||
third attempt: | ||
if number = 8 then | ||
print "Winner, Winner!" | ||
else | ||
print "You lose!" | ||
|
||
print "Game Over" | ||
|
||
End | ||
|
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 |
---|---|---|
@@ -1,4 +1,14 @@ | ||
# Client Task B # | ||
# Add your pseudocode to this file below this line: # | ||
# ------------------------------------------------- # | ||
1. User inputs objective within warehouse. | ||
2. Determine location of objective relative to user's location. | ||
3. Instruct user to move x direction for N amount of steps. | ||
define x = north, south, east, west | ||
define N = number of steps | ||
|
||
4. Move x direction for N amount of steps until user has reached destination. | ||
print "You are here" | ||
|
||
5. User has arrived at location | ||
print "Exit" or "New" |
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
# Client Task C # | ||
# Add your pseudocode to this file below this line: # | ||
# ------------------------------------------------- # | ||
Start | ||
count = 2 to 50 increment by 2 | ||
|
||
if 50 then | ||
print "Case complete." | ||
print "Start new." | ||
else | ||
count + 2 | ||
|
||
End |