JSP and MySQL Assignment
1. Create a database called premiergardens2 using MySQL.
2. Create a table inventory in the premiergardens2 database.
3. 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.
4. 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
5. Write a JSP script, displaytools.jsp, that will display all of the records in the inventory table.
6. Create a front-end HTML form that simulates the sale of tools, selltools.html.
7. 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.
8. Run the script created in step 5. to verify that the values are updated.
9. Create a front-end HTML form, profits.html, that will have radio buttons that will allow the users to query the database table.
a. Show the total profit and number sold for the tractor scooter.
b. Show the total profit and number sold for greenhouse.
c. Show the total profit and number sold for edger.
d. Show the total profit and number sold for hot stick.
e. Show the total profit and number sold for pole saw.
f. Show the total profit and number sold for all items.
10. Write a JSP script gardenprofits.jsp. You must run a different SELECT query for each tool. The profit is computed as sold * (retail wholesale).
Discussion: Database
Our Service Charter
1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.
2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.
3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.
4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.
5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.
6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.
Homework Free Org
Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.
© 2020 Homework Free Org
SERVICES OFFERED
Recent Comments