Question: Question #1 Write a program to prompt the user for a Yes or No response. Read in the user response using the STDIN file handle
Question #1
Write a program to prompt the user for a Yes or No response. Read in the user response using the STDIN file handle and print OK if the user enters Yes, I hear you if the user enters No, and Make up your mind! if the user enters something other than Yes or No.
Question #2
Write a program that asks the user to enter a list of words. Sort the list and print the sorted results. Do not use a loop to do this exercise. Sample output:
Please enter several words: perl is so much fun! In sorted order: fun! is much perl so
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
