Skip to content

Cyberster/Wipro-Training-Java-Fundamentals---Assignments-for-Arrays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Wipro TalentNext PBL

Topics Covered

One Dimensional Array, Two dimensional Array

No. Hands-on Assignment Topics Covered Status 1

Write a program to initialize an integer array and print the sum and average of the array

One dimensional Array 	

2

Write a program to initialize an integer array and find the maximum and minimum value of an array

One dimensional Array 	

3

Write a program to initialize an integer array with values and check if a given number is present in the array or not. If the number is not found, it will print -1 else it will print the index value of the given number in the array Ex1) Array elements are {1,4,34,56,7} and the search element is 90 O/P: -1 Ex2)Array elements are {1,4,34,56,7} and the search element is 56 O/P: 4

One dimensional Array 	

4

Initialize an integer array with ascii values and print the corresponding character values in a single row.

One dimensional Array 	

5

Write a program to find the largest 2 numbers and the smallest 2 numbers in the given array

One dimensional Array 	

6

Write a program to initialize an array and print them in a sorted fashion

One dimensional Array 	

7

Write a program to remove the duplicate elements in an array and print Eg) Array Elements--12,34,12,45,67,89 O/P: 12,34,45,67,89

One dimensional Array 	

8

Write a program to print the element of an array that has occurred the highest number of times Eg) Array -> 10,20,10,30,40,100,99 O/P:10

One dimensional Array 	

9

Write a program to print the sum of the elements of the array with the given below condition. If the array has 6 and 7 in succeeding orders, ignore 6 and 7 and the numbers between them for the calculation of sum. Eg1) Array Elements - 10,3,6,1,2,7,9 O/P: 22
[i.e 10+3+9] Eg2) Array Elements - 7,1,2,3,6 O/P:19 Eg3) Array Elements - 1,6,4,7,9 O/P:10

One dimensional Array 	

10

Write a program to reverse the elements of a given 2*2 array. Four integer numbers needs to be passed as Command Line arguments.

Example1:

 C:\>java Sample 1 2 3

 O/P Expected : Please enter 4 integer numbers

Example2:

 C:\>java Sample 1 2 3 4

 O/P Expected : 

The given array is : 1 2 3 4 The reverse of the array is : 4 3 2 1

1 2 3 4 5 6 7 8 9 10 11 12

Two Dimensional Array 	

11

Write a program to find greatest number in a 3*3 array. The program is supposed to receive 9 integer numbers as command line arguments.

Example1:

 C:\>java Sample 1 2 3

 O/P Expected : Please enter 9 integer numbers

Example2:

 C:\>java Sample 1 23 45 55 121 222 56 77 89

 O/P Expected : 

The given array is : 1 23 45 55 121 222 56 77 89 The biggest number in the given array is 222

Two Dimensional Array 	

About

Topics Covered: One Dimensional Array, Two dimensional Array

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages