High school sweethearts


Story

In this exercise, you are going to help high school sweethearts profess their love on social media by generating an ASCII heart with their initials:

     ******       ******
   **      **   **      **
 **         ** **         **
**            *            **
**                         **
**     J. K.  +  M. B.     **
 **                       **
   **                   **
     **               **
       **           **
         **       **
           **   **
             ***
              *

Tasks

These are example tasks that fit the high school sweethearts exercise, each task builds on top of the previous one:

  • Get a name and return its first letter (trimming leading whitespace)
  • Get a name and return its initial (first letter, uppercase, with a dot)
  • Get a full name, split it into a first name and a last name, and return the initials
  • Get two full names and put their initials inside of the heart

Implementations