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.

1 answer

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.