found it! i think this is right
public class LibraryAccount {
private int bookBal;
private int bookIn;// books checked in variable
private int bookOut;// books checked out...
Type: Posts; User: iamgonge
found it! i think this is right
public class LibraryAccount {
private int bookBal;
private int bookIn;// books checked in variable
private int bookOut;// books checked out...
im making a program a class file with two method a check in and a checkout method. the program calls for this: the balance on your account is 0 then you check out 10 books and then check in 6 the...
so im working on a final project for my intro to java-oop class. We recently made the jump to OOP and its a bit confusing. This program needs to have 1 main class and 3 regular classes. its supposed...
so my class has ust begun oop. We are asked to make a class called Swapper with two integer instances variables x, y and a constructor with two parameters that inirtialize the parameters. Also three...
alright so the last thing i needed to do is rewrite to code so that i can enter values for each question and then have passed to a method for calculation and then passed backed for both to be printed...
Im not sure what you mean by different section, but Ill see what I can find. Your right they must be ways to display this info in a more professional manner
thanks for your help its much appreciated!
thanks again
heres what i got currently
import java.text.DecimalFormat;
import java.util.Scanner;
public class Project1 {
public static void main(String[] args) {
thanks that help alot!! so a few things i dont know how to change the increment like you said to 10 i tried
or (double myPercent = 0; myPercent <=100; myPercent+10 ){ and also tried adding a...
hi Im writing this program its a mortgage calculator. It works by entering data for each question such as down payment. My instructor wants us to change the code with a for loop that calculates...
thank you
i apologize just frustrated I think i figured it
double tempBottom = ((1-(Math.pow(1+(annualInterestRate/12), -numberofPayments))));
my 1+ was in the wrong spot, Norm you were right when i...
forget it im struggling for hours now and all your doing is asking me more questions. thanks for nothing :( its much appreciated
i dont know how to break this line down any further
double tempBottom = ((1-(1+(Math.pow(annualInterestRate/12, -numberofPayments)))));
on paper sure in java no clue
its in bottom expression but i dont know how to fix it thats problem i can break it down all day long but something is wrong please help me!!!!!!!!!!
what will that accomplish i dont get what your trying to do i showed you the formula and i showed you how i broke it down what else needs to be done?
ok when i run this program it asks questions i enter the following
house price = 1000
down payment = 50
interest rate = .05
number of payments 30
top equation: double tempTop = ((housePrice -...
the bottom returns a negative which then turns the final number to a negative monthly payments cant be negative so something is wrong
ok i did the calculations on a calculator and they do equal each other, I bottom number keeps turning back a negative number which i dont think is right.
the formula im supposed to use is written...
ok this what i got i broke the formula into a top and a bottom
then printed out the results: heres the code
import java.util.Scanner;
public class Project1 {
public static void...
im not faqmiliar with this formula i dont know how to break it down in java code so i cant do what your saying are you saying assign this a variable (housePrice - downPayment) then assign this a...
ok changed it still doesnt work please check
import java.util.Scanner;
public class Project1 {
public static void main(String[] args) {
double monthlyPayment= ( ((housePrice - downPayment) * (annualInterestRate/12)) /((1-(1+Math.pow(annualInterestRate/12, -numberofPayments)))));
this is my formula and its not working please help?
so it doesnt seem to be computing correctly i keep getting negative number and they seem quite off, Is my formula wrtitten wrong?
--- Update ---
ok so this my program as of this moment, it runs...
ok tried it didnt work now what( I dont know how to write this code!!!!!!)
heres what i tried
double monthlyPayment= ( ((housePrice - downPayment) * (annualInterestRate/12))...