Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 citiestowns:
Add the city entered to a list of cities. pt
If at least 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: pts
Display the number of characters in each citytown name pts
Replace all vowels in the names of the cities with asterisks pts
Display each city name spelled backward pts
Display the list of cities entered. pt
Display the number of cities entered. pt
Display the name of the city with the shortest name pts
Display the name of the city with the longest name pts
Implement a function a function, writedata to write the contents in alphabetical order of the list to a file citylist.txtpts
Exit the loop. ptsWrite program that performs the tasks described below
Continually prompt the user for the names of US citiestowns:
Add the city entered to a list of cities. pt
If at least 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: pts
Display the number of characters in each citytown name pts
Replace all vowels in the names of the cities with asterisks pts
Display each city name spelled backward pts
Display the list of cities entered. pt
Display the number of cities entered. pt
Display the name of the city with the shortest name pts
Display the name of the city with the longest name pts
Implement a function a function, writedata to write the contents in alphabetical order of the list to a file citylist.txtpts
Exit the loop. ptsWrite program that performs the tasks described below
Continually prompt the user for the names of US citiestowns:
Add the city entered to a list of cities. pt
If at least 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: pts
Display the number of characters in each citytown name pts
Replace all vowels in the names of the cities with asterisks pts
Display each city name spelled backward pts
Display the list of cities entered. pt
Display the number of cities entered. pt
Display the name of the city with the shortest name pts
Display the name of the city with the longest name pts
Implement a function a function, writedata to write the contents in alphabetical order of the list to a file citylist.txtpts
Exit the loop. pts
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started