PHP 7: Create a PHP program to keep track of inventory within a grocery store. E
ID: 3906267 • Letter: P
Question
PHP 7:
Create a PHP program to keep track of inventory within a grocery store. Each item (class) includes an item number, description, size, self, isle, amount, and price. Each field must be verified for proper information before the entries are accepted. Item numbers range from 00000 to 99999. The store has 16 isles (00-15). No price in the store is greater than $1000. All entries are coded via a constructor or set methods. After all, entries have correctly been accepted, the program will generate a report of the entries (using get methods).
Explanation / Answer
Hi,
This question is pretty straight forward. We can handle this if we're good at Object Oriented Programming. Hope you get through it thoroughly with this starter code problem.
Most of the below code is self explanatory. If you find any difficulty in understanding feel free to ping me.
Note: Question is not clear about in valid entries. So I just printed those errors to web page. You can also through errors which I commented. You better keep Item and Store classes in seperate files for modularisation.
Hope this helps.
Cheers
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.