If necessary, create a new project named Advanced26 Project and save it in the Cpp8Chap14 folder. Also
Question:
If necessary, create a new project named Advanced26 Project and save it in the Cpp8\Chap14 folder. Also create a new source file named Advanced26.cpp. Write a program that allows the user to record the names of cities and their corresponding ZIP codes in a sequential access file named Advanced26.txt. The program should also allow the user to look up a ZIP code in the file and display the name of its corresponding city. If the ZIP code is not in the file, the program should display an appropriate message. Save and then run the program. Enter any five ZIP codes and their corresponding city names. Then, test the program by entering each valid ZIP code. Also enter one or more invalid ZIP codes.
Step by Step Answer:
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell