To practice the use of a vector and the vector functions

Assignment Help Computer Engineering
Reference no: EM132177372

Vectors and Searching Purpose: To practice the use of a vector and the vector functions: Specifications: This program will allow the user to see a list of teams, add a team to the list, or search for a team using an ID.

1. Structure Definition First define struct TeamS with an integer field to hold an ID, and an array of strings with three elements to hold the names of the team members.

In the main function, declare an empty vector of TeamV and also the following arrays: const int ID [NUM_TEAMS] ={ 123, 321, 456, 789}; const string MEMBERS [NUM_TEAMS] [NUM_MEMBERS ] = { {"Mike", "Joe", "John"}, {"Christina", "Kevin", "Jim"}, {"Thomas", "Kim", "Emily"}, {"July", "Jason", "Jason"} };

2. Creating the vector- Call a function with the following prototype and pass in the empty vector and the arrays: void Initialize (vector & TeamV, const int id[], const string m[][NUM_MEMBERS], int arraySize); The function should place into the vector the elements of the arrays.

For example, the first element of the vector will have team id: 123 and members: Sarah, Joe, and John.

The second element of the vector will have team id: 321 and members: Chris, Kevin, and James, and so on. 3. The print function (10 points) Back in main, call a function with the following prototype to show that your vector has been populated with the team information: void printList (const vector & TeamV); The function simply prints out the content of the vector.

 

Reference no: EM132177372

Questions Cloud

Define a structure named employee : When the user selects an employee ID in the list box, the employee's salary should appear in the lblSalary control.
Monetary policy further to deal with the crisis : Once the federal funds rate target reached almost zero at the end of 2008, traditional open market operations were no longer able to ease monetary policy
Tasks of a police officer rarely call : Many police officers positions require the applicant to have a college degree even though the tasks of a police officer rarely call upon college course material
List the different methods that could be used for collecting : List the different methods that could be used for collecting requirements for the above case study. List at least 4 different methods.
To practice the use of a vector and the vector functions : To practice the use of a vector and the vector functions: Specifications: This program will allow the user to see a list of teams, add a team to the list.
Will there be any rural-urban migration as things stand : Suppose the real rural wage is $1.7 per day. Urban modern/formal sector employment can be obtained with a 0.25 probability and pays $5 per day.
Companies that require a traditional workforce : Will the increased interest in entrepreneurship cause difficulties for companies that require a traditional workforce?
Calculate the optimal price that the manufacturer : Production involves a monopoly manufacturer, with a marginal cost of $40, selling to a monopoly downstream retailer, whose only cost is the price paid to the ma
Discuss what are the new innovation today in this area : Virtual Machines: Discuss what are the new innovation today in this area and what effect this area have on the computer field.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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