1. Write a program in C++ to read a set of integers up to n, where n is defined by the user and store it in a one-dimensional array. Also read a set of floating point numbers of the same size and store...




1. Write a program in C++ to read a set of integers up to n, where n is defined by the user and store it in a one-dimensional array. Also read a set of floating point numbers of the same size and store it into another array and print the contents of these arrays separately using the function template technique.


2. Write a program in C++ to perform the following using the function template concepts:


(i) to read a set of integers


(ii) to read a set of floating point numbers


(iii) to read a set of double numbers individually.


Find out the average of the nonnegative integers and also calculate the deviation of the numbers.










May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here