Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added client files a b and c #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
28 changes: 28 additions & 0 deletions client-a.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,31 @@
# Add your pseudocode to this file below this line: #
# ------------------------------------------------- #

Choose a number between 1 - 10
The user gets 3 tries to match the computer picked number

Computer will pick a number between 1-10

Prompt 1
Prompt user to choose a number between 1-10
If number is not between 1-10 then prompt user to "Please try again Friend"
Else Compare the input to computers prepicked number


If the number the user picks matches the number the computer picks then prompt user "You are a winner"

Else If the number the user picks does not match the computer picked number then prompt user "Please try again"
Count down chances remaining

Loop Prompt 1

If the number the user picks matches the number the compter picks the prompt user "Second time is a charm, You're a WINNER!"

Else If the number the user picks does not match the computer picked number then prompt user "Please try again"
Count down the chances remaining
Loop Prompt 1

If the number the user picks matches the number the computer picks then prompt user "WINNER WINNER CHICKEN DINNER!"

Else If the number the user picks does not match the computer picked number then Prompt user "End of LINE, Sorry!"
End Game
28 changes: 28 additions & 0 deletions client-b.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,31 @@
# Add your pseudocode to this file below this line: #
# ------------------------------------------------- #

Task: Develop a mapping (walking) application to find a specific set location in a large warehouse store for a customer. The customer can move north, south, east, or west.

Hints: Loops, Variables

Create an array containing North, South, East, West

Locate users position location in the warehouse store

Locate item position in the warehouse store

Calculate directions to the item

Compare the users postion and where the item is

Provide a list of possible directions

Have user select which direction they would like to choose

Track user postion and eliminate previous directions once they have been fulfilled

At each direction change point, recalibrate next direction in line

If user is on the correct path continue with current directions
Else the user moves in the wrong direction provide updated list of directions

Loop Compare statement until item is located

When users location matches item location prompt user "You Are HERE!"
23 changes: 23 additions & 0 deletions client-c.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,26 @@
# Add your pseudocode to this file below this line: #
# ------------------------------------------------- #

Task C: Product Package Counter
Task: You need to develop a program that counts the number of items that a hardware device scans to sort for boxing packages into cases. Each package scanned is two (2) products. Each case can only fit 50 product packages. Write a program that prints numbers from 2 to 50, counting by twos.

Hint: Loops

Determine number of packages per box and how many items in each package

Create a count state Variables intialized at zero

While count state is <=50 increments count state by 2

let count_state = 0;
print count_state;
while (count_state < 50) {
count_state + 2;
print count_state;
if (count_state === 50) {
print("Limit of 50 packages has been reached!")
break
}
}