1.0.1 • Published 7 months ago

currency_exchanger-by-rehman v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

Certainly! Here's a README for the program you provided:


Currency Converter

The Currency Converter is a simple command-line tool that allows you to convert an amount from one currency to another. It provides you with the flexibility to choose the target currency and the amount to be converted. The program is designed to assist you with currency conversion tasks quickly and efficiently.

Features

  • Multiple Currencies: The Currency Converter supports a wide range of currencies, allowing you to convert between various currency pairs.

  • User Interaction: Users can input the amount and select the target currency to perform the conversion.

  • Greeting Message: The program starts with a friendly greeting message to welcome users.

Installation

  1. Make sure you have Node.js installed on your computer.

  2. Clone this repository or download the source code.

  3. Open your terminal or command prompt and navigate to the project directory.

  4. Install the necessary dependencies using npm:

    npm install

Usage

  1. Run the program with the following command:

    node currency-converter.js
  2. The program will display a greeting message to welcome you.

  3. Enter the amount you want to convert.

  4. Select the target currency from the list of available currencies.

  5. The program will calculate and display the converted amount.

  6. You can run the program as many times as you want for different currency conversions.

Example

Here's an example of a currency conversion:

Welcome to the Currency Converter!
Enter the amount to convert: 100
Select the target currency:
1. USD
2. EUR
3. GBP
4. JPY
Enter the number of your choice: 2

The program will display the converted amount, such as:

Converted amount: 85.25 EUR

Author

The Currency Converter program was developed by Abdul Rehman.

License

This program is made available under the Abdulrehman license.