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

  Child process to take the role of the number guesser

Write a program in C that takes a number between 1 and 1024 as input on the command line, and then forks a child process to take the role of the number guesser

  Create a base class to store the above information

Create a structure to store the date (year, month and date as its members). Create a base class to store the above information. The member function should include functions to enter information and display a list of all the patients in the database. ..

  Prepare a program to palindrome function.

A palindrome is a string whose reversal is identical to the original string.  How many strings using decimal digits (0,1,2,.....,9) of length n are palindromes?

  Write a full program that implements the aggregation concept

Write a full program that implements the aggregation concept for the Mail Message, Header , Body and Attachment classes.

  Linked list in c++

If the following C++ code is valid, show the output. If it is invalid, explain why.

  Make a class constructor that initializes a customer

Make a class constructor that initializes a customer with a name, number, and order size.Make class member functions to print each of: name, number, and order size.

  Calculate and display the area of the rectangle

Calculate and display the area of the rectangle and the total price of the tile. Add comments in code section. Code this program in java programming.

  Program should read in the file and place periods

Create a C++ program that will read this file and correct errors in the English syntax of the file. The program should Read in the file and Place periods at the end of all sentences throughout this file

  Textual table describing the catalogues of retail stores

Write a function to read a series of catalogue records from a file into a vector of catalogue objects. You will need to use the class ifstream, which is derived from istream, like so:

  Evaluate effectiveness of simple branch prediction schemes

You need to explore the effectiveness of branch direction prediction (taken vs not taken) using an actual program. Your task is to use the given branch prediction simulation infrastructure to evaluate the effectiveness of some simple branch predic..

  Displays columns titled "name", "quantity", "price", value

Write a program that displays columns titled "Name", "Quantity", "Price", and "Value". The fourth column contains the result of multiplying each item's quantity by its price. In addition, the program should calculate and display the total value of th..

  Analyze a basic set of requirements for a problem

Create the main bank program. Note that you can create the main bank program in the main function or you can try to create another class for the main bank program.

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