Use the lab instructions given on the Internet at http://voyager.deanza.edu/~oldham
Use the same format for the opening comments as in assignment A, with
your name, course and quarter, assignment, problem, and short problem description.
Type a program, as described in the following description.
Compile it, correct any errors and execute it.
Copy the execution results into an /* Execution Results:
comment.
Print the completed program with the execution results from within the
Interactive Development Environment.
Always use memory constants when constant values are needed, except numbers such as 0 or 1
can be used in the code where their use is clear.
Use functions when ever possible, in each problem.
Provide a function prototype for each function before the main function.
The function prototype should have descriptive names for the function and for each parameter.
Put very little code in the main function.
Each function should be preceded with a short comment giving:
Write a program that has three functions:
In the main function declare two arrays, one initialized
with the data "arbez" and the other with "tnahpele".
The main function will call the other functions in the following order:
Using the first array, call print, reverse, print.
Then using the second array, call print, reverse, print.
Note that the print function is called before and after each call to the reverse function.
The print function prints each character in their current order, with no space between the characters.
The reverse function reverses the order of the characters. Note that the reverse function does NOT print the characters.
Ask the user to enter 7 integers. Prompt the user for each integer.
Print the largest, smallest and median values in a clear format. (The median value is the number that has 3 numbers larger and 3 numbers smaller than it.)
Use functions, somewhat similarly to the way you used functions in problem K1.
Hint: Sort the array of numbers; then it is very easy.
Enter the following test data, in the order shown here: