Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN
Pages: 4
Words: 665

Int usefullife acquisitioncost salvagevalue double syd acquisitioncost salvagevalue

double acquisitionCost, salvageValue;

int usefulLife;

salvageValue = Double.parseDouble(txtSalvageValue.getText());

usefulLife = Integer.parseInt(txtUsefulLife.getText());

depreciationSchedule.MakeSSumOfYearsDigitSchedule(acquisitionCost, salvageValue, usefulLife);

else

for (String line: depreciationSchedule.schedule)

{

import java.text.NumberFormat;

public class DepreciationScheduleClass

public void MakeStraightLineSchedule(double acquisitionCost,

double salvageValue, int usefulLife)

// make a string to hold a single line of the schedule

String scheduleLine;

+ money.format(undepreciatedAmount);

schedule[0] = scheduleLine;

undepreciatedAmount = acquisitionCost - totalDepreciation;

scheduleLine = i + "\t " + money.format(depreciation) + " \t "

schedule[usefulLife + 1] = "Total depreciated \t" +

money.format(totalDepreciation);

double totalDepreciation = 0.0;

double undepreciatedAmount = acquisitionCost;

}

public void MakeDoubleDecliningBalanceSchedule(double acquisitionCost,

double depreciation = SL(acquisitionCost,salvageValue,usefulLife);

String scheduleLine;

double salvageValue, int usefulLife)

{

{

// write and document this method

{

// write and document this method

Copyright © 2009-2023 UrgentHomework.com, All right reserved.