subject
Engineering, 04.03.2020 02:45 jeffhuffle17

Do not change anything in the supplied Ch12_Ex9.cpp except to add documentation and your name.

Please use the file names listed below since your file will have the following components:

arrayListType. h
arrayListType. Imp. cpp
unorderedArrayListType. h
.cpp

Add the function min as an abstract function to the class arrayListType to return the smallest element of the list.

Also, write the definition of the function min in the class unorderedArrayListType and write a program to test this function.

Ch12_Ex9.cpp given file

//Data: 18 42 78 22 42 5 42 57

#include
#include "unorderedArrayListType. h"

using namespace std;

int main()
{
unorderedArrayListType intList(25);

int number;

cout << "Enter 8 integers: ";

for (int count = 0; count < 8; count++)
{
cin >> number;
intList. insertEnd(number);
}

cout << endl;
cout << "intList: ";
intList. print();
cout << endl;

cout << "The smallest number in intList: "
<< intList. min() << endl;
system("pause");
return 0;
}

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
Assuming compressible flow of air and that the measurements are done at flagstaff a pitot static tube that gives the difference of total and static pressure measures 0.35 m of mercury. what is the velocity of air? assume the temperature to be 300k. (submit your excel or matlab calculation sheet)
Answers: 1
question
Engineering, 04.07.2019 18:20
Avolume of 2.65 m3 of air in a rigid, insulated container fitted with a paddle wheel is initially at 264 k, 5.6 bar. the air receives 432 kj by work from the paddle wheel. assuming the ideal gas model with cv = 0.71 kj/kg • k, determine for the air the amount of entropy produced, in kj/k
Answers: 2
question
Engineering, 04.07.2019 19:10
What is a monomer? how do they form a ploymer from the view point of chemical bonding?
Answers: 1
You know the right answer?
Do not change anything in the supplied Ch12_Ex9.cpp except to add documentation and your name.
...
Questions
Questions on the website: 13722359