The goal of this project is to create and manipulate an indexed list of employees. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The goal of this project is to create and manipulate an indexed list of employees. The class employee has two data members: the name and phone number of an employee, and four member functions: setName(), displayName(), setPhone() and displayPhone(). The template class indexList is posted on UR Courses (see lecture notes). In the class indexList, include only the member functions that you need for this project. Write a driver program that will create an object, called my EmployeeList, which is an indexed list of N employees. The driver will also sort the employee list using the selection sort algorithm and display the sorted list. The selection sorting algorithm should be implemented in the template class indexList. A sample run follows. List of type "Employee" Enter number of employees: 3 Enter next name: Sam Enter next phone number: 555-0000 Enter next name: Brenda Enter next phone number: 888-0000 Enter next name: Matt Enter next phone number: 333-0000 The goal of this project is to create and manipulate an indexed list of employees. The class employee has two data members: the name and phone number of an employee, and four member functions: setName(), displayName(), setPhone() and displayPhone(). The template class indexList is posted on UR Courses (see lecture notes). In the class indexList, include only the member functions that you need for this project. Write a driver program that will create an object, called my EmployeeList, which is an indexed list of N employees. The driver will also sort the employee list using the selection sort algorithm and display the sorted list. The selection sorting algorithm should be implemented in the template class indexList. A sample run follows. List of type "Employee" Enter number of employees: 3 Enter next name: Sam Enter next phone number: 555-0000 Enter next name: Brenda Enter next phone number: 888-0000 Enter next name: Matt Enter next phone number: 333-0000
Expert Answer:
Answer rating: 100% (QA)
Heres the code for the project include include class Employee public void setNameconst stdstring name thisname name stdstring getName const return nam... View the full answer
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date:
Students also viewed these programming questions
-
(i) Write down the linear program relaxation for the vertex cover problem and solve the linear program. [6 marks] (ii) Based on the solution of the linear program in (b)(i), derive an integer...
-
INTRODUCTION The goal of this project is to enable the student to implement a simple C++ program whose code is broken into three source files. At the same time, the student utilizes standard C++...
-
The figure shows a rotating wheel with radius 40 cm and a connecting rod AP with length 1.2 m. The pin P slides back and forth along the -axis as the wheel rotates counterclockwise at a rate of 360...
-
If the demand function and supply function for Z-brand phones are p + 2q = 100 and 35p + 20q = 350, respectively, compare the quantity demanded and the quantity supplied when p = 14. Are there...
-
Bad-Debt Reporting Presented below is information related to the Accounts Receivable accounts of Gulistan Inc. during the current year 2010. 1. An aging schedule of the accounts receivable as of...
-
We can transform the log-optimal pricing formula into a risk-neutral pricing equation. From the log-optimal pricing equation we have \[P=\mathrm{E}\left(\frac{d}{R^{*}} ight)\] where $R^{*}$ is the...
-
A construction contractor is responsible for a project with seven key tasks. Some of the tasks can begin at any time, but others have predecessor tasks that must be completed previously. The...
-
For each entry below make a correcting entry if necessary. If the entry given is correct, then state "No entry required". (Credit account titles are automatically indented when the amount is entered....
-
On December 1, Macy Company sold merchandise with a selling price of $1,000 on account to Mrs. Jorgensen, with terms 33/10, n/30. Mrs. Jorgensen paid the amount due on December 9. Which journal entry...
-
You have been asked by a San Francisco property investment company to create a predictive model that will generate house price estimates for properties they are considering purchasing as rental...
-
1. A two year project requires a $20,000 investment. In the first year it will generate $16,000 and $10,000 in the second year. a. Calculate the project Net Present Value if the discount rate is 15%?...
-
A geometric Brownian motion with drift and volatility is defined by the equation ds = Sdt +oSdze Ito's lemma states that if G is a function of S and t, then G OG 10G + G (25s +. at zasz52dt +. The...
-
Information on the asset accounts of Entity A as of December 31, 20x1 is as follows: Cash Accounts receivable Notes receivable (trade) Notes receivable (nontrade) - P40,000 due within 1 yr. insurance...
-
What are the payoff, cost and profit of a put bull spread with strike prices of $1,960 and $2,300 if the GOOG share price become $2,150.91 on the expiration date? Payoff Cost Profit This is the...
-
Cost assignment and cost allocation are used to support and explain the relationship between cost drivers and cost objects in assigning product costs. The relationship of direct materials, direct...
-
How do the principles of (a) Physical controls and (b) Documentation controls apply to cash disbursements?
-
Write an app that continuously draws shapes of your choosing on a Canvas. Use random positions, sizes, locations, line widths, fills and alpha transparencies. The shapes should randomly move around...
-
Modify the application of Figs. 7.117.13 to use Face and Suit enum types to represent the faces and suits of the cards. Declare each of these enum types as a public type in its own source-code file....
-
The explosive growth of Internet communications and data storage on Internet-connected computers has greatly increased privacy concerns. The field of cryptography is concerned with coding data to...
-
On June 24, 2015, two grocery retailers, Netherlandsbased Ahold and Belgium-based Delhaize, announced their intention to engage in a merger of equals. By merging their activities, the two companies...
-
GlaxoSmithKline is one of the largest pharmaceutical firms in the world, and over an extended period of time in the recent past, it consistently earned higher ROEs than the pharmaceutical industry as...
-
An analyst claims, It is not worth my time to develop detailed forecasts of revenue growth, profit margins, etcetera, to make earnings projections. I can be almost as accurate, at virtually no cost,...
Study smarter with the SolutionInn App