Question: Part E: Create a test the following function. Please use the lab5e.cpp or lab5e.cc for the filename. Create a function to return e e' is


Part E: Create a test the following function. Please use the lab5e.cpp or lab5e.cc for the filename. Create a function to return "e "e' is a mathematical constant used as a base for the natural logarithm. It can be calculated using the following mathematical expression. You task is convert this expression into C++ code using your previously defined factorial function and a loop or two. You will call your new creation function. Part F: Create a test the following function. Please use the lab5f.cpp or lab5f.cc for the filename. Create three functions that take a floating point array and its length as parameters. The functions will have characteristics Function A: Fills any size floating point array with random values (use rand) and limit the values to 1000 or less) Function B: Displays any size floating point array Function C: Sums all values stored in any size floating point array. Please create a main(0) that contains tests cases for the functions above. Note: A sample function prototype might be something like this: double sumArray(float arrayName[], int arrayLength); Task 1: Create and test each of the function set listed in the specification section The main task is to implement, test, and use in context functions outlined in the specification. Once you have verified each works properly please produce output similar to the sample output outlined in the specification for each set. Task 2: Submit all programs to your student code repository under the lab5 folder
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
