Question

Can you write a simple code in Mathematica software to calculate in how many years you...

Can you write a simple code in Mathematica software to calculate in how many years you will repay a debt at 6%.

A=2000, I=6%, M.P. = 200

Homework Answers

Answer #1

Java Program:

public class NumOfMonths {
public static void main(String args[])
{
double A=2000;
double I=6;
double MP=200;
double i= I/12/100;
//N = −log(1−iA/P) / log(1+i)
double t1=-Math.log(1-i*A/MP);
double t2=Math.log(1+i);
double years =t1/t2;
System.out.println(" You can take out $"+MP+" a month for "+Math.ceil(years)+" months");
}
  
}

Output:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Kristin and Ricardo work for a software firm. Kristin can write 12 batches of code a...
Kristin and Ricardo work for a software firm. Kristin can write 12 batches of code a day, or answer 18 help-line calls a day. Ricardo can write twelve batches of code a day, or answer twelve help-line calls Who has the comparative advantage in writing batches of code? In answering help-line calls? If you were the manager of these two people, explain how would you direct them to spend their time. What do managers usually do when employees perform better...
**C code only In this part, you will write a simple user-defined function that prints a...
**C code only In this part, you will write a simple user-defined function that prints a message. This function does not require any parameters or return value. The purpose is simply to get you started writing functions.Open repl project Lab: User-Defined Functions 1. Write a program that calls a function. This function should do the following: 1.Ask the user their name 2. Print a "hello" message that includes the user's name Example output: Please enter your name: ​Mat Hello, Mat!...
can you explain how do I calculate or use significant numbers? ex like how many in...
can you explain how do I calculate or use significant numbers? ex like how many in 100 compare in 1.8970
How many errors can be detected by a code with minimum distance d+1?
How many errors can be detected by a code with minimum distance d+1?
Write some PIC code to count how many file registers contain the value 0. Do this...
Write some PIC code to count how many file registers contain the value 0. Do this by examining each file register (0x00 - 0xff) using indirect addressing. At the end of the code, the W register should contain the count of registers containing 0.
how many years are needed for $55 to yield a 8.8% in interest at the simple...
how many years are needed for $55 to yield a 8.8% in interest at the simple interest rate of 8%
how do you calculate the percent of EBIT over many years? such as five or more...
how do you calculate the percent of EBIT over many years? such as five or more years as a percent.
How many eigenstates in the n=3 energy level for hydrogen atom? How can I calculate this?...
How many eigenstates in the n=3 energy level for hydrogen atom? How can I calculate this? Please explain your all step! Thank you!
Write a one page paper about the personality code "ESFJ" Can you see the importance of...
Write a one page paper about the personality code "ESFJ" Can you see the importance of knowing your personality when choosing careers? Please provide examples in your reflection paper. If you Google ESFJ, you can read about the personality code.
Write a C program. Many user-created passwords are simple and easy to guess. Write a program...
Write a C program. Many user-created passwords are simple and easy to guess. Write a program that takes a simple password and makes it stronger by replacing characters using the key below, and by appending "q*s" to the end of the input string. You may assume that the string does not contain spaces and will always contain less than 50 characters. i becomes ! a becomes @ m becomes M B becomes 8 o becomes . Ex: If the input...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT