Create a front-end html form that simulate the sale of tools


Homework: JSP and MySQL

I. Create a database called premiergardens2 using MySQL.

II. Create a table inventory in the premiergardens2 database.

III. Create the following fields for the inventory table - toolid CHAR(5) (Primary Key), toolname CHAR(30), wholesale DECIMAL(7,2), retail DECIMAL(7,2), sold INTEGER, and inventory INTEGER.

IV. Create a front-end HTML form, insertinventory.html, with text fields that will allow you to enter the following data into the inventory table. Do not hard code this information. Please insert one record at a time in the inventory table using a JSP script inserttools.jsp.

toolid             toolname               wholesale       retail            sold         inventory
TS234            Tractor Scooter       85.03              97.95          122          26
GH178           Greenhouse            82.19             119.59         9              155
ED829           Edger                      83.22              115.99        55             115
HS398           Hot Stick                 212.44             318.99        26            75
PS098           Pole Saw                 226.99            342.95         33            15

V. Write a JSP script, displaytools.jsp, that will display all of the records in the inventory table.

VI. Create a front-end HTML form that simulates the sale of tools, selltools.html.

VII. Write a JSP script, toolsales.jsp, that will run one update query for sold and a second update query for inventory. Thus, when the user selects an item, decrement the number of items in inventory and then increment the number of items sold.

VIII. Run the script created in step 5. to verify that the values are updated.

IX. Create a front-end HTML form, profits.html, that will have radio buttons that will allow the users to query the database table.

1) Show the total profit and number sold for the tractor scooter.
2) Show the total profit and number sold for greenhouse.
3) Show the total profit and number sold for edger.
4) Show the total profit and number sold for hot stick.
5) Show the total profit and number sold for pole saw.
6) Show the total profit and number sold for all items.

X. Write a JSP script gardenprofits.jsp. You must run a different SELECT query for each tool. The profit is computed as sold * (retail - wholesale).

Format your homework according to the following formatting requirements:

(1) The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

(2) The response also includes a cover page containing the title of the homework, the student's name, the course title, and the date. The cover page is not included in the required page length.

(3) Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Request for Solution File

Ask an Expert for Answer!!
PL-SQL Programming: Create a front-end html form that simulate the sale of tools
Reference No:- TGS03151685

Expected delivery within 24 Hours