Hey, so I'm trying to write a program and am supposed to compare its output to the output I'm supposed to be getting using the diff function.
What appears to be EXACTLY the same output is apparently not at all the same using the diff function. This is becoming extremely irritating to figure out. Any help would be greatly appreciated.
Code:
-------------- Report -----------------
House price: $100000.00
Amount borrowed: $100000.00
Interest rate: 1.00; Term: 30 years
Monthly payment: $321.64
Annual payment: $3859.67
Total amount to repay: $115790.23
Total interest payments: $15790.23
Interest is 15.79% of the principal
Down payment: $0.00 is 0.00% of house price
Total spent on house: $115790.23
--------------------------------------
Full price: Incorrect value
Principal: Incorrect value
Interest: Incorrect value
Term: Incorrect value
Term: Incorrect value
Full price: Incorrect value
Principal greater than full price
Principal greater than full price
Term: Incorrect value
and
Code:
-------------- Report -----------------
House price: $100000.00
Amount borrowed: $100000.00
Interest rate: 1.00; Term: 30 years
Monthly payment: $321.64
Annual payment: $3859.67
Total amount to repay: $115790.23
Total interest payments: $15790.23
Interest is 15.79% of the principal
Down payment: $0.00 is 0.00% of house price
Total spent on the house: $115790.23
--------------------------------------
Full price: Incorrect value
Principal: Incorrect value
Interest: Incorrect value
Term: Incorrect value
Term: Incorrect value
Full price: Incorrect value
Principal greater than full price
Principal greater than full price
Term: Incorrect value