There exists a file of ‘Knock Knock’ jokes. The file consists of line pairs. The first element of each pair contains the setup line, and the second element contains the punch line. Here are a few lines from the file:
Amish you when you are away.
Snowbody but me!
Toby or not to be, that is the question.
Dishwasher ish a bit shtronger than I exshpected.
I need to write a program that reads a file and then loops, randomly picking jokes and then promting the user with the statement "Knock Knock". Then the user is to pick the correct response for what they want to use.
Then for it to ask the user if they would like to hear another joke or quit out of the program
I need some guidence in how to do this question