Add a new tab, the straight-line tab should still be there
Have a layout that allows the user to enter the initial value, salvage value, and lifetime
of the item. Then produce a depreciation schedule that displays the value of the asset for
all of the years of its life time.
If L is the lifetime, and we are in year i, then the depreciation (amount you subtract) for that
year will be
If the user changes any of the inputs, then take any pre-existing depreciation schedule away
(i.e. clear out the result).
Due: Apr. 3
Thursday:
Colorful.zip Shared Preferences. Keyboard event for Edit Text. Another Tab Example.
Lab: Salary Calculation Revisited
Return to the salary-calculation app from Week 1. Add a Shared Preference feature -- when the user clicks the button to
calculate the weekly salary save the hours and wage input in Shared Preferences. When the app starts (onCreate) place any
stored values into EditText boxes -- this way the app remembers the user's hourly wage and hours for the previous week.
Also add code so if the user hits "enter" in the second EditText that it has the same effect as clicking the Calculate Button.