PHP: final assessment
This covers the whole course. Take it after the last module.
Final quiz
Practical assessment: A library loans system
Without using hints, write a PHP program that manages a small library from commands read on the standard input, in the style of the last lesson.
- A Library class that keeps books and members in private arrays and enforces the loan rules
- A limit of three loans per member and a clear error when a book is already on loan
- Custom exceptions with clear messages for every broken rule
- A report of the books on loan, sorted by title, printed with str_pad
Final project
A class grade book: Build a command-line program that keeps the marks of students: add a mark, show a student's average, list the class ranked by average and report every wrong command clearly.
How it is evaluated
- Correctness: every command gives the expected result and invalid ones change nothing
- Design: small classes with one responsibility and private state
- Functions: each part is a short, well named function or method
- Clarity: names, error messages and output are clear
To complete this course
- Score at least 70% on the final quiz
- Solve the beginner and intermediate exercises in every lesson
- Finish the final project and check it against the evaluation criteria