[SOLVED] CSE220 Assignment 2

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Assignment02-ovjszp.zip (744.2 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

Task 1

For the given circular array please create a tracing table which traverses the whole circular array in a backward manner. The starting is to be chosen randomly by the students.

Create a tracing table according to the following code. int arr [10] = {10,20,30,40,50,60,70,80,90,100};

Task 2

Write one application of circular array (and why).

| Deadline:

1

Task 3

Index 4 is your starting position

X= (Last 4 digit of your BRACU ID % 34) + (Last 4 digit of your BRACU ID % 33)
Write a java code for circular array which has the functionalities below and then trace your code. After

that, show your final output.
[Hint: In one java class you have to implement all the methods]

  1. Print the elements (Forward Print)
  2. Print the elements (Backward Print)
  3. Linearize the circular array
  4. Resizing the circular array [new length = Last 4 digit of your id %5 + Last 3 digit of your id %3 + 8] and fill the elements using random value.
  5. Insert an element at index “(Last 3 digit of your BRACU ID%6)”
  6. Insert an element at position “(Last 3 digit of your BRACU ID%5)”
  7. Remove an element from index “(Last 3 digit of your BRACU ID%6)”
  8. Remove an element from position “(Last 3 digit of your BRACU ID%5)”

2

  • Assignment02-ovjszp.zip