Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Purpose

- To give you exposure to
? creating a program that
- connects to a database
- writes, reads and updates the data in the database
? writing the interface between a database and a user
? creating a client/server program that runs on the internet, serves up a page that runs on the client side (the users browser) and
also connects to a back end database on the server side (your virtual machine)

Instructions

Using the following database:

https://owl.uwo.ca/access/content/group/c345a70e-0aae-48d4-8b8e- 5d18c599ee54/Other/MovieTheatre.sql

(also linked in the "Assignment 3 DB" page on the left) and your virtual machine, Python/Flask and MySQL, create a website on your machine that allows a theatre company to manage the viewing of it's movie screenings.

There will be two parts to the assignment:

Part 1: The Back End:

The staff who work at a theatre must be able to:
- Movies
? add movies
? delete movies
? modify movies
? list all movies and all attributes (except genre) sorted alphabetically by movie name
- Genres:
? add a genre to a movie
? delete a genre from a movie
? list all genres and the movie the genre is for sorted alphabetically by genre (include the movie name only)
- Rooms:
? add rooms
? delete rooms
? modify rooms
? list the rooms and all attributes
- Showings
? add showings
? delete showings
? modify showings
? list all the showings and all attributes sorted by date of the showing
- Customer
? add customers
? delete customers
? modify customers
? list all the customers and all attributes sorted by last name
- Attend
? list all the paid for attendances and all attributes,
? along with customer first name and last name
? along with showing and showing date/time
? along with movie and movie title
? sorted by rating

Part 2: The Front End:
The customers of the theatre must be able to:
- allow a customer to search all the showings by searching (give a warning if there are no seats left for a showing):
? a selected genre (use a dropdown input box from all existing genres in the database)
? a range of dates (use two dropdowns to select a start and end date from all existing dates in the database)
? a showing that still has seats available (checkbox)
? a movie title (free-form input box)

? (Hint: How many seats are left are determined by {room capacity for a showing} - {the total tickets purchased for that showing})
- allow a customer to attend a showing
? select their name and any showing, and "buy" a ticket for it (ie. insert a new entry in the Attend table).
- allow a customer to rate a showing
? select their name and a showing they attended, and give a rating (a number of stars between 1 and 5) (ie. update an existing entry in the Attend table)
- allow a customer to select their name and see all the movie titles and ratings for the movies he/she has viewed
- allow a customer to select their name and see his/her profile (all the info about the customer)

Part 3: SQL Injection attack:
- Demonstrate a vulnerable page by not using parameterized queries (also known as prepared statements).
? Build a second page that does not use parameterized queries. When a customer is searching for a movie, it should be possible to use a SQL injection attack to view ALL customers at once in the database.

Part 4: Bonus (up to +10%):
- Movie Posters:
? Modify the database to allow a staff member to add a movie poster image that is added when the movie is added (it will never be updated or added after the fact). The image should somehow be displayed. Assume that all the poster images will be 240 pixels by 360 pixels.
? When the customer views a list of showings based on the movie title, display the movie poster (if one was uploaded) to the user.
- Design
? TAs will grant an extra 5% if your application has some kind of a modern layout and design. Using Bootstrap (see links above) is a good option. There are other template types out there or you can design one from scratch.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M92050579

Have any Question?


Related Questions in DBMS

Sql assignmentin these exercises youll enter and run your

SQL Assignment In these exercises, you'll enter and run your own SELECT statements. You will use the MyGuitarShop database for these queries. If you do not already have the MyGuitarShop database, the SQL script and the i ...

Answer the following question explain the difference

Answer the following Question : Explain the difference between a database management system (DBMS) and a database. Are Microsoft Access, SQL Server, and Oracle examples of databases or database management systems (DBMS)?

Database design and development assignment -assessment task

Database Design and Development Assignment - Assessment task - 1. Normalization a) Map the ERD, from the sample solution, into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations m ...

Q1 given the following file for assignment workercom

Q1. Given the following file for assignment worker.com, identify data anomalies that must be removed before data can be loaded in data warehouse. Worker_assignment ← -----------------on course web site File is available ...

A taking an unnormalised list describe how you would

(a) Taking an unnormalised list, describe how you would normalise it using the normal forms technique and show how the result of this method is used. (b) You are currently in the process of developing a RDBMS for a natio ...

The groceries datasetimagine 10000 receipts sitting on your

The groceries Dataset Imagine 10000 receipts sitting on your table. Each receipt represents a transaction with items that were purchased. The receipt is a representation of stuff that went into a customer's basket. That ...

Databases assignment - monash library services monlib case

Databases Assignment - Monash Library Services (MonLib) Case Study TASK 1: Data Definition For this task you are required to complete the following: 1.1 - Add to your solutions script, the CREATE TABLE and CONSTRAINT def ...

Question a suppose you are a marathon runner that can run a

Question : a) Suppose you are a marathon runner that can run a maximum of n miles on a single bottle of water. You are given a map of your marathon route with all the water stations marked. Design an efficient algorithm ...

A schools office of the registrar maintains data about the

A School's office of the registrar maintains data about the following entities: a) courses (including course number, title, credits, syllabus and prerequisites), b) course offerings (including course number, year, semest ...

Question 1 describe 1nf 2nf 3nf2 explain why 4nf is a

Question: 1: Describe 1NF, 2NF, 3NF. 2: Explain why 4NF is a normal form more desirable than BCNF. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As