diff --git a/client-a.txt b/client-a.txt index 09f6cf6..8918bbb 100644 --- a/client-a.txt +++ b/client-a.txt @@ -1,4 +1,23 @@ -# Client Task A # -# Add your pseudocode to this file below this line: # -# ------------------------------------------------- # +Task A +Start +Get the new number: + +Get the guess from the user + While the guess is incorrect + If guess is to large tell user it is "to large" + If guess is to small tell user it is "to small" + +Get a new guess + If guess is to large tell user it is "to large" + If guess is to small tell user it is "to small" + +Get a new guess + If guess is to large tell user it is "to large" + If guess is to small tell user it is "to small" + + While the guess is correct +If guess is correct tell user "you have guessed the correct number" +Print "Number" + +End diff --git a/client-b.txt b/client-b.txt index 991004f..9e815dc 100644 --- a/client-b.txt +++ b/client-b.txt @@ -1,4 +1,44 @@ -# Client Task B # -# Add your pseudocode to this file below this line: # -# ------------------------------------------------- # +Task B + + +START + +Current Room = 'Center of Warehouse' +Print 'You are in the Center of Warehouse' +BEGIN LOOP + INPUT= 'What direction do you want to go?' + IF current location is 'Center of Warehouse' + IF direction is 'West' + current location = 'West Warehouse' + OUTPUT= 'You are in the West Warehouse portion' + ELSE + OUTPUT= 'Invalid Direction, Try Again' + ELIF current location is 'Center of Warehouse' + INPUT= 'What direction do you want to go?' + IF direction is 'North' + current location = "North Warehouse" + OUTPUT= 'You are in the North Warehouse portion' + ELSE + OUPUT= 'Invalid Direction, Try Again' + ELIF current location is 'Center of Warehouse' + INPUT= 'What direction do you want to go?' + IF direction is 'South' + current location = 'South Warehouse' + OUTPUT= 'You are in the South Warehouse portion' + ELSE + OUPUT= 'Invalid Direction, Try Again' + ELIF current location is "Center of Warehouse" + INPUT= 'What direction do you want to go?' + IF direction is 'East' + current location = 'East Warehouse' + OUTPUT= 'You are in the East Warehouse portion' + ELSE + OUPUT= 'Invalid Direction, Try Again' + + END LOOP + IF current location = 'Center of Warehouse' + OUTPUT= 'End Point Reached' + + END + diff --git a/client-c.txt b/client-c.txt index d9a1860..24183ac 100644 --- a/client-c.txt +++ b/client-c.txt @@ -1,4 +1,17 @@ -# Client Task C # -# Add your pseudocode to this file below this line: # -# ------------------------------------------------- # +Task C + +START + +SET n=2 + +PRINT 'n' + +Increase 'n' by 2 + +If N <=50 Go to 2nd Step + +ELSE STOP + + +STOP