Question: A project to display customer information Sample Console Customer Viewer: Veraion 1.0 Enter a customer number: 401 Steve Wright 880 Clearview Drive Denver, CO 80209

A project to display customer information Sample Console Customer Viewer: Veraion 1.0 Enter a customer number: 401 Steve Wright 880 Clearview Drive Denver, CO 80209 Display another customer? (y): y Enter a customer number: 651 There is no customer number 651 to display Display another customer? (y): n Operation . The application prompts the user to enter a customer number. If a customer with that number exists, the application displays the customer's name and address. If not, the application displays an appropriate message that includes the customer number Specifications . Create a class named Customer that has five instance variables that store the name, address, city, state, and Zip Code for the customer. Include a constructor for the class that has five parameters for the instance variables. This class should have get and set methods that provide access to all instance variables. In addition, the class should have a method named getNameAndFullAddress that returns the name and address formatted as a single string, as shown in the output 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. Use the Customer class constructor to create a customer object if a matching customer is found, otherwise return a null customer object. Withirn this class, code an if statement that retuns objects with this data. The fourth customer will have be you. Steve Wright 880 Clearview Drive Denver, CO 80209 Ana Bailey 2000 Leo Street Lakewood, Co 80215 Darrin Clarke 3974 Kemberx Drive Centennial, CO 80112 701 Your Name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
