Question: Assignment Submission ( must submit both ) : Soft copy, including your C + + code ( with comments and screenshots of the output )
Assignment Submission must submit both:
Soft copy, including your C code with comments and screenshots of the
output The code should be copied and pasted, not a screenshot
Printed copy at the beginning of the class
Name the submitted file in the following format LastName CSCI HW
Question Pts: Write a program that maintains its data of type double sorted in
ascending order. The program will consist of three functions: insert, delete, and print.
You may use any data structure of your choice as long as the data remains sorted after each
operation. Regardless of the order the numbers are inserted, they must be stored in the data
structure in ascending order. This means that the data structure contains sorted data, not
that the print will be in order while the data is not.
Analyze the problem,
and the complexity of it and its operations BigO to solves the problem.
For example, if is inserted then the structure should contain then and this
is what the print function should show. If is inserted afterwards, then we should have
Same for deletion, of course the structure will remain sorted, but any deleted
number should be removed and excluded from printing.
Capture screenshots of the operations below:
Insert then then in this order and print the content after each insertion.
The printed list should be sorted in every print call.
Delete then print the content again.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
