The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
1. Suppose the input is:
18 30 4 32 45 36 78 19 48 75 -999
What is the output of the following C++ code? (The class unorderedLinkedList is as defined in this chapter.)
unorderedLinkedList<int> list;
unorderedLinkedList<int> copyList;
int num;
cin >> num;
while (num != -999)
{
if (num % 5 == 0 || num % 5 == 3)
list.insertFirst(num);
else
list.insertLast(num);
cin >> num;
}
list.print();
cout << endl;
copyList = list;
copyList.deleteNode(78);
copyList.deleteNode(35);
cout << "Copy List = ";
copyList.print();
cout << endl;
2. Draw the UML diagram of the class doublyLinkedList as discussed in this chapter.
3. Draw the UML diagram of the class videoType of the Video Store programming example.
4. Draw the UML diagram of the class videoListType of the Video Store programming example.
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------sol-----------uti-----------on.-----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- ca-----------tch-----------