Question: Write program that performs the tasks described below Continually prompt the user for the names of US cities / towns: Add the city entered to

Write program that performs the tasks described below
Continually prompt the user for the names of US cities/towns:
Add the city entered to a list of cities. 1pt
If at least 5 cities have been entered and the user enters a blank (user hits enter without making an entry) city name, the program should perform the following actions: 1pts.
Display the number of characters in each city/town name 2pts
Replace all vowels in the names of the cities with asterisks (*)2.5pts
Display each city name spelled backward 2.5pts
Display the list of cities entered. 1pt
Display the number of cities entered. 1pt
Display the name of the city with the shortest name 2pts
Display the name of the city with the longest name 2pts
Implement a function a function, write_data(), to write the contents (in alphabetical order) of the list to a file (city_list.txt)4pts
Exit the loop. 1ptsWrite program that performs the tasks described below
Continually prompt the user for the names of US cities/towns:
Add the city entered to a list of cities. 1pt
If at least 5 cities have been entered and the user enters a blank (user hits enter without making an entry) city name, the program should perform the following actions: 1pts.
Display the number of characters in each city/town name 2pts
Replace all vowels in the names of the cities with asterisks (*)2.5pts
Display each city name spelled backward 2.5pts
Display the list of cities entered. 1pt
Display the number of cities entered. 1pt
Display the name of the city with the shortest name 2pts
Display the name of the city with the longest name 2pts
Implement a function a function, write_data(), to write the contents (in alphabetical order) of the list to a file (city_list.txt)4pts
Exit the loop. 1ptsWrite program that performs the tasks described below
Continually prompt the user for the names of US cities/towns:
Add the city entered to a list of cities. 1pt
If at least 5 cities have been entered and the user enters a blank (user hits enter without making an entry) city name, the program should perform the following actions: 1pts.
Display the number of characters in each city/town name 2pts
Replace all vowels in the names of the cities with asterisks (*)2.5pts
Display each city name spelled backward 2.5pts
Display the list of cities entered. 1pt
Display the number of cities entered. 1pt
Display the name of the city with the shortest name 2pts
Display the name of the city with the longest name 2pts
Implement a function a function, write_data(), to write the contents (in alphabetical order) of the list to a file (city_list.txt)4pts
Exit the loop. 1pts

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 Databases Questions!