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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 23:20, abbz13
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
image
Engineering, 04.07.2019 18:10, anna22684
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
image
Engineering, 04.07.2019 18:10, sarahgrindstaff123
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
image
Engineering, 04.07.2019 18:20, maciemarklin79981
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
You know the right answer?
Do not change anything in the supplied Ch12_Ex9.cpp except to add documentation and your name.
...

Questions in other subjects:

Konu
Biology, 25.01.2021 18:10