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.

Solutions

Expert Solution

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:


IF YOU HAVE ANY DOUBT PLEASE COMMENT DOWN BELOW I WILL SOLVE IT FOR YOU:)
----------------PLEASE RATE THE ANSWER-----------THANK YOU!!!!!!!!----------


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...
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?
We are to make a program about a car dealership using arrays. I got the code...
We are to make a program about a car dealership using arrays. I got the code to display all cars in a list, so I'm good with that. What I'm stuck at is how to make it so when a user inputs x for search, it allows them to search the vehicle. We need two classes, one that shows the car information and another that shows the insert, search, delete, display methods. Here is what I have so far package...
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...
Design and implement an interactive program named trip.c that collects information about the user's car and...
Design and implement an interactive program named trip.c that collects information about the user's car and planned travel, and reports back useful information. The dialog below shows exactly what data should be collected as input and reported as output. Some Hints to get started /* Not tested not complete code Just to get you started */ #include /* FUNCTION PROTOTYPES */ void WelcomeMessage(); void AskUserForInput(); /* ask and check whether user wants to continue if wants to continue gather information...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT