Skip to content

riezxcvii/car-rental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Car Rental Console Application

This console application allows users to input the number of seats needed and calculates the optimized cost based on the specified number of seats and predefined car sizes and costs.

Setup

Clone this repository https://github.com/rieza-ix/news-room.git

or

Download the Zip file

Prerequisites

  • Node.js installed on your system. You can download it from here.
  • PHP installed on your system. You can download it from here.
  • Visual Studio Code (VS Code) installed on your system. You can download it from here. (Optional)

Running in VS Code

  1. Open VS Code and navigate to the directory containing the JavaScript or PHP file.
  2. Open the file in the editor.
  3. Press Ctrl + Alt + N to run the code.

Running in Terminal

For JavaScript :

  1. Open a terminal or command prompt and navigate to the directory where the JavaScript file is located.

  2. Run the following command :

    node carRental.js
    

For PHP :

  1. Open a terminal or command prompt and navigate to the directory where the PHP file is located.

  2. Run the following command :

    php car-rental.php
    

Releases

No releases published

Packages

No packages published