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, 03.07.2019 14:10
If the thermal strain developed in polyimide film during deposition is given as 0.0044. assume room temperature is kept at 17.3 c, and thermal coefficient of expansion for the film and the substrate are 54 x 10^-6c^-1 and 3.3 x 10^-6c^-1respectively. calculate the deposition temperature.
Answers: 3
question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified ā€œxā€ tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:20
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
You know the right answer?
Do not change anything in the supplied Ch12_Ex9.cpp except to add documentation and your name.
...
Questions
question
Mathematics, 26.04.2021 22:00
question
Mathematics, 26.04.2021 22:00
question
Mathematics, 26.04.2021 22:00
question
Mathematics, 26.04.2021 22:00
question
Mathematics, 26.04.2021 22:00
Questions on the website: 13722360