Assignment 1: COMP1230 Due: Friday October 14 at midnight on GBLearn BROWN Purpose • Choose a product to sell on your website. (You cannot choose TV, as TV is the example product) Samsung Checkout Computer Technology You are building an online store to sell your choice of product. (In the screenshot examples, the product is: TVs.) In its simplest form, it looks like this: TV Shop Online store's inventory • Choose at least 3 product categories for your product The client must be able to choose a product from at least 3 categories. See the Inventory structure below for more details. A person may buy 1 or more products (in a particular category) at the same time. If the person wants to buy a product from another category, they will have to checkout separately. le. When calculating the total price, you only need to add the prices for products checked off in the current category. The website should display the total price after the user presses "Checkout" o (In the screenshot examples, the three product categories chosen were "Samsung", "LG", and "Sony", but you cannot choose these) Choose at least 3 product items for each category, each with a price o (In the screenshot examples, the 3 items for the category "Samsung" are "Neo" at $4000.23, "QLED" at $2300.23 and "Crystal" at $1599.23, but you cannot choose these.) o The items for each category should be different. Therefore, there should be at least 9 product items in total.
Assignment 1: COMP1230 Due: Friday October 14 at midnight on GBLearn BROWN Purpose • Choose a product to sell on your website. (You cannot choose TV, as TV is the example product) Samsung Checkout Computer Technology You are building an online store to sell your choice of product. (In the screenshot examples, the product is: TVs.) In its simplest form, it looks like this: TV Shop Online store's inventory • Choose at least 3 product categories for your product The client must be able to choose a product from at least 3 categories. See the Inventory structure below for more details. A person may buy 1 or more products (in a particular category) at the same time. If the person wants to buy a product from another category, they will have to checkout separately. le. When calculating the total price, you only need to add the prices for products checked off in the current category. The website should display the total price after the user presses "Checkout" o (In the screenshot examples, the three product categories chosen were "Samsung", "LG", and "Sony", but you cannot choose these) Choose at least 3 product items for each category, each with a price o (In the screenshot examples, the 3 items for the category "Samsung" are "Neo" at $4000.23, "QLED" at $2300.23 and "Crystal" at $1599.23, but you cannot choose these.) o The items for each category should be different. Therefore, there should be at least 9 product items in total.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Hi there, can you please create a PHP file based on the instructions in the image please?. You don't have to finish 100% of it, just around 70% is fine and try your best if you can do more :) I really appreciate it and will definitely give a thumbs up!
Thank you so much and have a great day!!
![Assignment 1: COMP1230
Due: Friday October 14 at midnight on GBLearn
ULUNUL
BROWN
para
Purpose
• Choose a product to sell on your website. (You cannot choose TV, as TV is the
example product)
Samsung
Checkout
Computer Technology
You are building an online store to sell your choice of product. (In the screenshot
examples, the product is: TVs.) In its simplest form, it looks like this:
TV Shop
•
The client must be able to choose a product from at least 3 categories. See the Inventory
structure below for more details.
Online store's inventory
• Choose at least 3 product categories for your product
•
A person may buy 1 or more products (in a particular category) at the same time. If the
person wants to buy a product from another category, they will have to checkout
separately. le. When calculating the total price, you only need to add the prices for
products checked off in the current category.
• The website should display the total price after the user presses "Checkout"
o (In the screenshot examples, the three product categories chosen were
"Samsung", "LG", and "Sony", but you cannot choose these)
• Choose at least 3 product items for each category, each with a price
o (In the screenshot examples, the 3 items for the category "Samsung" are "Neo"
at $4000.23, "QLED" at $2300.23 and "Crystal" at $1599.23, but you cannot
choose these.)
o The items for each category should be different.
Therefore, there should be at least 9 product items in total.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F57197421-aad0-4284-a2ee-667d555f1caf%2F148d3756-e4ba-4580-bd3b-4ba1ea418188%2Fyg4gjmk_processed.png&w=3840&q=75)
Transcribed Image Text:Assignment 1: COMP1230
Due: Friday October 14 at midnight on GBLearn
ULUNUL
BROWN
para
Purpose
• Choose a product to sell on your website. (You cannot choose TV, as TV is the
example product)
Samsung
Checkout
Computer Technology
You are building an online store to sell your choice of product. (In the screenshot
examples, the product is: TVs.) In its simplest form, it looks like this:
TV Shop
•
The client must be able to choose a product from at least 3 categories. See the Inventory
structure below for more details.
Online store's inventory
• Choose at least 3 product categories for your product
•
A person may buy 1 or more products (in a particular category) at the same time. If the
person wants to buy a product from another category, they will have to checkout
separately. le. When calculating the total price, you only need to add the prices for
products checked off in the current category.
• The website should display the total price after the user presses "Checkout"
o (In the screenshot examples, the three product categories chosen were
"Samsung", "LG", and "Sony", but you cannot choose these)
• Choose at least 3 product items for each category, each with a price
o (In the screenshot examples, the 3 items for the category "Samsung" are "Neo"
at $4000.23, "QLED" at $2300.23 and "Crystal" at $1599.23, but you cannot
choose these.)
o The items for each category should be different.
Therefore, there should be at least 9 product items in total.
![Requirements
1. 4 Points - Make sure your code follows Best Practices. You must...
a. Add echo
show_source(__FILE____); statement is included at the bottom of
your PHP file
b. Each workflow in your script must have adequate comments to explain the
process and logic
c. Use proper variable naming
d. Use indentation
e.
Use a single space before and after operators for readability.
f. Remove unnecessary/unrelated code & comments
2. 1 Point - Add your full name, student ID and class day/time as an HTML comment at the
beginning of the file.
3. 8 Points - Use an associative array to store the Inventory information. You will be using
it as your data source.
4. 4 Points - Add a section to your website. Add a heading called "Client Details". Inside
you must print out the information below. Make sure you add the text like in the image
below.:
a. The IP address of the user looking at the current page.
b. The browser that the user using
c. The time representing when the request from the client -> browser was made
localhosts/123123123
Samsung
Checkout
O localhost/dashboard/123123123.php
197%
Client Information
IP address of client: 127.0.0.1
Browser used by the client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0)
Gecko/20100101 Firefox/105.0
Date and time this website was Accessed: 2022-09-25 05:13:25
TV Shop](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F57197421-aad0-4284-a2ee-667d555f1caf%2F148d3756-e4ba-4580-bd3b-4ba1ea418188%2Fmwuwuql_processed.png&w=3840&q=75)
Transcribed Image Text:Requirements
1. 4 Points - Make sure your code follows Best Practices. You must...
a. Add echo
show_source(__FILE____); statement is included at the bottom of
your PHP file
b. Each workflow in your script must have adequate comments to explain the
process and logic
c. Use proper variable naming
d. Use indentation
e.
Use a single space before and after operators for readability.
f. Remove unnecessary/unrelated code & comments
2. 1 Point - Add your full name, student ID and class day/time as an HTML comment at the
beginning of the file.
3. 8 Points - Use an associative array to store the Inventory information. You will be using
it as your data source.
4. 4 Points - Add a section to your website. Add a heading called "Client Details". Inside
you must print out the information below. Make sure you add the text like in the image
below.:
a. The IP address of the user looking at the current page.
b. The browser that the user using
c. The time representing when the request from the client -> browser was made
localhosts/123123123
Samsung
Checkout
O localhost/dashboard/123123123.php
197%
Client Information
IP address of client: 127.0.0.1
Browser used by the client: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:105.0)
Gecko/20100101 Firefox/105.0
Date and time this website was Accessed: 2022-09-25 05:13:25
TV Shop
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education