Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this answer in python. Assignment 1) Write a program that creates a Database called Sales. The program should then go on to create

I need this answer in python.

Assignment 1) Write a program that creates a Database called Sales. The program should then go on to create three tables as follows:

Customer(customerid INTEGER, fname TEXT, lname TEXT, phone TEXT) Order (orderid INTEGER, customerid INTEGER, order_date TEXT) OrderDetails (orderid INTEGER, order_item TEXT, quantity INTEGER, price_per_item REAL)

Prompt the user to insert records into these tables. The the entered records print a report showing:

Customer Name, Order Number, Ordered Items, Items Price

at the bottom of this report, print the Grand Total for all orders.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Public Finance

Authors: Harvey S. Rosen

3rd Edition

0256083762, 978-0256083767

Students also viewed these Databases questions