, I received an assignment from the teacher, And have to complete them withing 4 weeks time.
I tried my best to figure out but it is too hard,
below is the assigment:
JUSTIN Case is a bit of a petrol head and dreams of a new car to impress his friends and go for long drives in the country. However, he knows he is a long way from paying cash for this car and will need to rely on the finance offered by the car dealer. the rules for this finance are below but Justin needs a calculator that helps him decide.
The car company will charge loan insurance if the person is under 25 years old no matter what the total loan value-your calculator should display a message if this fee applies(a flat amount of $1000). The interest is calculated on the balance outstanding at the beginning of each year and credited to the loan amount to be repaid at this time.
Whilst the repayments are made monthly they will not affect the interest paid in any one year.
Justin does not want to be in debt for more than 10 years and so your calculator will need to either show how many years it will take to repay the loan if it is under 10 years or display a message telling Justin to reconsider as it will take over 10 years to own his dream car.
An example of a possible user interface for a Visual Basic implementation is shown belown.<B>
===car price  ==deposit 
===age  ==interest [0.09]
_______CALCULATE Scenario>>(this is button user click to calculate)
' year 1 remaining balance $25,720.00
' year 2 remaining balance $25,234.80
' year 4------------------$17,573.27
' year 8 remain balance $2,855.08
--- you will pay this off in 9 years
loan insurance of $1000 payable</B>
the value in the [ ] is for user to enter information.
MY task is to design a solution to the problem, implement the design in both C++ and Visual basic
I hope that some one smart about mathematic and programming would help me through this. it is 40% of the score.
May every to be able to help. if yyou can please send the code to