subject

The main function, 1. Declares a linked list which stores integers.
2. Prompts user to enter int values and add these values in the linked list, stop adding the values when the user enter 0.
3. Prints the size of the linked list.
4. Prints the values stored in the linked list.
5. Prompts user to enter a value key, and find if key is in the linked list.
6. Prompts user to enter k (the number of values to be removed), and remove k values from the front.
7. Prints the values stored in the linked list.
8. Declares a linked list which stores strings.
9. Prompts user to enter strings and add these strings in the linked list, stop adding the strings when the user enters "exit".
10. Prints the size of the linked list.
11. Prints the strings stored in the linked list.
12. Prompts user to enter k (the number of strings to be removed), and remove k strings from the front.
13. Prints the strings stored in the linked list.
14. Declares a linked list which stores employees (the Employee class is provided with this lab material).
15. Prompts user to enter employee's name, id, and department name, and add the employees in the linked list, stop adding when the user enters id as 0.
16. Prints the size of the linked list.
17. Prints the employees stored in the linked list.
18. Prompts user to enter k (the number of employees to be removed), and remove k employees from the front.
19. Prints the employees stored in the linked list.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 23.06.2019 02:50
Define a class named movie. include private fields for the title,year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie.write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields.this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie.settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie.setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie.setdirector(temp); //display all the data myfavoritemovie.displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie.cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
The value of sin(x) (in radians) can be approximated by the alternating infinite series create a function (prob3_2) that takes inputs of a scalar angle measure (in radians) and the number of approximation terms, n, and estimates sin(x). do not use the sin function in your solution. you may use the factorial function. though this can be done without a loop (more efficiently), your program must use (at least) one. you may find the mod() function useful in solving the problem.
Answers: 1
question
Computers and Technology, 25.06.2019 12:00
If you fear you have been abusive to a partner, what can you do?
Answers: 2
You know the right answer?
The main function, 1. Declares a linked list which stores integers.
2. Prompts user to enter...
Questions
question
Mathematics, 17.08.2021 05:40
question
Chemistry, 17.08.2021 05:40
question
Mathematics, 17.08.2021 05:50
question
English, 17.08.2021 05:50
question
Social Studies, 17.08.2021 05:50
Questions on the website: 13722367