Question: Write a program that greets the user with How are you? If the response is OK (Upper or lower case), then display Good to hear!

 Write a program that greets the user with "How are you?"

Write a program that greets the user with "How are you?" If the response is "OK" (Upper or lower case), then display "Good to hear!" Handle (ignore) leading and trailing spaces. Useful string methods are lower 0 or upper 0 and strip0. Example run: How are you? OK Output: Good to hear

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!