Coder Social home page Coder Social logo

cardealershipleaseandsale's Introduction

Car Dealership Management System ๐Ÿข

This is a Car Dealership Management System that allows users to manage a vehicle inventory for a dealership. It provides functionalities to add vehicles, remove vehicles, and perform various searches based on different criteria such as price, make, model, year, color, mileage, and vehicle type.

Getting Started ๐Ÿš€

To run this application, you'll need to have Java installed on your computer. You can download the latest version of Java here.

Once you have Java installed, open the IntellJ IDE. Then navigate to the main.java file and press run.

Interesting Code Javaย 

  @Override
public double getMonthlyPayment() {
    double monthlyPercentageDepreciation = (4.0 / 12) / 100;

    // Calculate the monthly payment using the total price
    double principle = getTotalPrice();
    return principle * monthlyPercentageDepreciation / (1 - Math.pow(1 + monthlyPercentageDepreciation, -36));
}

This code snippet is interesting because it calculates the monthly payment for a financial transaction based on a total price and a fixed monthly percentage depreciation rate. It demonstrates the application of financial calculations in programming, utilizes mathematical functions, and promotes modular code design.

CLI Screenshots ๐Ÿ“ท

Home Screen UI

HomeScreen UI

List All Vehicles

ListAllVehicle

Add Vehicle

AddVehicle

Remove Vehicle

RemoveVehicle

Find Vehicle by Price

findVehiclebyPrice

Find Vehicle by Year

findVehiclebyYear

Find Vehicle by Mileage

findVehiclebyMileage

Find Vehicle by Color

findVehiclebyColor

Find Vehicle by Type

findVehiclebyColor

Find Vehicle by Make-Model

findVehiclebyMakeModel

Manage Contract Screen

ManageContractScreen

Lease Vehicle

LeaseVehicle

Sale Vehicle

SaleVehicle

Exit the application

exitApplication

How to use๐Ÿ“‹

Once the application is running, you can interact with the Dealership Management System through the command-line interface. The available commands are:

  • 1: Manage Dealership.
  • 2: Manage Lease/Sale Contracts.
  • 3: Exit.

Simply enter the corresponding command number and follow the prompts to perform the desired action.

Code Structure ๐Ÿ“

The code is organized into several classes:

  • Main: Contains the main method to start the application.
  • Dealership: Represents a dealership and provides methods to manage the vehicle inventory.
  • Vehicle: Represents a vehicle with its properties and getters.
  • DealershipFileManager: Handles file operations to load and save dealership data.
  • DealershipUI: Handles user input and displays the dealership management command-line interface.
  • MainMenuUI: Handles user input and displays the main menu command-line interface.
  • ContractUI: Handles user input and displays the contract management command-line interface.
  • ContractFileManager: Handles file operations to load and save contract data.

Class Relationship Diagram

The class relationship diagram illustrates the relationships of the Contract class with other classes in the application. It provides an overview of how the Contract class interacts with and depends on other classes for functionality. Class Diagram

  • The Contract class represents a general contract and serves as the base class for LeaseContract and SaleContract.
  • The LeaseContract class extends the Contract class and adds specific properties such as expectedEnding and leaseFee for lease contracts.
  • The SaleContract class extends the Contract class and includes additional properties like recordingFee, isFinance, and salesTax for sale contracts.

cardealershipleaseandsale's People

Contributors

jihad-r avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.