ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 2 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 08 May 2017 My Price 9.00

Welcome to the Customer Maintenance application

I have most of the following project done I believe. I'm almost certain I just need to add a list, exit, and help frame/button to what I already have going here for the gui and have it functional.

Here are the full instructions and I will attach what I have going so far. Like I said I'm pretty certain it's finished on the coding end and I have an update, add, and delete button going. I'f im incorrect please feel free to let me know.

Instructions:

Console

Welcome to the Customer Maintenance application

 

COMMAND MENU

list    - List all customers

add     - Add a customer

del     - Delete a customer

help    - Show this menu

exit    - Exit this application

 

Enter a command: list

 

CUSTOMER L..6@hotmail.com               Frank              J..h@yahoo.com             Sarah              Smith

 

Enter a command: add

 

Enter customer email address: t..t@gmail.com

Enter first name: text

Enter last name: test

 

text test was added to the database.

 

Enter a command: list

 

CUSTOMER L..6@hotmail.com               Frank              J..h@yahoo.com             Sarah              S..t@gmail.com                    text               test

 

Enter a command: del

 

Enter customer email to delete: t..t@gmail.com

 

text test was deleted from the database.

 

Enter a command: list

 

CUSTOMER L..6@hotmail.com               Frank              J..h@yahoo.com             Sarah              Smith

 

Enter a command: exit

 

Bye.

 

Operation

  • This application will present a user with five choices: list, add, delete, help, and exit.

    • Menu choices may be used, but buttons are typically used.
  • If the user chooses “list”, the application displays the customer data that’s stored in a text or XML file for persistent storage.
  • If the user chooses “add”, the application prompts the user to enter data for a customer and saves that data to the persistent storage.
  • If the user chooses “delete”, the application prompts the user for an email address and deletes the corresponding customer from the persistent storage.
  • If the user chooses “help”, the application displays the usage information.
  • If the user chooses “exit”, the application displays a goodbye message and exits.

Specifications

  • Create a class named Customer that stores data for the user’s email address, first name, and last name.
  • Create interfaces named CustomerReader and CustomerWriter that define the methods that will be used to read and write customer data to persistent storage  In addition, create an interface named CustomerConstants that contains three constants that specify the display size of a customer’s email address (30), first name (15), and last name (15). Then, create an interface named CustomerDAO that inherits all three of these interfaces.
  • Create at least one persistence class that implements the methods specified by the CustomerDAO interface. Store the customer data. If you use a text or XML file which doesn't exist, this class should create it. 
  • Create a class named DAOFactory that contains a method named getCustomerDAO. This method should return an instance of the persistence class.
  • Create a CustomerMaintApp class that controls execution. This class should use the DAOFactory class to get a CustomerDAO object. Then, it should use the methods of the CustomerDAO object to read customer data from and write customer data to the persistent storage.
  • Use the Validator class or a variation of it to validate the user’s entries. Non-empty strings are required for the email address, first name, and last name.
  • Use spaces to align the customer data in columns on the console. To do that, you can create a utility class named StringUtils with a method that adds the necessary spaces to a string to reach a specified length.
  • Add an “update” command that lets the user update an existing customer. This command should prompt the user to enter the email address. Then, it should let the user update the first name or last name for the customer.
  • Add a method to the Validator class that uses string parsing techniques to validate the email address. At the least, you can check to make sure that this string contains some text, followed by an @ sign, followed by some more text, followed by a period, followed by some more text. For example, .x@x.x” would be valid while “xxx” or “x@x” would not.

 

Attachments:

Answers

(11)
Status NEW Posted 08 May 2017 12:05 AM My Price 9.00

-----------

Attachments

file 1494205063-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)