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

  Make modelling to assist with analysis and decision making

Perform modelling to assist with analysis and decision making. Translate business requirements into systems by applying appropriate SDLC methodologies and incorporating industry best practices

  Write down a program that reads a person''s name

Write down a program that reads a person's name.

  Devise 7-bit even-parity hamming code for the digits 0 to 9

Devise a 7-bit even-parity Hamming code for the digits 0 to 9.

  Understanding of topics related to human perception

Enable students to gain an understanding of a few selected topics related to human perception, memory and thinking and their relevance to HCI through individually researching a topic and, then as a group, designing and overseeing an interactive cl..

  How to write a python program

design a Python program that would prompt the user for the number of employees to be entered, and then prompt for employee name, followed by wage, followed by hours worked.

  Write down an automated checkout program

Write down an automated checkout program

  Make a basic web page using html tags

build a basic Web page using HTML tags. The page should present information about a company/organization or about a profession.Please include all Web site files.

  Create a sql query that returns the names of the students

Write down a SQL query that returns the names of the students (lname, fname), and the major of the major with most students. If more than one major is tied for most students, then list all the names of the students from both majors (as well as the..

  Network design will support dial-up

Justify whether or not your network design will support dial-up or VPN remote access using descriptions of the following aspects: the advantages and disadvantages of the remote access solution, network protocols that will be used on your network, ..

  Define the use of databases and the benefits

define the use of databases in your organization. Include what database applications are used (Microsoft Access, DB2, Oracle, etc.). Conclude by proposing improvements.

  Frame problem of traveling one city to another as production

Explain how problem of traveling from one city in one country to another city, located in another country, could be framed as a production system. What are the states? What are the productions?

  Write down a unix shell script

For an example, if I want to search for a text file/script that contains the most number of for loop statements, and have it displayed on the screen, How will I do that?

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