Starting from:
$30

$24

Assignment 3 Solution

Important Notes:




This is a group assignment. Groups may consist of at most two people. Under no circumstances will groups of 3 or more be permitted.



I will be checking for borrowed or copied assignments. All work is to be done from scratch, you may not use any templates or other assistances.



An in-class demo is required for full marks.



This assessment is out of 20 marks total.






Tasks:




In this assignment, you are to develop a web application for an online store. The type of store that you design, and its inventory is left to your discretion.




HTML Static Content - Web Form



The front end must collect all the information needed to mail out the purchased items to the customer. I have included a few in the wireframe which are mandatory and must be included in your form. (1 mark)



At least 3 products should be available for purchase. The application’s business logic must handle the products correctly. (1 mark)



JavaScript - Form Validation



All JavaScript code must be located in an external script file. (1 mark)



The following user inputs must be validated:



6 Mandatory fields (1 mark)



2 fields using regular expression (1 mark)



At least one product should be bought and the value input in the product input boxes should be a number. (1 mark)



If any errors exist, display a compound message that includes all the error messages. Do not use a JavaScript popup box for this purpose. (1 mark)



If any errors exist, give focus to one of the offending form controls. (1 mark)







































1

PROG1800







PHP



Write and use at least one PHP function in your application. You are free to write your own function or call a pre-written function. (1 mark)



All user inputs must be validated again. (2 marks)



Generate a receipt to give to the customer, including all the shipping documentation. (3 marks)



Calculate and include sales tax for each province/territory in Canada. (2 marks)



As part of your receipt, calculate and include the shipping cost based on the delivery time selected by the user. (2 marks)



– Add $30.00 if the delivery time selected is 1 day




– Add $25.00 if the delivery time selected is 2 days




– Add $20.00 if the delivery time selected is 3 days




– Add $15.00 if the delivery time selected is 4 days




Programming Style and Standards (1 mark)



It is a good idea to practice conforming to a set of programming standards. Refer to the posted summary of the Programming Standards used by the CP/CPA programs.




In-class Demo (1 mark)



Your group will be providing in-class demos on or before the due date. Marks will be given for general knowledge of the submitted solution.




Please refer to the wireframes on the next page to get an idea on what the input/output may look like. You are free to choose the design, fonts and colors as long as you fulfill the minimum requirements mentioned above. You can name your online shop as per your liking and the product names too.













Submissions:




To submit this assignment, place all your work into a single folder. Zip (or RAR) this folder and submit the zipped file to eConestoga. No cover sheet is required for this assignment. A good way to make sure everything is correct, is to unzip the file you are submitting on a different location on your computer and making sure everything works. I have to be able to see your results.































2

PROG1800
















































































































































































































3

PROG1800
















































































































































































































4

More products