This repository is a solution proposal for the Roman to Decimal numbers Converter from App Ideas repository (the project description is indicated at the end).
There's not too much to explain: the app will receive a roman number as input and it will convert it to decimal numeric base. However, the application follow the rules associated to the conversion, so the user may see some errors if an invalid input is provided.
Tier: 1-Beginner
The numeric system represented by Roman numerals originated in ancient Rome and remained the usual way of writing numbers throughout Europe well into the Late Middle Ages. Roman numerals, as used today, employ seven symbols, each with a fixed integer value.
See the below table the Symbol - Value pairs:
- I - 1
- V - 5
- X - 10
- L - 50
- C - 100
- D - 500
- M - 1000
- User should be able to enter one Roman number in an input field
- User could see the results in a single output field containing the decimal (base 10) equivalent of the roman number that was entered by pressing a button
- If a wrong symbol is entered, the User should see an error
- User could see the conversion to be made automatically as I type
- User should be able to convert from decimal to Roman (vice-versa)
Assuming Flutter is correctly installed and configured:
- Clone this repository
- Run the command
flutter pub get
in the project root to download the packages - Start the application using either an emulator or a physical device