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

  Explain radio frequency identification technology

Write discussion of radio frequency identification (RFID) technology and Information Technology Infrastructure Library (ITIL) standards.

  Methods for information systems can become vulnerable

While word weakness seems to define it pretty well, there are a number of mthods that information systems can become vulnerable.

  Explaining drain corporate budgets and ultimately profits

First of all it eliminates requirement of hardware, downloads and implementations which drain corporate budgets and ultimately profits. It takes companies only a third of the expenses that they will incurred to have their companies running.

  Which data input appears on output y

View a datasheet function table for a 74151 device. Using Quartus pin names, assume the chip is enabled and C = 1, B = 0, and A = 0. Which data input appears on output Y?

  Designing a program before you create it is beneficial

Why do you think designing a program before you create it is beneficial?

  Design an algorithm in pseudocode to solve

Design an algorithm in pseudocode to solve this problem. Make sure to include steps to get each input and generate each output

  What operations can be used on pointer variables

In C++, what operations can be used on pointer variables? Why use these operations?

  Calculate a 10% commission of an item price when sold

Enter a bid for an item and the bids are stored in an STL priority_queue object. This allows the highest bid to be at front of the queue.

  Design two level and-or and not circuit

Design a two level AND , OR ,NOT circuit for the following I/O priority circuit,when the ack input is true ack will be made true for the smallest j for which req is true.

  Write a program that uses a two-dimensional array

Write a program that uses a two-dimensional array of characters to hold the five student names, a single-dimensional array of five characters to hold the five students' letter grade, and five singe-dimensional arrays of four doubles to hold each s..

  Compute number of total bits needed to implement cache

Suppose a computer's address size is K bits (using byte addressing), the cache size is k bits (using byte addressing), the cache size is S bytes. Compute the number of total bits needed to implement the cache.

  Demonstrate at least two arithmetic features

Demonstrate at least two arithmetic features and Auto text features of WORD.

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