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

  Server farms such as google and yahoo

Server farms such as Google and Yahoo! provide enough compute capacity for the highest request rate of the day. Imagine that most of the time these servers operate at only 60% capacity. Assume further that the power does not scale linearly with th..

  Define an array and why you would use one

Define an Array and why you would use one. Provide an example that is not from the text. Describe the class structure of C++ programming. What are the key contents of classes?

  Q1nbspnbspwrite c statements to do the following1 declare

q1nbspnbspwrite c statements to do the following1. declare an array alpha of 15 components of the type int.2. output

  Implement a function which computes the minimum cost

Use the min function to determine with a resolution of 0.01 ft the values of Rand L required minimizing the total cost of the fence. Also compute the minimum cost.

  What happens when c is a function of just one variable

What happens when C is a function of just one variable? Can you provide a geometric interpretation of what gradient descent is doing in the one-dimensional case?

  Public transport fare ticketing system

Implement and test a public transport fare ticketing system.

  Nbspyou are to insert the missing code in the c program

nbspyou are to insert the missing code in the c program given for combinational equivalence checking. this program will

  Describe the three levels of data abstraction

Describe the three levels of data abstraction? Define the "integrity rules". What is extension and intension?

  Write a program to determine a natural number

Write a program to determine if a natural number has only 2 and/or 3 as prime factors and how many of each factor (2 and 3) it does have.

  Story.txt has been opened successfully

Write a complete C++ program that counts the number of times the character  'e' appears in the text file  story.txt, and prints that number to  cout. You should write all the necessary code in main; do not define any of your own functions.  Make sure..

  Write a recursive method to print all the permutations

Write a recursive method to print all the permutations of a string.

  Create two arrays with ten random numbers

Determine the largest difference (only subtract corresponding index numbers) between these two arrays. (hint: create a third array with the differences)

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