Write a program that asks the user to enter a word the


PYTHON PROGRAMMONG

Write a program that asks the user to enter a word. The program then reads ‘The Raven' by Edgar Allen Poe from a text file, and returns the number of times that word appears.

You will need:

A text file with the poem in it. (A copy of the file has been uploaded to Canvas.) Make sure to download it to an appropriate location on your computer!

Two input objects - one to read the user's word from the keyboard, and another to read the text file.

A while loop to read the poem.

The loop will use the predefined method to ensure that the contents of the files are read.

Use the next method instead of the nextLine method to read word by word.

You will need a nested if statement - this will be used to compare the user's word to every word in the poem.

Code Shell

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that asks the user to enter a word the
Reference No:- TGS02907030

Expected delivery within 24 Hours