Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.29 KB

README.md

File metadata and controls

41 lines (23 loc) · 1.29 KB

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