Write a program in python 3.x that calculates and displays the depreciation in value of a given item. Given the following formulas:
straight-line depreciation = each year the item depreciates by (1/n)th of its original value double-declinging depreciation = each year the item depreciates by (2/n)ths of its value at the beginning of that year. In the final year it is depreciated by its value at the beginning of the year.
Write a program that prompts the user to enter the name of the item, the year it was purchased, the cost of the item, the estimated life of the item in years, and the method of depreciation. Then print out the given information and display the value at the beginning of the year, the amount the item depreciated during the year, and the total amount of depreciation up to the current year in a table for each year of the item's estimated lifetime.