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

  C program to compute parking fare for customers

Write C program to compute parking fare for customers who park their cars in parking lot when following information is provided: A character showing type of vehicle: C for car, B for bus and T for truck

  Change this code to read in strings from a text file

code takes in a string from a user, checks if the paranthesis are ballanced (as defined by my class) and also returns the variable from my line (also from my class). All like to change this code to read in strings from a text file (each line is a str..

  Write function that randomly produces maze

Write a function mazeGenerator that randomly produces a maze (in C++). The Function should take as arguments a two-dimensional 12-by-12 character array.

  Write program in c to calculate diameter-compression load

Write a program in C to calculate diameter in centimeters of steel rod, an aluminum rod, and a copper rod, which can withstand a particular compression load.

  The fibonacci sequence

In the novel "The DaVinci Code", a scrambled version 13, 3, 2, 21, 1, 1, 8, 5 of the first eight Fibonacci numbers appear as one of the clues left by murdered museum curator Jacques Sauniere. In this assignment, we will do something related to t..

  Write a program that will input letters grade(a,b,c,d,f)

Write a program that will input letters grade(A,B,C,D,F), the number of which is input by the user (a maximum of 50 grades). The grades will be read into array. A function will be called five times(once for each letter grade) and will return the tota..

  Businesspartner class that contains a first name

Create a BusinessPartner class that contains a first name, company name, and a telephone number. Create a Contacts class that contains a dynamically allocated array of BusinessPartners as well as the owner's name and cell phone number.

  Repeat these questions by writing functions

Repeat these questions by writing functions that receive the arrays as constant reference parameters and return the appropriate values through the function name (via return statement). The function header could look like:

  Implement database having array of pointers

One way to implement this database is to have an array of pointers pointing to Employee objects. You will obviously require a function named Calculate_salary() which will be different for each employee class. Write code in c++

  Presented a number of recurrence relations

For this problem set, you will be presented a number of recurrence relations and asked to state their actual time complexity, showing your work in the process.

  Searching f and removing certain states from the hash table

use the class hashT, ''Hashing: Implementation Using Quadratic Probing,'' which uses quadratic probing to resolve collision, to create a hash table to keep track of each state's information. Use the state's name as the key to determine the hash addre..

  Up through 2 to the 10th power

program should compute and output all of the "powers of two" from 2 to the 0th power, up through 2 to the 10th power.

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