Question: 1 . Create a Python program file called Ch 0 8 - 1 _ Name.py . ( Replace Name with your initial of first name

1. Create a Python program file called Ch08-1_Name.py.(Replace Name with your initial of first name and first 5 letters of last name. If your last name is shorter than 5 letters, just use full last name, it doesn't have to be 5 letters. i.e. if your name is John Doe, your file name should be Ch08-1_JDoe.py)
2. Your program will take a file name from user, access the file and find out all the words in the file and list them in alphabetical order. Make sure every word is listed only once. Also state how many words are found in the file as sample output shows.
Also, ask user if user wants to repeat and depends on the answer, your program needs to terminate or repeat.
If user enters wrong information (wrong name of the file or non-existing file name), your program needs to display message and ask for correct input. Your program should not generate traceback message with any input.
File:Textsample1
Programmers add an operating system and a set of applications to the hardware
and we end up with a Personal Digital Assistant that is quite helpful and capable
of helping us do many different things
File:Textsample.2
Our computers are fast and have vast amounts of memory and could be very helpful
to us if we only knew the language to speak to explain to the computer what we
would like it to do next If we knew this language we could tell the computer
to do tasks on our behalf that were repetitive Interestingly the kinds of things
computers can do best are often the kinds of things that we humans find boring
and mind numbing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!