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

  Can a relation be stored as a sequential file

Can a relation be stored as a sequential file

  Describe the program development cycle

Describe the importance of using a structured, modular approach when creating program requirements, design, and code.

  Make a program which simulates a slot machine when the

create a program that simulates a slot machine. when the program runs it should do the following1. asks the user to

  Suppose further that this isp is deliberately dropping 25

suppose an internet service provider isp has a voice over ip voip telephone system that is manages and sells. suppose

  Predict the future role of the communication technology you

select one 1 of the following topics in which you will base your responses in the form of a term papernetwork

  About snmp

What do you understand by the term SNMP? Explain the role which SNMP plays in managing the networks.

  Computes the amount of money the computer club

Write a program that computes the amount of money the computer club will receive from proceeds of their granola bar sales project.

  What levels of osi model tcp/ip functions

in brief answer to explain at what levels of the OSI model TCP/IP functions.

  Standards and protocols would be established

Your organization has just completed the Initiation Process for implementing an Email System Upgrade. It was identified in a recent meeting with management leaders from the Sales, Consulting and IT departments that the current email system is caus..

  Do you require leading-edge operating systems

Do you require leading-edge operating systems? Will open-source solutions be acceptable suggestions? Do you require backup software options?

  Take a position on the idea of ipv6 being hailed as the

take a position on the idea of ipv6 being hailed as the next generation of the internet. support your response with

  Write down a program that reads product number

The Rinky Dooflingy Company manufactures different types of doofingies, each identified b a product number.

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