/ios-decal-proj4-WaterSaver

ios-decal-proj4 - WaterSaver app

Primary LanguageSwift

ios-decal-proj4

WaterSaver

Author
  • Jay Iyer
Purpose
  • WaterSaver helps track people’s daily water usage and conserve water, especially during the current California drought.
Features
  • Users can record their water usage for many water-intensive tasks
  • Depending on type of task, determine amount of water used through time of water usage / a counter / etc.
  • Users can see what percentage of the recommended daily water usage the user has consumed
  • Users can see a progress view of their weekly water usage
  • Average amount of water used per week
  • Average percentage of recommended daily water usage
Control Flow
  • Users are initially presented with a basically-empty page titled "Your Uses of Water," along with a "Stats" button and a "+" button for adding usage.
    • Once the user taps "+" button button, the user will be presented with many scenarios for recording their water usage
    • The amount of time spent in a bathtub
    • The number of minutes a dishwasher has been used
    • The amount of time a faucet has been running
    • The amount of time a garden hose has been running
    • The amount of time a shower has been used
    • The number of minutes a sprinkler was in use
    • The number of toilet flushes
    • The number of minutes a washing machine was in use
  • Once the user records their corresponding water usage, their percentage of recommended daily water usage will increase. The user will be directed back to the updated front page with a list of water usages.
  • In another menu, the user can see his or her gallons of water used along with a progress view that shows what percentage of his or her total daily allowed gallons of water he or she has used.
Implementation
  • Model
    • Task.swift
  • View
    • Main.storyboard
    • LaunchScreen.storyboard
  • Controller
    • StatsViewController.swift
    • AddTaskViewController.swift
    • TaskTableViewController.swift