Question: C# Write a Console App that does the following Reads the following file of names of cites: cities Formats the cities to have a capitalized

C#

Write a Console App that does the following

  1. Reads the following file of names of cites: cities
    1. Formats the cities to have a capitalized first letter
      • Uses a method that you write FormatName() that accepts a string and returns the formatted string
    2. Write these to a new file, citynames. You may save in List
  2. Appends a city, such as your hometown, to the file
  3. Reads the newly appended
    1. Formats the cities to have a capitalized first letter
      • Uses a method your formatName() that accepts a string and returns the formatted string
    2. Write these to a new file, citynames.

Extra Credit: Handle two name cities (Des Moines) for up to 2 extra credit points.

Sample Files: C# Write a Console App that does the following Reads the following

omaHa seattle portland ames minneapolis newton charleston willington miami austin jacksonville phoenix indianapolis chicago

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!