Question: asg4.pdf | sol4.pdf SOEN287-Fall2017_Assi SOEN287-Fall2017, k computer science Tutok Concordia University Fa + v O file:///C .fall%202017/soen%20287/SOEN287-Fall2017 Assignment-4.pdf Exercise 1 The following set of short

 asg4.pdf | sol4.pdf SOEN287-Fall2017_Assi SOEN287-Fall2017, k computer science Tutok Concordia University

asg4.pdf | sol4.pdf SOEN287-Fall2017_Assi SOEN287-Fall2017, k computer science Tutok Concordia University Fa + v O file:///C .fall%202017/soen%20287/SOEN287-Fall2017 Assignment-4.pdf Exercise 1 The following set of short questions will focus on getting you familiar with how to write PHP functions as well as how to make use of the pre-existing PHP functions. All your PHP functions must be declared in the document body section and each functions name must be as specified below. To demonstrate the functionality of each method, you must make function calls in the document body Include a heading (h1h6) that indicates the function is being tested before the function demonstration. The use of Global Variables is forbidden! A) Function: find Summation Parameter(s): A positive integer number (default value is-1) Given the input positive number (N), find the summation of all positive integer numbers from 1 to N (1+2+3++N) and return this summation if the input parameter is not a number, or if it is not a positive number return false B) Function: uppercaseFirstandLast Parameter(s): String For each word in the input string, capitalize (uppercase) both the first letter and the last letter and return the modified string C) Function: findAverage and _Median Parameter: An array of numbers. Calculate the average and median of the numbers and return both values D) Function: find4Digits Parameter. A string of numbers separated by spaces Return the first four-digit number in the string, false if none ENG 3:06 PM O Type here to search ^^ q) US 2017-11-22

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!