1. Reopen the project named LA_3.12
2. Click the Click here! button and then answer the question (start the word with a lower case letter).
This is what i got when i entered Monday with a lower case letter:
3. Explain why you got the message you did after you entered your input.
The days of the week in the code begin with capital letters, i changed the day of the week Friday from having an upper case letter to a lower case letter and when i executed the code,it worked. If the code uses upper case letters then you must type upper case letters into the text box when answering the question because the program sees the string "Friday" as different from the string "friday"
4. What message would be displayed if the user entered the day with a starting upper case letter?
The corresponding message to the answer would be displayed,the correct answer and not "I don't recognise the day you have entered. Try again" message.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment