Question: COMP 1 2 3 0 Assignment 1 Topics and learning objectives! 1 . Variables, expressions, data types 2 . Arrays 3 . Forms, $ _
COMP Assignment
Topics and learning objectives!
Variables, expressions, data types
Arrays
Forms, $GET, $POST
Conditional statements and comparison operators
Iteration statements for while, dowhile
Functions
How to submit!
Task Description
The aim of this assignment is to create an online store to sell a product of your choice. Compile a PHP code using these steps.
Specific requirements are listed later in this manual. Here is a broad overview:
The store sells one particular kind of product eg video games, supplements, clothes, etc.
Within this product, you should have categories egAdventureShooterPuzzle etc.
Within each category, you should have products egMarioZeldaMetroid etc.
categories x products total products in the store.
Each product will have a price associated with it
A customer should be able to choose what products they want to purchase from the store,
and your website should calculate their total price
The requirements are listed below, along with examples of a store that sells TVs
Note: your store should not sell TVs Otherwise, you will just be copying the example.
CONTINUED ON NEXT PAGE
Groups:
COMP Assignment
Task Requirements
Your code should be clean, and follow good coding practises Marks
Good code will have the following qualities:
i Comments are used to explain the logic of your code. You dont have to explain your basic
code, syntax, etc. Instead, explain why your code is written a certain way eg what your
ifstatement is checking, what your array represents, etc.
ii Variables have sensible humanreadable names eg $categories is better than $c
iii. Use indentation inside ifstatements, loops, function definitions, multiline arrays, etc.
iv Proper spacing around operators, function parameters, etc. eg
$choice $categories$i is better than $choice$categories$i
v No redundant code ie code that doesnt do anything, or is just used for testing, etc.
Any PHP file that you make should have the following code at the bottom, so that the source
code is shown on the page Mark
echo
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
