Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint โ€” Strings

โญ beginnerโณ 20 min read๐Ÿ“ Lesson 25 of 85

Initials and a password strength probe: slicing, classification, and case discipline in one program.

Checkpoint: identity utilities

Task: implement two methods:

  1. static string Initials(string fullName) โ€” the first letter of each whitespace-separated word, uppercased, joined. "nguyen van an" โ†’ "NVA". Null/empty/blank yields "".
  2. static int PasswordScore(string pw) โ€” score: 1 if length โ‰ฅ 8, plus 1 if it contains any digit, plus 1 if it contains any uppercase letter. Null or empty scores 0. So "Abcdefgh1" scores 3; "abcdefgh" scores 1.