Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in JAVA PLEASE. Programming Assignment #2 United States: Zip Code Problem Description: Write a program that accepts a US zip code as an input

image text in transcribed

Code in JAVA PLEASE.

Programming Assignment #2 United States: Zip Code Problem Description: Write a program that accepts a US zip code as an input and displays information corresponding to that zip code. The output must include the matching city and state. You must also display the county and one additional fact about that zip code. You can find all kinds of interesting zip code information at this website: https://www.unitedstateszipcodes.org Your program should include at least 7 valid zip codes with corresponding information. You may not use any of the zip codes provided as samples on this handout. When the user enters a zip code, check to be sure that it has exactly 5 digits and that it is not a value less than 0. If an error occurs, display an informative message and prompt the user for input again. Implement your program using a sentinel-controlled loop. This means that you will continue to loop, asking for fresh zip codes and displaying the corresponding information, until a special value is entered. You will need to figure out what special value does not correspond to a real zip code. Your output must look attractive. The program must display your name when it runs

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_2

Step: 3

blur-text-image_3

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

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

When should you write a memo? When should you write a letter?

Answered: 1 week ago