Write a program that store names to an array

Assignment Help Database Management System
Reference no: EM131018020

Write a program that store names to an array and accepts names until "quit" is entered. The program includes a menu having these choices : getNames, sortNames, displayNames, findName, removeName. all of which are in there own funtions. and you can enter names like this "John Doe" at the keyboard but are converted to this "Doe, John" before being added to the storage list (array or vector). HINT: using str.find(substr, pos) function to find the ‘ ' between the first name and last name entered; and then using str.substr(pos, num) function to extract the first name and last name; finally, concatenate the last name, ‘,', and the first name to form the required string.

Customer

Add another function that uses a stringstream to create and return a new string made up of only the last names in the list (pass the list to the function). Enclose each last name with double quotes. You will need to find where each last name ends in the string then extract just the last name. HINT: You will need the same functions mentioned in question 6 to find the ‘,' at the end of each last name, and extract the last name.

Reference no: EM131018020

Questions Cloud

How many luxury sport utility vehicles will be demanded : Suppose that the government decides that the current price of luxury sport utility vehicles is too high. The government passes a price ceiling for this market where the price of a luxury sport utility vehicle is set at $30,000 per vehicle. Given t..
What would happen to his budget line : What would happen to his budget line if  the price of good X decreases to $1.  Draw this new budget line on your graph and label it Budget Line - Find the point  that maximizes the consumer's utility if the consumers income
Differential gain ad : Consider a bipolar differential amplifier that, in addition to the collector resistances RC, has a load resistance RL connected between the two collectors. What does the differential gain Ad become?
Which of two temperature change are equivalent : What is the name of the following statement: "When two systems are in thermal equilibrium with a third system, then they are in thermal equilibrium with each other"?
Write a program that store names to an array : Write a program that store names to an array and accepts names until "quit" is entered. The program includes a menu having these choices
Find the differential voltage gain achieved : Consider a bipolar differential amplifier in which the collector resistors RC are replaced with simple current sources implemented using pnp transistors. Sketch the circuit and give its differential half-circuit. If VA =20 Vfor all transistors, fi..
What amount will be in the investment fund : Vannoy Corporation will invest $60,000 every January 1st for the next six years (2014 - 2019). If Vannoy will earn 12% on the investment, what amount will be in the investment fund on December 31, 2019
How each heuristic interacts with the design approaches : Use Jacob Nielsen's first five usability heuristics to perform a heuristic evaluation of a handheld device or Web site of your choosing. Write five pages in which you describe how each heuristic interacts with the design approaches used on your ch..
Waveforms for the total collector voltages : For the differential amplifier of Fig. 9.14, let VCC = +5 V and IRC =4 V. Find the differential gain Ad . Sketch and clearly label the waveforms for the total collector voltages vC1 and vC2 and for (vC2 -vC1) for the case: vB1 = 1+0.005 sin(ωt) vB..

Reviews

Write a Review

Database Management System Questions & Answers

  Prepare a set of non-functional requirements

Need a system that networks its 3 campuses in the US and one campus in Singapore. Transaction data for all campuses should be available to all locations. In addition, students should be able to use the Internet to view classes, enroll, register, and ..

  How you can use six sigma

Introduction to Six Sigma Understanding Six Sigma History of Six Sigma Six Sigma Methodologies & Tools Roles & Responsibilities. How YOU can use Six Sigma?

  Identify five different it systems that have affected

identify five different it systems that have affected business in the past few years i.e. business software

  Create an erd from a business problem

List all the business rules for the ABS ( Business rules are important because they define the conditions that the database must meet. For example, every Order must be associated with a valid Product.This prevents invalid Orders being entered into..

  What is system r and what are its two major subsystems

What is System R? What are its two major subsystems? How is the data structure of System R different from the relational structure? What is Data Independence?

  Provide an unique example of a supertypesubtype

provide an unique example of a supertypesubtype relationship. be sure to describe the relationship and discuss if the

  Vehiclerentaloz data warehousevehiclerentaloz is a large

vehiclerentaloz data warehousevehiclerentaloz is a large chain of vehicle rental company over 500 stores distributed

  What are the emerging trends of database technology

What are suggested business applications uses of database technology?

  Explain a structured data type that can hold multiple values

The array was the first example of a structured data type that can hold multiple values. The structure is the second example

  Database and data warehousing design

This assignment consists of two (2) sections: a design document and a revised project plan. You must submit both sections as separate files for the completion of this assignment. Label each file name according to the section of the assignment it i..

  What do you understand by data analytics

Watch the 36-minute video on ‘Data Analytics at Facebook' at www.youtube.com/watch?v=D19.JiG-Ow9g or http://bit.ly/1Vk0r3K or tinyurl.com/facebook-data-analytics, What do you understand by data analytics

  List full details of all hotels

List full details of all hotels

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