Skip to content

SeikaHirori/unitConversion_iOS

Repository files navigation

Unit Conversion

Reflection post

Project Specifications

Note-worthy:

  • This is iOS first project that will be built from scratch.

Specifications

Logic

  • IMPORTANT:
    • Units will be rounded to the nearby tenth place.
      • Examples:
        • 100.2913 ~= 100.3
        • 0.12 ~= 0.1
  • Pick a type of unit conversion
    • Volume conversion:
      • milliliter (mL)
        • Use this as basis.
      • liter (L)
      • cup (C)
      • pint (pt)
      • gallon (gal)
    • Write conversions:
      • mL to L

      • mL to C

      • mL to pt

      • mL to gal

      • L to mL

      • C to mL

      • pt to mL

      • gal to mL

User Interface

  • Created private variables
  • Segmented control (from)
    • Header: "Convert from"
  • Segmented control (to)
    • Header: "Convert to"
  • textField where user inputs number
    • What is the amount you're converting?
    • Text (when empty) should state "Amount"
  • Text where it has the result of conversion
    • Header: "Result/conversion"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages