Create a c++ program the stores address book

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

1. C++ programming

Create a C++ program the stores address book to keep track of the names, address, city, state, and zip code. Using the appropriate functions to print and store the address. Also, use constructors to automatically initialize the data member.

a. Define a class, addressType, that can store a street address, city, state, and zip code. Use the appropriate functions to print and store the address. Also use constructors to automatically initialize the data member.

b. Define a classextPersonType using the class datatype and the class addressType. Add a data member to this class to classify the person as a family member, friend, or business associate. Also, add a data member to store the phone number. Add or override the functions to print and store the appropriate information. Use constructors to automatically initialize the data members.

c. Derive the class addressBookType from the classarrayListType so that an object of tyoeaddressBookType can store objects of type extPersonType. An object of type addressBookType should be able to process a maximum of 500 entries.

d. Add necessary operations to the class addressBookType so that the program should perform the following operations;

- Load the data into the address book from a disk.
- Search for a person by last name
- Print the address, phone number, and date of birth
- Print the names of the people whose birthdays are in a given month.
- Print the names of all people having the same status; family, friend, or business.

2. In need to create a C++ program that allows the user to enter the last names of five candidates in a local elections and the votes received by each candidate. The program should then output each candidates name, votes received by that candidate, and the percentage of the total votes received by the candidate. The program needs to output the winner of the election.

Sample;

Candidate                       Votes  Received                       % of Total Votes

Johnsons                             50000                                         25.91

Miller                                    40000                                         20.74

Duffy                                     60000                                        31.23

Robinson                             25000                                         12.95

Sam                                       1800                                         9.33

Total                                      19300

The winner of the Election is Duffy.

Reference no: EM131183200

Questions Cloud

Who is most to blame for the events depicted in the film : Who is most to blame for the events depicted in the film? Were you angered by the events? Why?- List the rationalizations the Bakkers offered (there are many)?
Spectrophotometric analysis of fluoride ion : What role do the stability constants of the various complexes play in the spectrophotometric analysis of fluoride ion using the SPADNS colourimetric method?
What would this marginal cost curve look like : Consider the marginal cost curve associated with cleaning your dorm room. Label the vertical axis "time" and the horizontal axis "percent clean." What would this marginal cost curve look like?
What price per bond suresafe be able to realize on the sale : It estimates that, in current market conditions, the bonds should provide a return of 14 percent.- What price per bond should Suresafe be able to realize on the sale?
Create a c++ program the stores address book : Define a class, addressType, that can store a street address, city, state, and zip code. Use the appropriate functions to print and store the address.
How does their involvement impact health care organizations : Show that at any other output level, the net benefits to society will be lower than they are at the efficient level. (Remember, the marginal cost of increasing output from 4 to 5 units is $9, which is also the amount by which cost decreases in goi..
Problems of measurement in context of present aasb standards : Discuss the problems of measurement in the context of the present AASB / IASB standards and framework using your selected annual report to provide examples.
Write an essay analysing the measurement systems : You are required to write an essay analysing the usefulness of alternative measurement systems to historical cost. Your essay needs to identify and describe three alternatives to historical cost accounting
Explain the various actions that policy makers can choose : Explain what factors might cause individuals to expect that a country will devalue its currency. Explain the various actions that policy makers can choose in response to this expected devaluation.

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