[SOLVED] COSC304 Lab 6- Using Python with MySQL and Microsoft SQL Server

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

Lab 6: Using Python with MySQL and Microsoft SQL Server
This assignment practices developing Java code that uses JDBC to connect to a MySQL database.
Customer (CustomerId, CustomerName)
Employee (EmployeeId, EmployeeName, Salary, SupervisorId)
Product(ProductId, ProductName, ListPrice)
Orders (OrderId, OrderDate, CustomerId, EmployeeId, Total)
OrderedProduct (OrderId, ProductId, Quantity, Price) Initial Steps
Download the starter code Python file and the test file Python file. There is also a DDL script to create the database.
Use VSCode to edit the code files. You will need to install the Python extension to execute.
Write the code to complete the methods in OrderDB.py (look for TODO items).
The Python test library is called unittest. To add it to your project in VSCode, click on the test (beaker) icon, then click on the Configure Tests blue button. VSCode will ask for the test library. Respond with unittest and indicate the test files will have the format Test*.py.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.