Question: PHP CODE QUESTION Thank You Your task is to finish the script below, its purpose being to print the sum and average of the values

PHP CODE QUESTION

PHP CODE QUESTION Thank You Your task is to finish the script

Thank You

Your task is to finish the script below, its purpose being to print the sum and average of the values given. The values are given to the script as a single string, with the values themselves separated by comma (for example 4,2,5,2). The values are separated by turning it into an array using the explode() function. The script sho the values separated by spaces. Fill in only the missing lines, not the entire program! The program: Example output: The points were: 5 7 3 23 56 85 2 The sum of points: 181 Average of points: 25.857142857143

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!