Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started