Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CAR RENTAL COMPANY IdNo CUSTOMER Name Initial LastName RentalID CarType VehicleID Available EndDate StartDate Phone RontedFor DAILY RENTAL Model Make Year AVAILABLE CARS New

 

CAR RENTAL COMPANY IdNo CUSTOMER Name Initial LastName RentalID CarType VehicleID Available EndDate StartDate Phone RontedFor DAILY RENTAL Model Make Year AVAILABLE CARS New Reservation CAR RENTAL Confirmed WeeklyRate DailyRate CurrentOrScheduled RentalType AmountDue W RontalID WEEKLY RENTAL RentallD StartDate NoOrWeeks ReturnDate NoOfDate StartDate ReturnDate Part 2.1 In this part you will be to map the EER schema design to a relational database schema, and create the tables corresponding to the relational schema using the MySQL. You will add to your report a listing of the CREATE TABLE statements. Specify as many constraints (key, referential integrity) as you can in the relational schema. You should state the choices you made during the EER-to-relational mapping, and the reasons for your choices. Part 2.2 1 This part of the project you will load some data into the database, and apply certain update transactions and retrieval queries. You will create your own data. Include at least 10 customers, and at least 20 cars of different types. You have to implement transactions from 1 to 5: 1. The following are the transactions you have to implement for this part of the homework: Load some initial data (as discussed above) into the database tables that you created in Part 2.1 of the assignment. You can either write a loading program, or use SQL (insert command. Your data should be kept in files so that it can easily be reloaded during debugging. The data format should be designed by you. 2. 3. 4. 5. Write queries to retrieve and print all the data you entered. Try to print the data so that it is easy to understand (for example, print appropriate headings, such as: Customers, Compact Cars, SUVs, Current Rentals, etc). Write the following database update transactions using PHP or some other programming language or scripting language. 3.1 The first transaction is to add information about a new CUSTOMER. 3.2 The second transaction is to add all the information about a new CAR. 3.3 The third transaction is to add all the information about a new RENTAL reservation (this must find a free car of the appropriate type for the rental period). 3.4 The fourth transaction is to handle the return of a rented car. This transaction should print the total customer payment due for the rental, and enter it in the database. 3.5 The fifth transaction is to enter or update the rental rates (daily and weekly) for a type of car. Each transaction should have a user friendly interface to enter the information needed by the transaction. This can either be a Web-based interface or a command line interface. Test your transactions by adding a few new customers, cars, reservations, by changing some rental rates and reservations rates. Part 2 a. b. For part 2.1, what you turn in should include your relational schema diagram design and your CREATE table statements, and documentation describing your EER-to-relational mapping choices. For part 2.2, submit the implementation of part 2.2 using PHP or any other programming language. Source code of all your transactions should be submitted, as well as the data files.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Here is the solution for Part 21 Relational Schema Diagram The following relational schema diagram represents the EER schema design for the car rental ... 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_2

Step: 3

blur-text-image_3

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

Organizational Behaviour Concepts Controversies Applications

Authors: Nancy Langton, Stephen P. Robbins, Timothy A. Judge, Katherine Breward

6th Canadian Edition

132310317, 978-0132310314

More Books

Students also viewed these Databases questions

Question

1. Keep definitions of key vocabulary available as you study.

Answered: 1 week ago

Question

When should you avoid using exhaust brake select all that apply

Answered: 1 week ago