0% found this document useful (0 votes)
116 views1 page

Lab Assignment On Arrays

The document outlines 5 programming assignments involving arrays in C++. The assignments include determining duplicates in an array, finding min/max values, sorting into descending order, filtering vowels, and searching an array.

Uploaded by

taugeks
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views1 page

Lab Assignment On Arrays

The document outlines 5 programming assignments involving arrays in C++. The assignments include determining duplicates in an array, finding min/max values, sorting into descending order, filtering vowels, and searching an array.

Uploaded by

taugeks
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

TK1914

Lab Assignment on Arrays

1. Write a C++ program that declares an array of length N containing integers between 1 and N,
determine if it contains any duplicates.

2. Write a C++ program that declares an array Arr of N components of type double. Prompts the
user to input N values. Determine the largest and the smallest values. Assume that N = 20.

3. Write a C++ program that declares an array aplha of type integer that prompts the user to input
N numbers. Sort the numbers into an descending order and keep them into a new array called
beta.

4. Write a C++ program that declares an array gamma of type char. Prompt the user to input N
characters. Determine if the input is a vowel. Save non-vowel character to a new array called
delta.

5. Write a C++ searching program that declares an array matrix of type integer that prompts the
user to input N numbers. Again prompt the user to input the number to be searched. If the
number can be found, print its position, otherwise print “ It is not in the list”.

You might also like