CLI Unit & Currency Converter
A command-line Dart tool that converts between common units (length, weight, temperature) and currencies using a static exchange-rate table. Learners practice Dart syntax basics, functions, switch statements, and reading command-line arguments.
- Estimate
- ~7.5h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
Dart SDK · args package
Project roadmap
- 01
Set up the Dart CLI project
~1hCreate a Dart CLI project with dart create and configure pubspec dependencies including the args package.
- 02
Parse command-line arguments
~1.5hUse the args package to parse the value, source unit, and target unit from command-line flags.
- 03
Implement unit conversion functions
~2hWrite conversion functions for length, weight, and temperature units using simple formulas.
- 04
Add currency conversion
~1.5hAdd a static currency exchange-rate map and a function that converts between supported currencies.
- 05
Write unit tests
~1.5hWrite unit tests for each converter function using package:test, covering edge cases like zero and negative values.
Resources
- DocsDart Guides
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack