Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment, you will be creating inventory.php page where the user can enter the quantities of items to purchase. After the order is submitted,
In this assignment, you will be creating "inventory.php" page where the user can enter the quantities of items to purchase. After the order is submitted, the inventory list (where each product name, price and quantity delimited by comma in each line), inventory.txt, will be read. If the order can be filled, the invoice will be displayed and "inventory.tx" will be updated. Otherwise a message, indicating the number of items available will be displayed. For example When the file, inventory.txt, contains Truck, S4.00, 4 Bunny, $3.00, 5 Butterfly, S6.00, 6 User placed the following order: Item Truck Bunn Butterfl Order Invoice would look like the followin Item Truck Bunn Butterfl Price $4.00 $3.00 $6.00 Total Amount $4.00 S3.00 S12.00 $19.00 uantity When the file, inventory.txt, contains Truck, S4.00, 3 Bunny, S3.00, 2 Butterfly, S6.00, 1 User placed the following order Item Truck Bunn Butterfl Order Message should display The order cannot be filled as there is only 1 butterfly available In this assignment, you will be creating "inventory.php" page where the user can enter the quantities of items to purchase. After the order is submitted, the inventory list (where each product name, price and quantity delimited by comma in each line), inventory.txt, will be read. If the order can be filled, the invoice will be displayed and "inventory.tx" will be updated. Otherwise a message, indicating the number of items available will be displayed. For example When the file, inventory.txt, contains Truck, S4.00, 4 Bunny, $3.00, 5 Butterfly, S6.00, 6 User placed the following order: Item Truck Bunn Butterfl Order Invoice would look like the followin Item Truck Bunn Butterfl Price $4.00 $3.00 $6.00 Total Amount $4.00 S3.00 S12.00 $19.00 uantity When the file, inventory.txt, contains Truck, S4.00, 3 Bunny, S3.00, 2 Butterfly, S6.00, 1 User placed the following order Item Truck Bunn Butterfl Order Message should display The order cannot be filled as there is only 1 butterfly available
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started