Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

recognise typical interviewer errors and explain how to avoid them

Answered: 1 week ago

Question

identify and evaluate a range of recruitment and selection methods

Answered: 1 week ago

Question

understand the role of competencies and a competency framework

Answered: 1 week ago