The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 3 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Write the code for following problems:
1.) Program that solves for the roots of the quadratic equation ax^2 + bx +c =0 using quadratic formula
2.) Let us consider how to calculate the yearly depreciation for some depreciable item, such as a building, a machine, etc. There are three commonly used methods for calculating depreciation, known as the straight-line method, the double-declining-balance method, and the sum-ofithe-years ’-digits method. We wish to write a python program that will allow us to select any one of these methods for each set of calculations. Suppose, for example, that we wish to depreciate an $8000 item over 10 years, using the double-declining-balance
method. The depreciation factor will be 2/10 = 0.20. Hence the depreciation for the first year will be 0.20 x $8000 =$1600. The second year’s depreciation will be 0.20 x ($8000 - $1600) = 0.20 x $6400 = $1280; the third year’s
depreciation will be 0.20 x $5120 = $1024, and so on.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll