Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(c) Johnny wants to process data inventory by using an array. The operations needed in this system are deleting items, adding new items, and sorting

image text in transcribedimage text in transcribedimage text in transcribed

(c) Johnny wants to process data inventory by using an array. The operations needed in this system are deleting items, adding new items, and sorting data based on the item code. However, his group member, Marzuki does not agree because using an array is not efficient. 0 Justify that Marzuki's argument is true. [3 marks) Give a suggestion of the data structure that is suitable for handling this case. [3 marks] (iii) According to Siva, this case could be handled by using a queue. Explain if this is possible [3 marks) (b) The following questions refer to the flowchart in Figure Q1(b). start Initialize counter, number_of_elments Insertion position, False Arr [1] True - Arr[i-1] i-- Arr[k] = new_item End Figure Q1(b) (1) Based on the requirements depicted in Figure Q1(b), construct a C++ code segment to execute the insertion algorithm [5 marks]

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

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago