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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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