GithubHelp home page GithubHelp logo

wipro-training-java-fundamentals---assignments-for-arrays's Introduction

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 	

wipro-training-java-fundamentals---assignments-for-arrays's People

Contributors

cyberster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.