PART 1 Problem A car rental company hires you to develop their reservation system. The system should deal with customers’ queries providing a quote for the given dates and type of car. It should check...

1 answer below »

PART 1 Problem


A car rental company hires you to develop their reservation system. The system should deal with customers’ queries providing a quote for the given dates and type of car. It should check for availability and make/cancel reservations.


Types of vehicles and their characteristics:


▪ cars: make/model,km/l,numPassenger,num_doors,plate number, daily cost, weekly cost, weekend cost, available


▪ vans: make/model,km/l,numPassenger,plate number, daily cost, weekly cost, weekend cost,available


▪ caravans: make/model, km/l, num_beds, plate number, daily cost, weekly cost, weekend cost,available


Company side


The program will have a company username that will allow the staff in the company to enter/delete vehicles. A basic set of vehicles should be created in the code.


Customer side


The program must be able to:


a) Display the specific vehicles available for rent by vehicle type.


b) Display cost associated with a given vehicle including daily, weekend and weekly rate.


c) It must also allow the user to determine the cost of a particular vehicle for a given period of time.


d) The program must allow for a particular vehicle to be reserved and cancelled.


1


Technical requirements


Object oriented approach: Instantiation, use of attributes and methods


Use of inheritance, use of lists/dictionaries as appropriate, use of GUI , efficient code, comments, error checking, string control for upper/lower case, etc...


PART 1 - Specs


1. Create the classes required to store all the vehicle data. Create the


objects. 2. Use the ‘Vehicles project data’ file for details on the vehicles and


prices.


3. Create the structure for a customer to search the vehicles by type.


4. Create the structure for a customer to query the cost of renting a


particular vehicle.


a. Generic pricing


b. Specific to number of days.


5. Create the structure for a customer to rent a car (make available


attribute =N) and return it (make available attribute=Y).


6. Create the structure for the admin user to add a new car to the fleet.


7. Create the structure for the admin user to delete a car from the fleet.


8. Create a functional GUI



Answered Same DayJan 06, 2021

Answer To: PART 1 Problem A car rental company hires you to develop their reservation system. The system should...

Ria answered on Jan 07 2021
151 Votes
import tkinter as tk
from tkinter import *
from tkinter import ttk
import docx
from docx import Document
document = Document ('vehicles-project-
data.docx')
class cars():
    make=('0')
    model=('0')
    km=('0')
    p_no=('0')
    d_no=('0')
    pl_no=('0')
    d_cost=('0')
    wl_cost=('0')
    we_cost=('0')
    avail='0'
    
    def __init__(self):
        table = document.tables[0]
        for row in table.rows:
            self.make=row.cells[0].text
            self.model=row.cells[1].text
            self.km=row.cells[2].text
            self.p_no=row.cells[3].text
            self.d_no=row.cells[4].text
            self.pl_no=row.cells[5].text
            self.d_cost=row.cells[6].text
            self.wl_cost=row.cells[7].text
            self.we_cost=row.cells[8].text
            self.avail='Y'
    def add(self, make):
        self.make=make
class vans:
    make=('0')
    model=('0')
    km=('0')
    p_no=('0')
    pl_no=('0')
    d_cost=('0')
    wl_cost=('0')
    we_cost=('0')
    avail='0'
    def __init__(self):
        table = document.tables[1]
        for row in table.rows:
            self.make=row.cells[0].text
            self.model=row.cells[1].text
            self.km=row.cells[2].text
            self.p_no=row.cells[3].text
            self.pl_no=row.cells[4].text
            self.d_cost=row.cells[5].text
            self.wl_cost=row.cells[6].text
            self.we_cost=row.cells[7].text
            self.avail='Y'
    def add(self, make):
        self.make=make
class caravans:
    make=('0')
    model=('0')
    km=('0')
    b_no=('0')
    pl_no=('0')
    d_cost=('0')
    wl_cost=('0')
    we_cost=('0')
    avail='0'
    def __init__(self):
        table = document.tables[2]
        for row in...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here