In this exercise, you modify one of the ZIP code programs from the chapter. If necessary, create

Question:

In this exercise, you modify one of the ZIP code programs from the chapter. If necessary, create a new project named ModifyThis19 Project and save it in the Cpp8\Chap13 folder. Enter the C++ instructions from Figure 13-13 into a new source file named ModifyThis19.cpp. Change the filename in the first comment. Save and then run the program. Test the program using the data shown in Figure 13-13 in the chapter. Now, modify the program so that it allows the user to enter either a five-character ZIP code or a nine-character ZIP code. Pass the number of characters in the ZIP code to the verifyNumeric function. Save and then run the program. Test the program appropriately.

Figure 13-13

1 //Modified ZIP Code.cpp 2 //displays a message indicating whether a ZIP code 3 //contains the appropriate number of characters 4 7/and whether each character is a number 5 7/Created/revised by  on  7 #include  8 #include  9 using namespace std; 10 11 //function prototype 12 char

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: