0% found this document useful (0 votes)
12 views

SA2 - PHP Arrays and Predefined Functions

SA 2 - PHP ARRAYS AND PRE DEFINE FUNCTUIONS

Uploaded by

carljose85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

SA2 - PHP Arrays and Predefined Functions

SA 2 - PHP ARRAYS AND PRE DEFINE FUNCTUIONS

Uploaded by

carljose85
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

COLLEGE OF COMPUTER STUDIES

(Applications Development and Emerging


Technologies)

TECHNICAL-SUMMATIVE ASSESSMENT

2
PHP ARRAYS AND PRE-DEFINED FUNCTIONS

Student Name / Group


Name:
Name Role
Members (if Group):

Section:

Professor:
I. PROGRAM OUTCOME/S (PO) ADDRESSED BY THE LABORATORY EXERCISE
• Design, implement and evaluate computer-based systems or applications to meet desired needs and
requirements.

II. COURSE LEARNING OUTCOME/S (CLO) ADDRESSED BY THE LABORATORY EXERCISE


• Understand and apply best practices and standards in the development of website.
III. INTENDED LEARNING OUTCOME/S (ILO) OF THE LABORATORY EXERCISE
At the end of this exercise, students must be able to:
• To know the different approach of using arrays in PHP.
• To use PHP lazy function foreach to iterate through array elements.
• To implement one dimensional and multi-dimensional in the program.
• To know use variables that is globally declared and locally declared.
• To know how to include separate PHP code in the main page for code enhancement.
• To be familiar with the use of common predefined function such as define, include, and require.
• To use different available mathematical function for manipulating numbers.

IV. BACKGROUND INFORMATION

Applications Development and Emerging Technologies Page 2 of 6


V. GRADING SYSTEM / RUBRIC (please see separate sheet)
VI. LABORATORY ACTIVITY

1. Using ARRAYS, create a fruit directory that will show the image, name, description and facts about
the fruit (create at least 10 fruits sort in alphabetical order). Implement a HTML and CSS code for the
structure and design of the webpage. Please see the sample output below.

2. USING USER DEFINED FUNCTION. Create a formula for each volume of shapes (Cube, Right
Rectangular Prism, Prism or Cylinder, Pyramid or Cone and Sphere) then display the result. Please
see the sample below:

Applications Development and Emerging Technologies Page 3 of 6


3. Convert your Student Resume into a web based form, used include() and require()
functions to connect all pages

Include and create the following pages:


• Career Objective page
• Personal information page
• Educational Attainment page
• Skills page
• Affiliation page
• Work Experience Page

Please see the sample below:

Applications Development and Emerging Technologies Page 4 of 6


VII. QUESTION AND ANSWER

1. What is Array?
2. What is function in PHP?
3. Differentiate the one-dimensional array to multi-dimensional array
4. Describe the difference between Global Variable to Local Variable
5. What is the difference between function without parameter and a function with parameter?
6. What are the different common predefined functions? Describe each and give example
7. Is it useful to use an include or require function on a webpage? Why?
8. What is the importance of a function?
9. What is the importance of a string function?

VIII. REFERENCES

1. https://www.w3schools.com/css/
2. https://www.w3schools.com/html/
3. https://www.w3schools.com/php/php_variables.asp
4. https://www.w3schools.com/php/php_arrays.asp
5. https://www.w3schools.com/php/php_arrays_indexed.asp
6. https://www.w3schools.com/php/php_arrays_associative.asp
7. https://www.w3schools.com/php/php_arrays_multidimensional.asp
8. https://www.w3schools.com/php/php_arrays_sort.asp
9. https://www.w3schools.com/php/php_functions.asp
10. https://www.w3schools.com/php/php_constants.asp
11. https://www.w3schools.com/php/php_includes.asp
12. https://www.w3schools.com/php/php_string.asp

Applications Development and Emerging Technologies Page 5 of 6


Note: The following rubrics/metrics will be used to grade students’ output.

Program (100 (Excellent) (Good) (Fair) (Poor)


pts.)
Program Program executes Program executes Program executes Program does not
execution (20pts) correctly with no with less than 3 with more than 3 execute (10-
syntax or runtime errors (15-17pts) errors (12-14pts) 11pts)
errors (18-20pts)
Correct output Program displays Output has minor Output has Output is incorrect
(20pts) correct output errors (15-17pts) multiple errors (10-11pts)
with no errors (12-14pts)
(18-20pts)
Design of output Program displays Program displays Program does not Output is poorly
(10pts) more than minimally display the designed (5pts)
expected (10pts) expected output required output
(8-9pts) (6-7pts)
Design of logic Program is Program has Program has Program is
(20pts) logically well slight logic errors significant logic incorrect (10-
designed (18- that do no errors (3-5pts) 11pts)
20pts) significantly
affect the results
(15-17pts)
Standards Program code is Few inappropriate Several Program is poorly
(20pts) stylistically well design choices inappropriate written (10-11pts)
designed (18- (i.e. poor variable design choices
20pts) names, improper (i.e. poor variable
indentation) (15- names, improper
17pts) indentation) (12-
14pts)
Delivery The program was The program was The program was The program was
(10pts) delivered on time. delivered a day delivered two delivered more
(10pts) after the deadline. days after the than two days
(8-9pts) deadline. (6-7pts) after the deadline.
(5pts)

Applications Development and Emerging Technologies Page 6 of 6

You might also like