Answer:

What day is it
? Monday
Charge Admission

Problems with String Matching

This program is not very practical. No one would use a program like this by itself. But this program might be part of a much larger program that deals with the operation of the museum.

The program has another problem: it is too easy for the user to make mistakes. If the user types "thursday" with a small "t", the program will say "Charge Admission" because "thursday" does not exactly match "Thursday". It would be better if the program had said something like "Unknown day. Please try again".

The program could be modified to do that, but it would take some additional work. For now, let's keep the program as it is and make the (unreasonable) assumption that the user will always enter correct data.

QUESTION 15:

What does the program do if the user enters "ThursDay" ?