1.) I want to use a void function that will populate an array by prompting the user for values, and storing them in the array.
2.) I also want an int function that will find the minimum value in the array. I want the function to have that minimum value as its return value.
3.) I also want a Boolean function that will prompt the user for a target value. I want the function to search the array to see if it contains the target value. If the target value is found, the function should return "true". If the function is not found, the funciton will return "false".
4.) I also need a void function that will "process" the values in the array. The function will check each array value to see if it is even. If it is even, it will do nothing. However, if it is odd, it will multiply the value by two, and store the new value at the same index location.
5.) I would also like a void function that will print the elements in the array.
6.) I would really like if main () would do the following:
a.) Declare an array with a maximum size of 50.
b.) Prompt the user for the number of values he/she would like to enter, with the maximum being the length of the array.
c.)Call the function (1) that populates the array. It should take as a parameter the value indicated by the user in b).
d.) Call the print function (5) to output the values entered by the user.
e.) Call the minimum function (2) and output the result.
f.) Call the search function (3) and ouput the result. I would like it if it would have an if statement in main () in order to accomplish this.
g.) Call the process function (4).
h.) Call the print function (5) again to print the proccessed elements in the array.
This may be way to easy for some of you and for others way to hard. I sure will be appretiative once I see the completed code. And to whoever happens to finish this first I would like to say thank you so much. I am trying to teach my self C++ with EBOOKS and this is one of the last code assignments in book 1. But they give no code until you buy book 2 and i am having touble with this one. I don't want to buy the other book I am going to go another route. Thanks again.