DartbeginnercliAI generated

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

  1. 01

    Set up the Dart CLI project

    ~1h

    Create a Dart CLI project with dart create and configure pubspec dependencies including the args package.

  2. 02

    Parse command-line arguments

    ~1.5h

    Use the args package to parse the value, source unit, and target unit from command-line flags.

  3. 03

    Implement unit conversion functions

    ~2h

    Write conversion functions for length, weight, and temperature units using simple formulas.

  4. 04

    Add currency conversion

    ~1.5h

    Add a static currency exchange-rate map and a function that converts between supported currencies.

  5. 05

    Write unit tests

    ~1.5h

    Write unit tests for each converter function using package:test, covering edge cases like zero and negative values.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~7.5h · 5 steps

Tech stack

Dart SDKargs package