In this exercise, you are going to help high school sweethearts profess their love on social media by generating a unicode heart with their initials:
❤ J. + M. ❤Implement the cleanupname method.
It should take a name and remove all - characters from it and replace them with a space.
It should also remove any whitespace from the beginning and end of the name.
julia> cleanupname("Jane-Ann")
"Jane Ann"Implement the firstletter method.
It should take a name and return its first letter as a string.
Make sure to reuse cleanupname that you defined in the previous step and compose it with other functions.
julia> firstletter("Jane")
"J"Implement the initial method.
It should take a name and return its first letter, uppercase, followed by a dot.
Make sure to reuse firstletter that you defined in the previous step.
initial("Robert")
"R."Implement the couple method.
It should take two names and return the initials with emoji hearts around.
Make sure to reuse initial that you defined in the previous step.
couple("Blake Miller", "Riley Lewis")
"❤ B. + R. ❤"In this exercise, you are going to help high school sweethearts profess their love on social media by generating a unicode heart with their initials:
❤ J. + M. ❤Implement the cleanupname method.
It should take a name and remove all - characters from it and replace them with a space.
It should also remove any whitespace from the beginning and end of the name.
julia> cleanupname("Jane-Ann")
"Jane Ann"Implement the firstletter method.
It should take a name and return its first letter as a string.
Make sure to reuse cleanupname that you defined in the previous step and compose it with other functions.
julia> firstletter("Jane")
"J"Implement the initial method.
It should take a name and return its first letter, uppercase, followed by a dot.
Make sure to reuse firstletter that you defined in the previous step.
initial("Robert")
"R."Implement the couple method.
It should take two names and return the initials with emoji hearts around.
Make sure to reuse initial that you defined in the previous step.
couple("Blake Miller", "Riley Lewis")
"❤ B. + R. ❤"