Answered step by step
Verified Expert Solution
Link Copied!

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 15th International Conference Dexa 2004 Zaragoza Spain August 30 September 3 2004 Proceedings Lncs 3180

Authors: Fernando Galindo ,Makoto Takizawa ,Roland Traunmuller

2004th Edition

3540229361, 978-3540229360

More Books

Students also viewed these Databases questions