CSC 390 - Special Topics: Advanced Web Design

Dr. R. M. Siegfried

Assignment #13 - p. 406/9.1, 9.2, 9.5

Due Friday, May 8, 2015

Write, test, and debug (if necessary) PHP scripts for the specifications that follow. For these exercises. write functions and the code to test them.

9.1

Parameter: An array of strings.
Return value: A list of the unique strings in the parameter array.

9.2

Parameter: An array of numbers.
Return value: The average and median of the parameter array.

9.5

Parameter: An array of numbers separated by spaces.
Return value: The first four-digit number in the string; false if none.

Have your name within a comment.

Submit your assignment by e-mail (to siegfrie@adelphi.edu).

[Back to the Assignments.html]