Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

HW _ 3 b = Array - based SortedList Write a program that uses a SortedList class to manage a sorted list of numbers. The

HW_3b = Array-based SortedList
Write a program that uses a SortedList class to manage a sorted list of numbers.
The list will hold up to 10 integers.
The numbers are sorted in ascending order (low to high).
When the list is initially created, it will be empty.
Numbers can be inserted into the list (as long as the list is not full).
Numbers can be deleted from the list (as long as the list is not empty).
One of the data members of the class is an array that will be used to hold the numbers.
Project: HW_3b
3 Files: SortedList.h
SortedLIst.cpp
Source.cpp
Note: Comparing the UnsortedList to the SortedList, only the insertItem and deleteItem methods are different. Therefore, copy and paste your code from HW_4a, and make changes to the insertItem and deleteltem methods.
Include code to do a linear search for the insertItem method.
Include code to do a binary search for the deleteltem method.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

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