Card Ordering- Reflection Questions

Homework:

Write up your algorithm electronically and post it to your blog for the card ordering.

Algorithm:
1.) If RH card is less than LH card,
2.) Then move LH to RHPos and shift RH to R
3.) Else shift Rh to R
4.) Jump to Line 1 if RHPos is less than 7.
5.) If RHCard is less than LHCard,
6.) Move LHPos to RHPos
7.) Move RHPos to LHPos
8.) Move LH to Position 0
9.) If RHPos is not equal to 0
10.) then Swap and shift LH to R
11.) Jump to Line 9 if LHPos is less than RHPos
12.) STOP

Reflection: Share your responses with stark.brookinehighschool@gmail.com in a google doc as well as post to your blog

Did your algorithm  know when to stop?
Did your instructions state where and how to start?
Was it clear where to put cards back down after you've picked them up?"
Does your card sequencing work for any cards you are given?  How did you sort Aces, Kings, Queens? Did you factor in Jokers? What assumptions did you make?

What questions or challenges did you have in writing your program? What programming concepts connect to prior coding that you have already done?

My algorithm knows when to stop. My instructions state where and how the algorithm starts. The algorithm was clear on where to put the cards back after they were picked up. We sorted Aces as a value of 1, Kings, Queen, and Joker were were the values after 10. The challenges were making sure the algorithm was able to work because one tiny error can affect the entire algorithm. We had to continuously test the algorithm to see if there were no errors. This testing is similar to programming concepts as well.

Comments

Popular posts from this blog

Reflections from Blown to Bits Ch. 3 (Homework- 9/28/17)

Unit 3 Lesson 5- Creating Functions (Diamond Code)

Blown to Bits Appendix/Ch.3 Reflection (Homework- 10/11/17)