Question

In: Computer Science

Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90...

Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90 of the task, with about 10% effort in coding. The code needs to be compile-able, but does not need to execute. A main() method with no code is appropriate.

Think about what a car rental transaction requires. At minimum, you need the following items below. You are free to add more if it makes sense to you.

A renter.
A vehicle to rent.
A pickup location
A drop off location
A booking start data and time
A reservation start date and time
A planned return date and time.
An actual return date and time.
Alternate Driver list
Payment
 

Your grade will be based on how detailed the design is. There are opportunities for structures within structures within structures, etc, etc. Add as many variables to a structure as you believe it needs. Your design should avoid redundancy.

The deliverable is the CPP program and a design flow chart. The design flow chart does not need to be fancy, just showing what structures connects to. Ideally, a data structure diagram would be appropriate but I just want to see some thought into where the structures are placed. A picture of a hand-written design is allowed.

Sample Design Link: https://drive.google.com/file/d/1BQ9_kX0c0h_FpsCk1pmSJyN8vUdwr5vQ/view?usp=sharing

Your design does not need as verbose as the sample, but think about any entities that are logically related ( I.E - Components of a name, components of an address) and reusability.

Solutions

Expert Solution

Expanding Items for creating structers:

A renter
    - renter name
    - renter address

A vehicle to rent
    -vechicle name
    - vechicle id
    - vechicle licence

A pickup location

- pickup location address

A drop off location
    - dropp off location address

A booking start data and time

- start date

- time

A reservation start date and time

- start date

- time

A planned return date and time

- date

- time

An actual return date and time

- date

- time

Alternate Driver list

- driver name

- total drivers

- driver id

- driver licence

Payment

- rent amount

- due date

- fine amount

- return amount

- balance

Adding more structers that requried for the above declarations:

Licence

- licence id

- issue date

- expiry date

address

- house number

- street name

- place

- pin code

date

- day

- year

- month

time

-hours

-minutes

-seconds

Compile-able CPP code:

#include <stdio.h>

struct date
{
    int day;
    int month;
    int year;
};

struct time_slot
{
    int hours;
    int mintues;
    int seconds;
};

struct address
{
    int house_number;
    char street_name[60];
    char city[50];
    int pin;
};

struct licence
{
    int licence_id;
    struct date issue_date;
    struct date expiry_date;
};

struct renter
{
    char renter_name[50];
    struct address renter_address;
};

struct vechicle_to_rent
{
    char vechicle_name[40];
    int vechicle_id;
    struct licence vechicle_licence;
};

struct alternate_driver_list
{
    char driver_name[40];
    int total_drivers;
    int driver_id;
    struct licence driver_licence;
};

struct payment
{
    int rent_amount;
    struct date due_date;
    int fine_amount;
    int return_amount;
    int balance;
};

struct CarRentalTransaction
{
    struct renter car_renter;
    struct vechicle_to_rent vechicle;
    
    struct address picup_location;
    struct address drop_off_location;
    
    struct date booking_date;
    struct time_slot booking_time;
    
    struct date reserved_date;
    struct time_slot reserved_time;
    
    struct date planned_date;
    struct time_slot planned_time;
    
    struct date actual_date;
    struct time_slot actual_time;
    
    struct alternate_driver_list driver;
    struct payment transaction;
}car_renting;

int main()
{

    return 0;
}

Design flow chart:


Related Solutions

Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90...
Design and code a detailed Car Rental Transaction Structure. Ideally, the design work is about %90 of the task, with about 10% effort in coding. The code needs to be compile-able, but does not need to execute. A main() method with no code is appropriate. Think about what a car rental transaction requires. At minimum, you need the following items below. You are free to add more if it makes sense to you. A renter. A vehicle to rent. A...
Car Rental Management System in C++ The aim of this project is to design and implement...
Car Rental Management System in C++ The aim of this project is to design and implement a computerized Car Rental Management System for a company called COEN244Cars. The company rents two types of cars: standard and luxury cars. A car is identified by a car identification number (int), a type (string), and a flag that indicates whether the car is currently available or not. The company distinguishes between three types of customers: regular customers, corporate customers, and VIPs (Very Important...
You work for a major car-rental company and need to create search advertisements for the firm....
You work for a major car-rental company and need to create search advertisements for the firm. Explain the four-step process you would go through as you create such advertising. Include details about what happens at each step of the process after you launch your ads. As you complete your answer, be sure to include all substeps. Give specific examples that relate to the car-rental firm when you explain each step of the process.
write a c++ code for following application You have been hired by XYZ Car Rental to...
write a c++ code for following application You have been hired by XYZ Car Rental to develop a software system for their business. Your program will have two unordered lists, one of Cars and one of Reservations. The Car class will have the following data: string plateNumber (this is the key) string make string model enum vehicleType (VehicleType Enumeration of options: sedan, suv, exotic) double pricePerDay bool isAvailable isAvailable should be set to true on initialization, and a public setter...
Looking for a detailed work breakdown structure for a football stadium. Please do not answer it...
Looking for a detailed work breakdown structure for a football stadium. Please do not answer it with a definition. The more details the better.
Please show all work. A national car rental agency wishes to analyze the relationship between the...
Please show all work. A national car rental agency wishes to analyze the relationship between the mileage on used vehicles and the selling price. They selected a random sample of 12 comparably equipped 3-year-old Chevrolet Cruzes sold at auctions. The data on mileage and selling price are found below: PRICE MILEAGE 7000 60000 8500 52000 7000 62000 8900 48000 7600 55000 7200 60000 8500 50000 7800 53000 7200 58000 9000 48000 7200 60000 7700 55000 a) Find the regression equation...
Developing a detailed work breakdown structure (WBS) for a system development project is a basic function...
Developing a detailed work breakdown structure (WBS) for a system development project is a basic function of project management. What part should be played by systems engineering in the definition of the WBS in addition to detailing the section named “System’s Engineering”.
Write about amazon design and structure and tell us about what we want change in it?
Write about amazon design and structure and tell us about what we want change in it?
Provide detailed information about the function structures of regression models. (model structure, interpretation of coefficients, graph...
Provide detailed information about the function structures of regression models. (model structure, interpretation of coefficients, graph for the relationship between variables, if any, etc.)
Please do it in Excel and show detailed work I'm really confused about how to put...
Please do it in Excel and show detailed work I'm really confused about how to put the Z- value on Excel. I will rate you! The crab spider, Thomisus spectabilis, sits on flowers and preys upon visiting honeybees. Do honeybees distinguish between flowers that have crab spiders and flowers that do not? To test this, Heiling et al. (2003) gave 33 bees a choice between 2 flowers: one with, and one without a crab spider. In 23 of the 33...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT