An open API service indexing awesome lists of open source software.

https://github.com/annielymariah/hero-level-classifier-dio

This repository contains the solution to the "Classificador de nível de Herói" challenge proposed by DIO.me. The goal of the challenge is to implement a program that takes a hero's name and amount of experience (XP) and determines the hero's level.
https://github.com/annielymariah/hero-level-classifier-dio

challenges javascript programming-logic

Last synced: 3 months ago
JSON representation

This repository contains the solution to the "Classificador de nível de Herói" challenge proposed by DIO.me. The goal of the challenge is to implement a program that takes a hero's name and amount of experience (XP) and determines the hero's level.

Awesome Lists containing this project

README

        

⚔️ Hero Level Classifier 🎮

### **Description**
This project is a solution to the **"Classificador de nível de Herói"** challenge proposed by the **[DIO.me](https://web.dio.me/track/formacao-logica-de-programacao)** course. The goal of this challenge is to implement a system that classifies a hero's level based on their experience (XP), using fundamental programming concepts such as variables, operators, loops, and decision structures.

## **Challenge Requirements**
The application must:
1. Request the hero's name and their experience points (XP).
2. Classify the hero's level according to the following table:
- XP < 1,000 → **Iron**
- 1,001 ≤ XP ≤ 2,000 → **Bronze**
- 2,001 ≤ XP ≤ 5,000 → **Silver**
- 5,001 ≤ XP ≤ 7,000 → **Gold**
- 7,001 ≤ XP ≤ 8,000 → **Platinum**
- 8,001 ≤ XP ≤ 9,000 → **Ascendant**
- 9,001 ≤ XP ≤ 10,000 → **Immortal**
- XP ≥ 10,001 → **Radiant**
3. Display a message with the hero's level in the following format:
```
The Hero named {name} is at the level of {level}.
```

## **Tools and Concepts Used**
- Variables
- Operators
- Loops
- Decision Structures

## **How to Run the Project**

1. **Install Node.js**
First, you need to have **Node.js** installed on your computer. If you haven't done so yet, download and install it from the official website:
- [Node.js Official Site](https://nodejs.org)

2. **Clone this repository**:
```bash
git clone https://github.com/annielymariah/hero-level-classifier-DIO.git
```

3. **Navigate to the project directory**:
```bash
cd hero-level-classifier-DIO
```

4. **Install the dependencies**:
Before running the script, you need to install the required dependencies. Run the following command:
```bash
npm install
```

5. **Run the script**:
After installing the dependencies, execute the project with:
```bash
npm start
```

6. **Follow the on-screen prompts** to input the hero's name and experience points (XP).