Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C++ demonstrate how to complete the following program. Please explain how you did this in detail. Do not change anything in the supplied Ch12_Ex9.cpp

In C++ demonstrate how to complete the following program. Please explain how you did this in detail.

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: 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; }

arrayListType.h arrayListType.Imp.cpp unorderedArrayListType.h unorderedArrayListTypeImp.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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions