I'm a super noob, I just learned the rules over the last few days. I'm working on this home work assignment and honest to god I read both chapters and I'm not sure how to even start. If someone can give me a few pointers I'd really appreciate it. I have examples of all the source but I have to go to work like now and I'm not sure how to set up each bullet, but I'll have it done by tongiht. My professor is asking for a program to do the following.The last part about making sure the payment is legitimate I have absolutely no idea how to do.
- The price of the car
- The length of the loan in months
- The estimated percentage interest rate
Use the formula:
payments = (rate * price) / 1 - (1 + rate)^-months
to calculate the payments. Remember that the input value for rate is in percent and need to be divided by 100 and then divided by 12 for each month.
Java does not recognize the ^ for exponentation. You are to research the method to perform exponentation in this language.
Also be aware that the above formula is not 100% correct. Be sure to very that the payment is legitmate before submission.
This doesn't seem like enough information to be able to understand the requirements of the assignment. What have you been learning in class?
I am in the market to purchase a new car. I want you to write me a quick program (dialog boxes optional) that prompts me to enter the following information:
- The price of the car
- The length of the loan in months
- The estimated percentage interest rate
Regarding verifying that the payment is legitimate, in your first programming class we can be sure you aren't being asked to code actual transaction processing software in your first assignment. In other words, it is not like verifying that the payment method is legitimate by connecting to Visa or PayPal. (And certainly not in Java!)
At this level, the task should be a simple mathematical check, so I suggest verifying that the sum of all payments add up to exactly price*[(1+interest rate)^term]. If your equation is right, it should be within a cent.