Question: 11:04 PM Thu Feb 7 96% . (4) Based on Problem P4.16 .In addition to instructions in Problem 4.16, implement a loop and ask the

 11:04 PM Thu Feb 7 96% . (4) Based on Problem

11:04 PM Thu Feb 7 96% . (4) Based on Problem P4.16 .In addition to instructions in Problem 4.16, implement a loop and ask the user for the zip code repeatedly, until the user desires to quit . You can assume that the input is either a number or a character or a word, but never a mix (for example, 1000a or aabc100 are not allowed) . If the user enters a zip code which is less then 0 or greater than 100000, then exit the program (see the sample of input-output) . If the user enters a zip code which is not a number, then exit the program (see the sample of input-output). To check if the input is failed use cin.fail) function . Submit the solution in the file named hmw.3-4.cpp Sample input-output: CWindowslsystem321cmd.exe Please enter a zip code 95014 Continue (y)? y Baraode et er:: i.cod:.?9055: : 1: 1:::: Continue (y)? y Please enter a zip code 123456 zip code you entered does not exist. Press any key to continue ..- _

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!