[SOLVED] WT Lab 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 Assignment2-emqj9j.zip (326.8 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)
  1. Write a java program to compare two strings lexicographically (without using library function).
  2. Write a program to implement counting sort (with input in the range 0 to 20 and input can be repeated multiple times)
  3. Write a program to sort strings (without using library function).
  4. Find the smallest n such that Ξ£i = i2 where 1 ≀ i ≀ n is too large to be represented as an int.
  5. Let us define a couple of sets of integers, and let Java compute the set-theoretical operations (union, intersection and complement). We first fix our universe, which will consist of the 11 elements, Universe = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, A and B will be entered by users.
  6. Only array can be used as data structure
  7. Using any efficient data-structure available in Java
  8. Compare the time to compute the operations
  9. Write a ConsoleProgram that reads in a number from the user and then displays the Hailstone sequence for that number (Pick some positive integer and call it n. If n is even, divide it by two. If n is odd, multiply it by three and add one. Continue this process until n is equal to one)

Β 

  • Assignment2-emqj9j.zip