Question: 1. Write a function that takes one real (or floating point) number as its parameter and returns (the square root of the absolute value of
1. Write a function that takes one real (or floating point) number as its parameter and returns (the square root of the absolute value of this parameter) plus (5 times this parameter cubed). Note that different terms than function may be used in other programming languages, for example, method and procedure. Pick the term you recognize. 2. Write a program that asks the user for 5 real (or floating point) values. You program is to read and store each of these 5 values into a data structure such as an array or list. Your program must then call the function you created in 1. above with each value in the array or list as a parameter. Finally, your program must print the results your function returns in reverse order. Here are two sample runs: Enter 5 values: Results in reverse order: 1082.45 627.24 322.00 136.73 41.41 Enter 5 values: 1.2 -2 10 2.41 Results in reverse order: 71.54 8.00 5803.16 -38.59 9.74 If there is a function built into the programming language you are using to answer this question that reverses a list, you may not use this function in your solution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
