To keep up with demand, restaurants of all sizes need to provide solutions that let customers browse their menus, select options, and pay for their carryout or delivery orders online. There are several online ordering systems for restaurants available in the market that help you create a customized ordering experience on your restaurant website or mobile app. They also allow restaurants to place QR codes around their restaurant for a contactless digital menu experience that takes diners to a restaurant’s online ordering system. To help you in your search for the best solution for your restaurant, we have highlighted the top 11 online ordering system options to consider. One best system is called GEU ordering system. Customise your GEU ordering system by writing a PHP code for two partial web pages for ordering food from GEU online store. ✓ The first page you will write is a form named geuorder.php that allows the user to choose what kind of food to buy and how many to buy. o In your form, include a drop-down menu of food items available to purchase. o Include a text box for the user to select or enter a quantity of the item to purchase and an "Order" button to submit the form. The food items to list should be based on what JPG food images are available in blackboard on the resource directory or folder. For example, if the food items contain banana.jpg and chicken.jpg, then " banana" and "chicken" appear in the drop-down list. Now, you can write the last portion of geu_order.php that would appear between, and , you may write your own CSS if need may be. ✓ The second page you need to write is named geu_submit-order.php. The form in geu_order.php submits its data as a POST request to geu_submitorder.php. The output of geu_submit-order.php is an HTML page fragment, a single paragraph indicating information about the order as described below. NB: Do not use print or echo statement. The GEU store’s current inventory is stored in a file named geu_system_inventory.txt on the server in the current directory. Each line of the file represents one item available in the store, its quantity available, and its price per unit, separated by tabs. Assume that the file exists, that its contents are valid, and that there are no duplicates. Here is an example inventory: In general, your task is to look up the price per unit of the item the user is ordering and use this price to compute the total order cost. For example, if the item costs R5.50 and the user orders 7 of them, the total order is 7 * 5.50 = R38.50. The page's output in the general successful case is to inform the user that the order was successful, display the total order cost (you do not need to round it), and show the user a series of images representing what was ordered. For example, if the user orders 4 apples, your output should display 4 copies of apple.jpg. Message: Order Successful R20 is your total price. Here is what you ordered {Display pictures of 4 apples} Here is another output from ordering 15 of the item cookies. (The output wraps to the next line in the browser) The store is only able to complete an order if that food item is in the geu system inventory and the store has enough of that item in stock. Message: Order Successful R20 is your total price. Here is what you ordered {Display pictures of 15 cookies} For example, if the inventory matches the above text file (which has 9 “tinfish” in stock), and the user tries to order 10 of “tinfish”, the following error should be displayed: The items in this geu system inventory may overlap with the images that were listed previously, but there might be some images that do not have representation in the inventory text file and vice versa. If an item is not present in the inventory file, assume that its quantity available in stock is 0 and display the same sort of error message. Error Message: Sorry we do not have 10 tinfish in stock You do not need to modify the geu_system_inventory.txt file or update its quantity of the item being ordered. If the food item or quantity parameters are not passed, issue an error. If they are present, you may assume that the food item value passed is a string and the quantity value passed is a positive integer.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

To keep up with demand, restaurants of all sizes need to provide solutions that let
customers browse their menus, select options, and pay for their carryout or delivery
orders online. There are several online ordering systems for restaurants available in
the market that help you create a customized ordering experience on your restaurant
website or mobile app. They also allow restaurants to place QR codes around their
restaurant for a contactless digital menu experience that takes diners to a restaurant’s
online ordering system. To help you in your search for the best solution for your
restaurant, we have highlighted the top 11 online ordering system options to consider.
One best system is called GEU ordering system. Customise your GEU ordering
system by writing a PHP code for two partial web pages for ordering food from GEU
online store.
✓ The first page you will write is a form named geuorder.php that allows the user
to choose what kind of food to buy and how many to buy.
o In your form, include a drop-down menu of food items available to
purchase.
o Include a text box for the user to select or enter a quantity of the item to
purchase and an "Order" button to submit the form.

The food items to list should be based on what JPG food images are available in
blackboard on the resource directory or folder. For example, if the food items contain
banana.jpg and chicken.jpg, then " banana" and "chicken" appear in the drop-down
list.
Now, you can write the last portion of geu_order.php that would appear between,
<body>and </body>, you may write your own CSS if need may be.
✓ The second page you need to write is named geu_submit-order.php. The
form in geu_order.php submits its data as a POST request to geu_submitorder.php. The output of geu_submit-order.php is an HTML page fragment,
a single paragraph indicating information about the order as described below.
NB: Do not use print or echo statement.
The GEU store’s current inventory is stored in a file named
geu_system_inventory.txt on the server in the current directory. Each line of the file
represents one item available in the store, its quantity available, and its price per unit,
separated by tabs.
Assume that the file exists, that its contents are valid, and that there are no duplicates.
Here is an example inventory:
In general, your task is to look up the price per unit of the item the user is ordering and
use this price to compute the total order cost. For example, if the item costs R5.50 and
the user orders 7 of them, the total order is 7 * 5.50 = R38.50. The page's output in
the general successful case is to inform the user that the order was successful, display
the total order cost (you do not need to round it), and show the user a series of images
representing what was ordered. For example, if the user orders 4 apples, your output
should display 4 copies of apple.jpg.

Message: Order Successful R20 is your total price. Here is what you ordered
{Display pictures of 4 apples}
Here is another output from ordering 15 of the item cookies. (The output wraps to the
next line in the browser) The store is only able to complete an order if that food item
is in the geu system inventory and the store has enough of that item in stock.
Message: Order Successful R20 is your total price. Here is what you ordered
{Display pictures of 15 cookies}
For example, if the inventory matches the above text file (which has 9 “tinfish” in
stock), and the user tries to order 10 of “tinfish”, the following error should be
displayed: The items in this geu system inventory may overlap with the images that
were listed previously, but there might be some images that do not have
representation in the inventory text file and vice versa. If an item is not present in the
inventory file, assume that its quantity available in stock is 0 and display the same sort
of error message.
Error Message: Sorry we do not have 10 tinfish in stock
You do not need to modify the geu_system_inventory.txt file or update its quantity
of the item being ordered. If the food item or quantity parameters are not passed, issue
an error. If they are present, you may assume that the food item value passed is a
string and the quantity value passed is a positive integer.

Assume that the file exists, that its contents are valid, and that there are no duplicates.
Here is an example inventory:
apple
4
5.00
chicken 2
3.25
сookie
38
1.25
milk
9
4.50
tomato 27
2.50
Banana 20
2.00
Tinfish
8
10.0
Transcribed Image Text:Assume that the file exists, that its contents are valid, and that there are no duplicates. Here is an example inventory: apple 4 5.00 chicken 2 3.25 сookie 38 1.25 milk 9 4.50 tomato 27 2.50 Banana 20 2.00 Tinfish 8 10.0
v The form should look like this:
Food item: [milk
Quantity: 10
Order
Transcribed Image Text:v The form should look like this: Food item: [milk Quantity: 10 Order
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY