You are previewing Exercises for Programmers.
O'Reilly logo
Exercises for Programmers

Book Description

When you write software, you need to be at the top of your game. Great programmers practice to keep their skills sharp. Get sharp and stay sharp with more than fifty practice exercises rooted in real-world scenarios. If you're a new programmer, these challenges will help you learn what you need to break into the field, and if you're a seasoned pro, you can use these exercises to learn that hot new language for your next gig.

Table of Contents

  1. Exercises for Programmers
    1. For the Best Reading Experience...
    2. Table of Contents
    3. Early praise for Exercises for Programmers
    4. Acknowledgments
    5. How to Use This Book
      1. Who This Book Is For
      2. What’s in This Book (And What’s Not)
      3. What You Need
      4. Online Resources
    6. Chapter 1: Turning Problems into Code
      1. Understanding the Problem
      2. Discovering Inputs, Processes, and Outputs
      3. Driving Design with Tests
      4. Writing the Algorithm in Pseudocode
      5. Writing the Code
      6. Challenges
      7. Onward!
    7. Chapter 2: Input, Processing, and Output
    8. Saying Hello
    9. Counting the Number of Characters
    10. Printing Quotes
    11. Mad Lib
    12. Simple Math
    13. Retirement Calculator
      1. What You Learned
    14. Chapter 3: Calculations
    15. Area of a Rectangular Room
    16. Pizza Party
    17. Paint Calculator
    18. Self-Checkout
    19. Currency Conversion
    20. Computing Simple Interest
    21. Determining Compound Interest
      1. What You Learned
    22. Chapter 4: Making Decisions
    23. Tax Calculator
    24. Password Validation
    25. Legal Driving Age
    26. Blood Alcohol Calculator
    27. Temperature Converter
    28. BMI Calculator
    29. Multistate Sales Tax Calculator
    30. Numbers to Names
    31. Comparing Numbers
    32. Troubleshooting Car Issues
      1. What You Learned
    33. Chapter 5: Functions
    34. Anagram Checker
    35. Password Strength Indicator
    36. Months to Pay Off a Credit Card
    37. Validating Inputs
      1. What You Learned
    38. Chapter 6: Repetition
    39. Adding Numbers
    40. Handling Bad Input
    41. Multiplication Table
    42. Karvonen Heart Rate
    43. Guess the Number Game
      1. What You Learned
    44. Chapter 7: Data Structures
    45. Magic 8 Ball
    46. Employee List Removal
    47. Picking a Winner
    48. Computing Statistics
    49. Password Generator
    50. Filtering Values
    51. Sorting Records
    52. Filtering Records
      1. What You Learned
    53. Chapter 8: Working with Files
    54. Name Sorter
    55. Parsing a Data File
    56. Website Generator
    57. Product Search
    58. Word Finder
    59. Word Frequency Finder
      1. What You Learned
    60. Chapter 9: Working with External Services
    61. Who’s in Space?
    62. Grabbing the Weather
    63. Flickr Photo Search
    64. Movie Recommendations
    65. Pushing Notes to Firebase
    66. Creating Your Own Time Service
      1. What You Learned
    67. Chapter 10: Full Programs
    68. Todo List
    69. URL Shortener
    70. Text Sharing
    71. Tracking Inventory
    72. Trivia App
      1. Where to Go Next
      2. You May Be Interested In…