Question: For the arrays in these questions, unless i specify a size for the array, decide the size of the array for yourself. 1) Write a

For the arrays in these questions, unless i specify a size for the array, decide the size of the array for yourself.

1) Write a c++ program that contains the following functions, declare as many arrays as needed

a) A function that takes in an array as an input (parameter) and fills it up with whole number data from a file

b) A function that takes in the filled array and returns the sum of the array

c) A function that calculates that average of the array and prints out every element in the array less than the average Use appropriate function calls to test the functions

2) Write a c++ program that contains the following functions, declare as many arrays as needed

a) A function that takes in an array as input and has the user enter in a sequence of characters to store in the array (use a character array)

b) A function that takes in the character array as input and returns the number of vowels inside the array

c) A function to print the content of the array one per line

d) A function that takes in two arrays as input an copies the content of the filled array into the empty one.

3)Redo question 3 on homework one using arrays. add a function to read the numbers from the file into the array,and redo the other functions using the array.

4) Do programming exercise 1 in chapter 8 of the textbook (it's the same in 7th and 8th edition). Your program should contain the following functions (index in the question refers to the address of the array\ LCV )

a) A function to fill up the array as directed by the exercise

b) A function to output the content of the array (Does not need to be 10 per line, haven't explained this in class yet)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!