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

  Questioncandywarehouse is an online candy store the store

questioncandywarehouse is an online candy store. the store purchases candies from various vendors and one of them is

  Develop basic tools to expedite use of oracles data

develop basic tools to expedite use of oracles data dictionarygoalsdevelop and demonstrate sql skillsdevelop your

  System analysis hi this is mohammed i need your help kindly

hi this is mohammed i need your help kindly find the attached file and try to finish at the soonest as i need to submit

  Implement in access database using check and unique

These comprise NOT NULL, CHECK, UNIQUE, REFERENTIAL INTEGRITY, and PRIMARY KEY constraints. Are these constraints which we are talking about easy to implement in Access Database?

  Problem 1- customers with certain list patternsnbspproblem

problem 1- customers with certain list patternsnbspproblem descriptionnbsp you are provided with four tables in

  Discuss optimization techniques specific to data warehousing

Demonstrate the basic mechanisms for accessing relational databases from various types of application development environments.

  Create an action query that makes a table called westcoast

Create an action query that makes a table called WestCoast, with the following records. CA, WA, OR Create an action query to add the NV records to the newly created WestCoast table.

  Main types of actions involve databases

What four main types of actions involve databases? Briefly discuss each. What are the responsibilities of the DBA and the database designers? What is the difference between a database schema and a database state?

  Create table command, and modify it to create a new table

Start with this CREATE TABLE command, and modify it to create a new range_partitioned table named CH07EMPLOYEE_RANGE that contains the same column as the employee table.

  Technical paper on database

This Final Project Paper must be a technical paper on Database topics that have been pre-approved in earlier weeks by your instructor, using knowledge gained in the course. A general paper written for the common IT user or general reader is NOT ac..

  Problem 1 produce a scatterplot of rent vs size square

problem 1. produce a scatterplot of rent vs. size square meters of the apartment for the rental data in

  Use of foreign key

If a foreign key contains either matching values or nulls, the table(s) that make use of such a foreign key is/are said to exhibit __________ integrity

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