Implement an application that will hold the customer list

Assignment Help Computer Engineering
Reference no: EM131266149

Assignment

Statement: You will need to implement an application that will hold the customer list for Acme Anvil Supply. This list will be read from a file and stored in a binary tree. The customer file contains fields with the customer number, name, and address (street, city, state and zip). Each field will be in a separate line in the file, thus a given record will be 6 lines in length. The file will be named Customers.txt.

The application will provide the user with a menu to allow them to:

· Load the tree from the file

· Save the tree to the file

· Add a customer to the tree

· Remove a customer from the tree

· Display the list of customers in: (display customer number and name)

o In-order

o Pre-order

o Post-order

· Search the tree for a given: (display customer number, name and address)

o Customer Number

o Customer Name

· Quit the application

Detail Requirements

You will need to have the following classes:

· Customer - This class will hold the information for a customer (in files name Customer.cpp and Customer.h):

o Number

o Name

o Address

o Various setters, getters, operators, including, but not limited to (comparison operators based on the Customer Number):

§ Operator

§ Operator==

§ Operator <>

· Address - This class will hold the information for a customer's address (in files named Address.cpp and Address.h):

o Street (i.e., 33 N. Main)

o City

o State

o Zip

o Various setters, getters, operators, including, but not limited to:

§ Operator <>

· BinaryTree - This is the binary tree class holding the information. Do not use a Template or a Standard Template to implement this. Write a custom tree. Minimally, you will need to implement the following public methods (in files named BinaryTree.cpp and BinaryTree.h):

o addCustomer(Customer *)

o removeCustomer(string customerNumber)

o searchCustomer(string customerNumber) : Customer*

o printCustomers() - print a list of customers (in order by customer number) showing all information about the customer.

o listPreFix() - print a list of customer numbers and names

o listPostFix() - print a list of customer numbers and names

· BinaryTreeNode - the nodes used in the binary tree (In files named BinaryTreeNode.h and optionally, BinaryTreeNode.cpp. You may implement this as a struct or a class)

Sample input file:

00001

Wilee Caytote

123 E. Fifth St.

Phynox

AZ

12345-1234

00002

Dave Walls

123 W. Anywhere St.

Columbus

OH

45402

00012

Robert U. McKey

4986 Boundary St.

Jacksonville

AZ

12345

00123

Ruby B. Edwards

4861 Spring Ave.

Philadelphia

PA

19108.

Reference no: EM131266149

Questions Cloud

Write a brief description of your project proposal : Write a brief description of your project proposal that describes the task to be scripted. Explain how it meets the requirements for a task that should be scripted.
Calculate joe total and average cost curves : Calculate Joe's total and average cost curves (as a function of q)
What is predictive data analytics : How do machine learning algorithms deal with the fact that machine learning is an ill-posed problem?
Chance of getting an urban job : In equilibrium, what is the chance of getting an urban job? What is the implied unemployment rate in the city? What is the distance to the edge of the city? How much does a resident living at the edge spend on commuting?
Implement an application that will hold the customer list : You will need to implement an application that will hold the customer list for Acme Anvil Supply. This list will be read from a file and stored in a binary tree.
How is fashion industry being corporatized today : How does economic development in society influence how and what artistic work is being created in fashion industry? How is fashion industry being corporatized today? Can you think of methods or strategies of corporativism that were employed in your..
Privately and publicly owned forests : In 150 words how is the supply of forest goods influenced by privately and publicly owned forests?
Discuss impact of multinational firms on the world economy : Discuss the impact of multinational firms on the world economy. - What could foreign governments do to make them more beneficial?
Implement and test a generic binary search : Implement and test a generic binary search. Note that your test program must use at least 2 types of data to prove that bsearch is generic.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd