Contacts class that contains an array

Assignment Help C/C++ Programming
Reference no: EM13168021

Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owner's name and cell phone Number. You cannot assume a particular number of friends before reading the file. Make sure it has a member function that can return contact information given the first name of the contact. Name this function something reasonable.Write a program that creates a Contacts object. The friend array should be filled with data from the Data.txt file. Note that the birthday information is in the form of a string year:month:date.
Your program should then do the following: Create a Contacts object with your name as the owner and  phone number.  Display all the friends in the Contacts object as well as the owner's name and phone number of the owner.  Look up the following first names in the contacts object and print the phone number of the "person": Bob, Youth, Mario. Look up following first name in the contact object and print the birthday of the "person": Hiten, Daisy, Alex.

Do not request any user input

Data.txt file contain:

Hiten     Patel                     1934:06:09           818-321-5151

Mario    Feliz                      1932:05:25           818-644-2332

Daisy     Lopez                    1955:05:10           714-899-2155

Alex       Lopez                    1926:10:14           323-833-4722

Bob        Speaks                  1963:02:22           310-434-0234

Youth    Leong                    1935:03:02           831-234-1312

Reference no: EM13168021

Questions Cloud

Calculate the nuclear binding energy : Calculate the nuclear binding energy of one lithium-6 atom. The measured atomic mass of lithium-6 atom. The measured atomic mass of lithium-6 is 6.015 amu.
Calculate the mass in grams of water vapor produced : Bottled propane is used in areas away from natural gas pipelines for cooking and heating, and is also the source of heat in most gas barbecue grills. Propane burns in oxygen according to the following balanced chemical equation.
How many moles of oxygen gas are needed : if you have 4 moles of hydrogen gas, how many moles of oxygen gas are needed for complete reaction?
Write the formula for the ion formed : Write the formula for the ion formed when each of the following elements loses its valence electrons?
Contacts class that contains an array : Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owner's name and cell phone Number.
What is the concentration of potassium hydroxide : 105 cm3 of 2MSulphuric acid is required to neutralise 420 cm3 of potassium hydroxide. What is the concentration of potassium hydroxide?
What is the mass fraction of o2 : A 5.00 L flask at 279 K contains a mixture of He and O2 with a total pressure of 1.00 atm. If the mole fraction of O2 is 0.40, what is the mass fraction of O2?
Create a console-based application named multiplication : a. Create a console-based application named Multiplication whose main() method asks the user to input and then calls a method named MultiplicationTable(), which displays the results of multiplying the integers by each of the number 2 through 10
Takes n number of element from user : Write a C program which takes n number of element from user (where, n is specified by user) and stores data in an array. Then, this program displays the largest element of that array.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that contains a main function

Write a program that contains a main function and three other functions that will return various attribute information about an array of floating point

  Submap that accepts two maps from strings

Write a method called subMap that accepts two maps from strings to strings as its parameters and returns true if every key in the first map is also contained in the second map and maps to the same

  The factorial of a positive integer n, denoted by n!

Write a program that computes the sequence of factorial values: 1! = 1, 2! = 2, 3! = 6, 4! = 24, 5! = 120, 6! = 720, ....

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Write a program that finds the equivalent series

Write a program that finds the equivalent series and parallel resistance for a collection of resistor values. Your program should scan first the number of resistors and then the resistor values. Then compute the equivalent series resistance for all r..

  Testing a program based on varying

Testing a program based on varying input values without knowing what the code looks like is called _____.With _____ testing, you make sure that every instruction in the code is executed at least once.

  Write a matrix multiplication program

Write a C++, matrix multiplication program which you can instrument to monitor and measure execution time as a function of problem size. Make sure it works in Microsoft Visual Studio.

  Using songs.dat in our folder

Using songs.dat in our folder on the P: drive, construct a playlist of 10 random songs. Use a struct to hold the song data (name and time in seconds), and output the playlist (song name and time,

  Write the entire definition for the main function

Write the entire definition for the main function that prints out all of the command-line arguments on its own line.

  Create a job class that holds a job id

Create a Job class that holds a Job ID number and the cost of the Job. Include insertion and extraction operators. Create a JobException class that holds a Job and an error message

  Design in c a unix utility program gasp

Design in C a Unix utility program gasp. Command gasp [options] STRING FILE... must read listed files (FILE...) and copy each line from input to stdout if it contains STRING.

  Pointer variables to demonstrate shallow and deep copy

Using C++, write a program that uses pointer variables to demonstrate shallow and deep copy. The program should give the user the choice to do the following:

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