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.
Clone this repository https://github.com/rieza-ix/news-room.git
or
Download the Zip file
- 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)
- Open VS Code and navigate to the directory containing the JavaScript or PHP file.
- Open the file in the editor.
- Press Ctrl + Alt + N to run the code.
-
Open a terminal or command prompt and navigate to the directory where the JavaScript file is located.
-
Run the following command :
node carRental.js
-
Open a terminal or command prompt and navigate to the directory where the PHP file is located.
-
Run the following command :
php car-rental.php