458,970 views
24 votes
24 votes
complete devalue()'s recursive case: if value ≤ 60000.0, call devalue() to compute the next year's value as the current year's value multiplied by 0.9. otherwise, call devalue() to compute the next year's value as the current year's value multiplied by 0.8. ex: if the input is 50000.0, then the output is: year: 1, value: 50000.0 year: 2, value: 45000.0 year: 3, value: 40500.0 year: 4, value: 36450.0 year: 5, value: 32805.0 end of study

User JBCP
by
2.8k points

1 Answer

23 votes
23 votes

Hello, the coded version of the question you asked in C + language is available in the photos section. I can't post it as text because it contains banned words(!) You can be inspired by the photo. I wish you success!

complete devalue()'s recursive case: if value ≤ 60000.0, call devalue() to compute-example-1
User Chris Farmiloe
by
3.0k points