ARRAYC++LIST2019

PROJECT FILE-ARRAY (ONE DIMENSIONAL)

(2019-20)

(CLASS : XII)



ONE DIMENSIONAL ARRAY LIST
S.No.List of Programms
Q1.Write a C++ program to search an element in an array using linear search.
DOWNLOADPDF FILEWORD FILEC++FILE
Q2.Write a C++ program to search an element in an array using Binary Search
DOWNLOADPDF FILEWORD FILEC++FILE
Q3.Write a user defined function Reverse(int A[],int n) which accepts an integer array and its size as arguments(parameters) and reverse the array. Example : if the array is 10,20,30,40,50   then   reversed array is   50,40,30,20,10
DOWNLOADPDF FILEWORD FILEC++FILE
Q4.Write a function SWAP2BEST(int Arr[],int Size) in C++ to swap content
of array which are multiple of 10 with very next position in the array.Ex:-
If the content are: 90,56,45,20,34,54
output:- 56,90,45,34,20,54
DOWNLOADPDF FILEWORD FILEC++FILE
Q5.Write a function AlterArray(int Arr[],int Size) in C++ to swap content
of array in such a way that values of alternate location of the array are
exchanged.Ex:-
If the content are:8,7,24,9,4,6
output:-7,8,9,24,6,4
DOWNLOADPDF FILEWORD FILEC++FILE
Q6.Write a function SWAPME(int Arr[],int Size) in C++ to swap content
of array on the basis of example given below.Ex:-
If the content are:1,3,4,5,7,8,9,10
output:-7,8,9,10,1,3,4,5
DOWNLOADPDF FILEWORD FILEC++FILE
Q7.Write a function SWAPIT(int Arr[],int Size) in C++ to swap content
of array on the basis of example given below.Ex:-
If the content are:1,3,4,5,7,8,9,10
output:-7,8,9,10,5,4,3,1
DOWNLOADPDF FILEWORD FILEC++FILE
Q8.Write the definition of function named Array_Swap() that will accept an integer array & its size as arguments and the function will interchange/swap elements in such a way that the first element is swapped with the last element, second element is swapped with the second last element and so on, only if anyone or both the elements are odd.
E.g. if initially array of seven elements is:
5, 16, 4, 7, 19, 8, 2
After execution of the above function, the contents of the array will be:
2,16, 19, 7, 4, 8, 5
DOWNLOADPDF FILEWORD FILEC++FILE
Q9.Write the definition of a function grace_score (int score [], int size) in C++, which should check all the elements of the array and give an increase of 5 to those scores which are less than 40.
Example: if an array of seven integers is as follows:
45, 35, 85, 80, 33, 27, 90
After executing the function, the array content should be changed as
follows:
45, 40, 85, 80, 38, 32, 90
DOWNLOADPDF FILEWORD FILEC++FILE
Q10.Write C++ program to print all negative elements in an array
DOWNLOADPDF FILEWORD FILEC++FILE
Q11.Write C++ program to find sum of all elements of an array which are even and positive.
DOWNLOADPDF FILEWORD FILEC++FILE
Q12.Write C++ program to count and display sum of even and odd elements
 in an array
DOWNLOADPDF FILEWORD FILEC++FILE
Q13.Write C++ Program to Find the Largest and second largest Numbers in a given Array
DOWNLOADPDF FILEWORD FILEC++FILE
Q14.Write C++ program to put even and odd elements of array in two separate array
DOWNLOADPDF FILEWORD FILEC++FILE
Q15.Write a C++ Program to accept numbers in an array and sort them using Selection Sort
DOWNLOADPDF FILEWORD FILEC++FILE
Q16.C++ Program accept the numbers in an array and sort them using Bubble Sort
DOWNLOADPDF FILEWORD FILEC++FILE
Q17.Write a C++ program to search an element in an array using Binary Search
DOWNLOADPDF FILEWORD FILEC++FILE
Q18. Write a C++ Program to Delete Element from Array
DOWNLOADPDF FILEWORD FILEC++FILE
Q19.Write a function in C++ to combine the contents of two equi-sized arrays A and B by adding their corresponding elements as the formula A[i]+B[i]; where value i varies from 0 to N-1 and transfer the resultant content in the third same sized array C
DOWNLOADPDF FILEWORD FILEC++FILE
Q20.Write the definition of a function Change(int P[], int N) in C++, which should change all the multiples of 10 in the array to 10 and rest of the elements as 1Write the definition of a function Change(int P[], int N) in C++, which should change all the multiples of 10 in the array to 10 and rest of the elements as 1.
DOWNLOADPDF FILEWORD FILEC++FILE
Q21.Write the definition of a function FixSalary(float Salary[], int N) in C++, which should modify each element of the array Salary having N elements, as per the following rules
DOWNLOADPDF FILEWORD FILEC++FILE
Q22.Write a C++ program to insert an  new element into an array.
DOWNLOADPDF FILEWORD FILEC++FILE
Q23.C++ Program Merge Two Arrays A and B into array C ,where A array numbers are in ascending ,B array numbers in descending order and merge both in array C in ascending order
DOWNLOADPDF FILEWORD FILEC++FILE
Q24.Write C program to Merge Two Arrays into third array.
DOWNLOADPDF FILEWORD FILEC++FILE
Q25.Write C program to print all negative elements in an array
DOWNLOADPDF FILEWORD FILEC++FILE
Q26.Write C program to print all negative elements in an array
DOWNLOADPDF FILEWORD FILEC++FILE
Q27.Write C program to print all negative elements in an array
DOWNLOADPDF FILEWORD FILEC++FILE
Q28.Write C program to print all negative elements in an array
DOWNLOADPDF FILEWORD FILEC++FILE
Q29.Write C program to print all negative elements in an array
DOWNLOADPDF FILEWORD FILEC++FILE
Q30.Write C program to print all negative elements in an array
DOWNLOADPDF FILEWORD FILEC++FILE

Followers

Popular Posts

Recent Posts