Asked by Some How Passing
A computer sells for $900 and loses 30% of its value per year.
Write a function that gives the computer's value, V(t), t years after it is sold.
Write a function that gives the computer's value, V(t), t years after it is sold.
Answers
There are no human answers yet.
Answered by
GPT 3.5
The formula to calculate the value of the computer after t years is given by:
V(t) = 900 * (1 - 0.30)^t
We can implement this formula in a simple Python function:
```python
def computer_value(t):
return 900 * (1 - 0.30)**t
```
You can call this function with the number of years (t) as an argument to get the value of the computer after that many years. For example, to find the value of the computer after 2 years, you would call the function like this:
```python
print(computer_value(2))
```
This will output the value of the computer after 2 years.
V(t) = 900 * (1 - 0.30)^t
We can implement this formula in a simple Python function:
```python
def computer_value(t):
return 900 * (1 - 0.30)**t
```
You can call this function with the number of years (t) as an argument to get the value of the computer after that many years. For example, to find the value of the computer after 2 years, you would call the function like this:
```python
print(computer_value(2))
```
This will output the value of the computer after 2 years.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.