generated from mwc/lab_pipes
	I rearranged the pipes so that they reflected the
prompts in the questions. This kind of thinking felt like the type of thinking in our defining labs. It reminded me of chemistry and simplifying formulas. You start with the answer you want, then work through one piece at a time to call it forward. I liked using the pipes in terminal. It felt like it almost (in a complicated way) to simplify the problems. As I was working through this lab in particular I thought about teaching writing. Having the ability to call upon these words in interesting combinations would be fun to use in an English class. I did get stuck a few times, but like Unit 1, I just started running things one piece at a time. There were still things that I found confusing. However, in the directions, the breakdowns were really helpful to try and overcome these obstacles. Our group works well together. We have asked one another for help a few times and have done troubleshooting together. It is a really bit help to have this sounding board.
This commit is contained in:
		
							
								
								
									
										41
									
								
								exercises.md
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								exercises.md
									
									
									
									
									
								
							@@ -10,27 +10,58 @@ If you want to be really stylish, put your code inside of backticks like this:
 | 
			
		||||
`cat words_100k.txt | length | put 10 | equal | count`
 | 
			
		||||
 | 
			
		||||
## 1. What is the longest word?
 | 
			
		||||
 | 
			
		||||
28 antidisestablishmentarianism
 | 
			
		||||
`cat words_100k.txt | length | order`
 | 
			
		||||
 | 
			
		||||
## 2. How many words have two u's in a row?
 | 
			
		||||
 | 
			
		||||
continuum
 | 
			
		||||
continuums
 | 
			
		||||
equus
 | 
			
		||||
muumuu
 | 
			
		||||
obliquus
 | 
			
		||||
perpetuum
 | 
			
		||||
residuum
 | 
			
		||||
suu
 | 
			
		||||
suum
 | 
			
		||||
triduum
 | 
			
		||||
tuum
 | 
			
		||||
vacuum
 | 
			
		||||
vacuumed
 | 
			
		||||
vacuuming
 | 
			
		||||
vacuums
 | 
			
		||||
weltanschauung
 | 
			
		||||
 | 
			
		||||
`cat words_100k.txt | match "uu"`
 | 
			
		||||
then `cat words_100k.txt | match "uu" | count`
 | 
			
		||||
 | 
			
		||||
## 3. How many words have the word "cat" in them?
 | 
			
		||||
 | 
			
		||||
893 
 | 
			
		||||
`cat words_100k.txt | match "cat" | count`
 | 
			
		||||
 | 
			
		||||
## 4. How many words have all five vowels (aeiou)?
 | 
			
		||||
 | 
			
		||||
8
 | 
			
		||||
`cat words_100k.txt | match ".*a.*e.*i.*o.*u.*" | count` 
 | 
			
		||||
 | 
			
		||||
## 5. Which words have two e's in a row, two o's in a row, and two k's in a row? (they don't have to be in that order)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## 6. How many words have sixteen or more letters?
 | 
			
		||||
 | 
			
		||||
354
 | 
			
		||||
`cat words_100k.txt | length | put 16 | equal | pluck 2 | count` 
 | 
			
		||||
 | 
			
		||||
## 7. What's the most frequent 10-letter word?
 | 
			
		||||
 | 
			
		||||
208000 10 9 zygomatic
 | 
			
		||||
`cat words_100k.txt | length | put 10 | frequency | order -r | head -n 1`
 | 
			
		||||
 | 
			
		||||
## 8. What's the longest word which doesn't have any repeated letters?
 | 
			
		||||
13 abcdeilnprtuy 13 unpredictably
 | 
			
		||||
13 abceghiloprty 13 copyrightable
 | 
			
		||||
13 abceilmnoprtu 13 unproblematic
 | 
			
		||||
13 abegiklmnortu 13 troublemaking
 | 
			
		||||
13 acegilmnopsty 13 salpingectomy
 | 
			
		||||
 | 
			
		||||
`cat words_100k.txt | length | unique 1 | length | equal 0 2 | order | tail`
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## 9. What's the longest word which only uses four different letters?
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										100000
									
								
								words_100k.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										100000
									
								
								words_100k.txt
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										10000
									
								
								words_10k.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10000
									
								
								words_10k.txt
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1000
									
								
								words_1k.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1000
									
								
								words_1k.txt
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user