One Direction

Write a program that asks the user for the name of a One Direction member.

Input

It keeps asking until the user types Harry, Niall, Liam, or Louis. Case doesn't matter. When the user enters valid data, the program shows a MsgBox saying "Thank you!"

For example:

  • Program asks the user to type a band member.
  • User types "cat".
  • Program asks the user to type a band member.
  • The user types "dog".
  • Program asks the user to type a band member.
  • The user types "harry".
  • The program says "Thank you!"

Use the flag pattern.

Upload your Excel file.

(If you were logged in as a student, you could submit an exercise solution, and get some feedback.)