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
icon
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.
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Running Time of Application
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.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education