Generate a new project called phonebook

Assignment Help Computer Engineering
Reference no: EM131270367

Assignment: Concepts and Ideas

I want you to write a program that reads a text file containing a phone book listing. The program shall read the file, allow new entries, and write the file to disk such that you can extend the text file as people enter new data.

Supplied Items:

1. ReadWrite Project with the MailList class demonstrating reading and writing of the text files.

2. Simple MAP demonstrating the use of a STL MAP. The notes give a good explanation of the Simple MAP program.

3. Address.txt file that contains a starter list for your phone book.

4. MSDN Function Help handout that may help with some of the io functions.

Tasks To Do:

1. Start off looking over the projects, reviewing them and understanding them as much as possible. This will be done in class.

2. Generate a new project called PhoneBook.

3. Add the MailList class to your PhoneBook project.

4. Copy the file io functions to read in the data (address.txt) and fill the array.

5. The problem with the io functions are that they use an array. This will be a problem when you start adding a bunch of people to your phonebook. So you need to use the example SimpleMap program code to implement the STL MAP into your project in place of the array.

6. Once you can read the file, put it into your MAP, and write the file from your MAP, put together a user interface giving the option to query the database for a name to get the number, or add entries.

7. Query means that the user types in a name, the MAP finds the number and returns it.

8. Add information simply means that the user is asked for name, number, address, etc. and a new entry is entered into the map.

9. When the user wants to quit, the contents of the map is saved to file.

Reference no: EM131270367

Questions Cloud

Explain how the maximization problem can be solved : Explain how the maximization problem can be solved without using the method of Lagrange multipliers.- Explain how the minimization problem can be solved without using the method of Lagrange multipliers.
Work scheduling problems : Work Scheduling Problems: Section 3.5 (p.76) #5: Each day, workers at the Gotham City Police Department work two 6-hour shifts chosen from 12 A.M. to 6 A.M., 6 A.M. to 12 P.M., 12 P.M. to 6 P.M., and 6 P.M. to 12 A.M. Formulate an LP that can be used..
How many hours a month does martha work : a) How many hours a month does Martha work? What is her income? b) The government institutes a welfare program that guarantees individuals $2000/month. The guarantee is phased out immediately with the first dollar of income earned. How many hours ..
Give an example of a circuit with a cyclic path : Alyssa P. Hacker says that any Boolean function can be written in minimal sum-of-products form as the sum of all of the prime implicants of the function. Ben Bitdiddle says that there are some functions whose minimal equation does not involve all ..
Generate a new project called phonebook : Generate a new project called PhoneBook. Add information simply means that the user is asked for name, number, address, etc. and a new entry is entered into the map.
How many of each type of set should be manufactured : A manufacturing company produces two models of an HDTV per week,- how many of each type of set should be manufactured per week to minimize cost? What is the minimum cost?
Documented condition to be coded : Past treatments incuded oral gold, penicillamine, and two short bouts of oral predisone. What is the documented condition to be coded?
What is the break-even volume for each plan : A small business company is considering updating the current production line. There are two plans. For plan A, the fixed cost will be $35,000 and the variable cost will be $25 per unit after the update. Suppose the selling price is $35, what is the b..
Set the reserve requirement : Suppose that Second Republic Bank currently has $150,000 in checkable deposits and $97,500 in outstanding loans. The Federal Reserve has set the reserve requirement at 10%. Using these values, fill in the empty cells for reserves, required reserve..

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