Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

http://www.cs.utexas.edu/~cannata/pl/Projects/Project%201%20OOP/Project%201.pdf Display customer information Console Operation The application prompts the user to enter a customer number. If a customer with that number exists, the application

http://www.cs.utexas.edu/~cannata/pl/Projects/Project%201%20OOP/Project%201.pdf

Display customer information Console

Operation

The application prompts the user to enter a customer number. If a customer with that number exists, the application displays the customers name and address. If not, the application displays an appropriate message that includes the customer number.

Specifications

Create a class named Customer that has instance variables that store the name, address, city, state, and postalCode for the customer. This class should have get and set methods that provide access to all instance variables. In addition, the class should have a method named getNameAndAddress that returns the name and address formatted as shown above.

Create a class named CustomerDB class that contains a static method named getCustomer that accepts a customer number (an int value) and returns a Customer object. Within this class, code an if statement that returns this data: 1001 Barbara White 3400 Richmond Parkway #3423 Bristol, CT 06010 1002 Karl Vang 327 Franklin Street Edina, MN 55435 1003 Ronda Chavan 518 Commanche Dr. Greensboro, NC 27410

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

Step: 3

blur-text-image

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

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago