Lab Assignment On Arrays

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Lab Assignment On Arrays as PDF for free.

More details

  • Words: 188
  • Pages: 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”.

Related Documents

11 Es26 Lab - Arrays
May 2020 14
Lab C++ 08 - Arrays
May 2020 9
Arrays
November 2019 37
Arrays
May 2020 23
Arrays
November 2019 37