You must create a weather logging app that allows users to enter temperatures in order to calculate its median, average, highest and lowest points.
- AngularJS or Angular 2+ to create the UI
- As a user, I want to add a temperature to my log
- The input must only take numbers
- You must display a validation error when invalid data is entered in the input
- As a user, I want to delete a temperature from my log
- As a user, I want to see the temperature median in my entire log
- As a user, I want to see the average temperature of my entire log
- As a user, I want to see the highest temperature in my log
- As a user, I want to see the lowest temperature in my log
Temperature
------------------------------ -------------------
| | | Add Temperature |
------------------------------ -------------------
* This field is required
--------------------------------------------------------------------------------
Average: 28.9 °c Highest: 32.1 °c Lowest: -3.6 °c Median: 18.4 °c
--------------------------------------------------------------------------------
Temperature Log:
-------------------------------------------------------------
| Date | Temperature | |
-------------------------------------------------------------
| Jan 21, 2018 | -14.9 °c | Delete |
-------------------------------------------------------------
| Jan 21, 2018 | -14.9 °c | Delete |
-------------------------------------------------------------
| Jan 21, 2018 | -14.9 °c | Delete |
-------------------------------------------------------------
| Jan 21, 2018 | -14.9 °c | Delete |
-------------------------------------------------------------
| Jan 21, 2018 | -14.9 °c | Delete |
-------------------------------------------------------------