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

  Verify your implementation by viewing the data dictionary

Implement the authorization table using any two suitable application models presented - Use the scripts provided to create a schema - Create three different profiles based on the criteria.

  Create an er diagram that will facilitate development of cms

For this phase, you are required to create an ER Diagram that will facilitate the development of CMS's company-wide database.It should be created using ER Assistant and include entities and attributes, relationships, and accompanying notes

  Process the weather data with data mining techniques

Process the weather data for Auckland and Invercargill in the given dataset (monthly readings) and-focusing in particular on temperature related data-experiment with various data mining techniques

  Analyzing hard-to-obtain data from two separate databases

You are interested in analyzing some hard-to-obtain data from two separate databases. Each database contains n numerical values.

  Explain the following elements of network performance

There is a growing requirement to meet or exceed expectations of end users and applications communicating over a packet-switched network. In order to fulfil this requirement, different techniques are used to improve the QoS.

  Why a relation schema is an indexed set of sets

Why the states of a relation schema are the subsets of schemas product? Please give an example?

  Write down responsibilities of database administrator

Write down the responsibilities of the database administrator (DBA)? Could you outline tasks that he/she has to perform, and what could be consequences if these matters are not handled?

  Explain what project management is and how evolved over time

Explain what project management is, and how it evolved over time

  What are your general opinions of sql so far

Why do you think they do this? In your view, what are the advantages and disadvantages of doing this

  Design data file grades with records of form

Input names of students from user, terminated by ZZZ, and design the data file GRADES with records of form: student (string), test1 (integer), test2 (integer), test3 (integer).

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Consider the eer diagram for a car dealer

Consider the EER diagram for a car dealer in the figure below. Map the EER schema into a set of relations. For the VEHICLE to CAR/ TRUCK/ SUV generalization.

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