2019-04-12 16:55:26 +03:00
|
|
|
# Exercises
|
|
|
|
|
|
|
|
|
|
Let's exercise with the scanner and maps.
|
|
|
|
|
|
2019-05-07 12:17:07 +03:00
|
|
|
1. **[Uppercaser](https://github.com/inancgumus/learngo/tree/master/23-input-scanning/exercises/01-uppercaser)**
|
2019-04-12 16:55:26 +03:00
|
|
|
|
|
|
|
|
Use a scanner to convert the lines to uppercase, and print them.
|
|
|
|
|
|
2019-05-07 12:17:07 +03:00
|
|
|
2. **[Unique Words](https://github.com/inancgumus/learngo/tree/master/23-input-scanning/exercises/02-unique-words)**
|
2019-04-12 16:55:26 +03:00
|
|
|
|
|
|
|
|
Create a program that counts the unique words from an input stream.
|
|
|
|
|
|
2019-05-07 12:17:07 +03:00
|
|
|
3. **[Unique Words 2](https://github.com/inancgumus/learngo/tree/master/23-input-scanning/exercises/03-unique-words-2)**
|
2019-04-12 16:55:26 +03:00
|
|
|
|
2019-05-07 12:17:07 +03:00
|
|
|
Enhance the previous exercise: Before adding the words to your map, remove the punctuation characters and numbers from them.
|
|
|
|
|
|
|
|
|
|
4. **[Grep Clone](https://github.com/inancgumus/learngo/tree/master/23-input-scanning/exercises/04-grep)**
|
|
|
|
|
|
|
|
|
|
Create a grep clone. grep is a command-line utility for searching plain-text data for lines that match a specific pattern.
|
|
|
|
|
|
|
|
|
|
5. **[Quit](https://github.com/inancgumus/learngo/tree/master/23-input-scanning/exercises/05-quit)**
|
|
|
|
|
|
|
|
|
|
Create a program that quits when a user types the same word twice.
|
|
|
|
|
|
|
|
|
|
6. **[Create the Log Parser program from scratch](https://github.com/inancgumus/learngo/tree/master/23-input-scanning/exercises/06-log-parser)**
|
|
|
|
|
|
|
|
|
|
You've watched the lecture. Now, try to create the same log parser program on your own. Do not look at the lecture, and the existing source code.
|
|
|
|
|
|
|
|
|
|
Click the link for more details.
|