In this exercise, you are going to help high school sweethearts profess their love on social media.
Please implement the static HighSchoolSweethearts.DisplaySingleLine() method to take two names and display them separated by a heart.
The formatted text should be 61 characters wide, with the heart in the center of the string.
All names are guaranteed to fit well within the width of the line.
HighSchoolSweethearts.DisplaySingleLine("Lance Green", "Pat Riley");
// => " Lance Green ♡ Pat Riley "Implement the static HighSchoolSweethearts.DisplayBanner() method which displays the two sets of initials separated with a plus sign.
HighSchoolSweethearts.DisplayBanner("L. G.", "P. R.");
// see the ascii art below ****** ******
** ** ** **
** ** ** **
** * **
** **
** L. G. + P. R. **
** **
** **
** **
** **
** **
** **
***
*Implement the static HighSchoolSweethearts.DisplayGermanExchangeStudents() method to show date of start of relationship and length of time for our german exchange students.
HighSchoolSweethearts.DisplayGermanExchangeStudents("Norbert", "Heidi", new DateTime(2019, 1, 22), 1535.22f);
// => "Norbert and Heidi have been dating since 22.01.2019 - that's 1.535,22 hours"In this exercise, you are going to help high school sweethearts profess their love on social media.
Please implement the static HighSchoolSweethearts.DisplaySingleLine() method to take two names and display them separated by a heart.
The formatted text should be 61 characters wide, with the heart in the center of the string.
All names are guaranteed to fit well within the width of the line.
HighSchoolSweethearts.DisplaySingleLine("Lance Green", "Pat Riley");
// => " Lance Green ♡ Pat Riley "Implement the static HighSchoolSweethearts.DisplayBanner() method which displays the two sets of initials separated with a plus sign.
HighSchoolSweethearts.DisplayBanner("L. G.", "P. R.");
// see the ascii art below ****** ******
** ** ** **
** ** ** **
** * **
** **
** L. G. + P. R. **
** **
** **
** **
** **
** **
** **
***
*Implement the static HighSchoolSweethearts.DisplayGermanExchangeStudents() method to show date of start of relationship and length of time for our german exchange students.
HighSchoolSweethearts.DisplayGermanExchangeStudents("Norbert", "Heidi", new DateTime(2019, 1, 22), 1535.22f);
// => "Norbert and Heidi have been dating since 22.01.2019 - that's 1.535,22 hours"