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

  Why it is important to keep the web open and free

Tim Berners-Lee is called as the father of the Web. In "The Man who Invented the Web" (2005) it states that Berners-Lee has fought to keep it open, non-proprietary and free. Why would it be important to keep the Web open and free.

  Find out all doctors who went to harvard

Did the SQL programmer enforce the constraint that every doctor practices in a unique hospital? If so, how? If not, how do you know, and how, if at all, might this constraint have been implemented.

  What is the bandwidth efficiency for a 64-psk system

What is the bandwidth efficiency for a 64-PSK system - Can you find the bandwidth efficiency for a 64-PSK system?

  Assume a sequential file contains 50,000 records

assume a sequential file contains 50,000 records.

  Sketch a low power schottky ttl nand circuit

Sketch a low-power Schottky TTL NAND circuit. - What are the primary differences between this circuit and the regular DTL circuit considered earlier in the chapter?

  Addressing and naming model

Sketch a plan for development of the addressing and the naming model in an environment of following given scenario: Ten (10) departments in the 1,000-employee organization. Equal separation by geography

  Declaring a child class

Note that you will be overriding three object methods in the Order class and at least one of those in the ShippedOrder class. In the ShippedOrder class you will also need to override the Quantity accessor/property. Don't forget about IComparable.

  Express the scope of the project

Define the scope of the project. Create a detailed outline for each section

  How many have to be recycled

The bolts have a mean diameter of 1.000 cm, normally distributed with standard deviation of 0.010 cm - a bolt and a hole are randomly selected from supplies of parts with these characteristics.

  What are the two most significant families of operating

question 1 what is a dac? how much do they cost? who cares?question 2 what are the two most important families of

  How java programming knowledge benefits nonprogramming

How does information of programming concepts benefits individuals working in almost any IT position? Include at least one specific example of how java programming knowledge benefits nonprogramming working in IT?

  What would given draws become after anti-thetic sampling

A normal random generator produces the following draws: 0.68, -0.31, -0.49, -0.19, -0.72, -0.16, -1.01, -1.60, 0.88, -0.97. What would these draws become after anti-thetic sampling and second moment matching?

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