One-dimensional array

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.

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X