Write a phone book program

Assignment Help Basic Computer Science
Reference no: EM13307439

Write a phone book program that uses the following classes:

Individal - Base Class

     Private data members -last name, first name, phone number

Student - Derived from Individual

     Private data members - gpa, hours

Staff - Derived from Individual

     Private data memers - position (string), year employeed (int)

The program should be menu driven and allow the user to

1. Create a new phone book entry and place it in an array

2. Retrieve a phone book entry and display on screen

3. Retrieve all names and display to screen and write to file

Have a staff array and student array. 10 positions are sufficient. No particular order is requied.

When phone book enties are displayed all data members will be displayed. Create a friend function that overloads the << operator to output phone book entries.

Reference no: EM13307439

Questions Cloud

Determine the maximun wavelength of incident radiation : Determine the maximun wavelength of incident radiation that can be used to remove the remaining electron from a singly ionized helium atom He+ (z= 2)
How to estimate the value of the fuel that is captured : If the tanker truck discharges into the top of the tank with no vapor control, the emission of gasoline vapors is estimated to be 2.75k*m^-3 of gas delivered to the tank.
Find the depth of the submarine : A stationary destroyer is equipped with sonar that sends out pulses of sound at 35.000 MHz. If the speed of sound in seawater is 1.57 km/s, find the depth of the submarine
Determine the work done and the heat transfer : Water, initially dry saturated vapour at 4 bar, lls a closed rigid con- tainer. The water is heated until its temperature is 400C. Determine the work done and the heat transfer.
Write a phone book program : When phone book enties are displayed all data members will be displayed. Create a friend function that overloads the
Calculate the work done and the heat transfer : Calculate the work done and the heat transfer. Hint: Use the ideal gas law pv = RT to nd the temperature at the end of compression. Take R = 0.287 kJ/kg.K and cv = 0.718 kJ/kg.K.
Give a polynomial-time algorithm for the following problem : Give a polynomial-time algorithm for the following problem. We are given a binary tree T = (V, E) with an even number of nodes, and a nonnegative weight on each edge.
Determine the centroid-moment of inertia and section modulus : THE HOME DEPOT IN RED HOOK ,BROOKLYN IS LOOKING TO RENOVATE THEIR STEEL ROOF TRUSS.YOU HAVE BEEN ASKED TO DETERMINE THE CENTROID,MOMENT OF INERTIA,SECTION MODULUS AND RADIUS OF GYRATION OF THE DOUBLE ANGLE.
Give a polynomial-time algorithm to find a subset : So this is the question they pose to you: Which of the remaining applications, if any, should be moved? Give a polynomial-time algorithm to find a subset S of {2, 3,..., n} for which the sum of the benefits minus expenses of moving the application..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the command you would use to compile the file

What is the command you would use to compile the file Addition.java?

  How many instructions can the processor execute

Assume that we are working on a workstation with an instruction rate of 500 MIPS. How many instructions can the processor execute between the receipt of each individual bit of the message?

  Explaining geographical information systems

Considering this, explain in scholarly detail some suitable examples of geographical information systems and how they are utilized in supporting both marketing and sales.

  Searches for items that are not in the list

How many searches for items that are not in the list would you have to do to make sorting and using binary search a better strategy than using linear search?

  Implement one class called parkingmeter

implement one class called parkingmeter, that is a simple model of a coin operated parking meter

  Explaining database system of facebook and google

Does Facebook and Google use same database system? Facebook seems to run with the android platform using gmail address to retain information for user such as phone numbers and contacts.

  A full description of the new system

-A full description of the new system, a description of its components, and the benefit it will provide to Riordan

  Find the error in following code

The following code will not display the results expected by the programmer. Can you find the error? Declare Real lowest, highest, average Display "Enter the lowest score

  Explaining options to begin troubleshooting

Which two options should you use to begin troubleshooting?

  Explain format for storing-laying out objects on page

Describe the format for storing, laying out, and managing the objects on a page. Explain the advantages to the use of this format over other formats, such as that used by HTML.

  Give examples of 3 simple (scalar or primitive) data types

Give examples of 3 simple (scalar or primitive) data types commonly provided by programming languages, and identify the method used to represent each data type in the machine

  Design a ram chip

Design a RAM chip that is 128K x 8. For each sub-part below, show the array of RAM cells and its dimensions, the decoder(s) required to access the array, and tabulate the numbers of gates required to implement the decoding.

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