Search:

Type: Posts; User: iamgonge

Page 1 of 2 1 2

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,037

    Re: not sure how to pass this value

    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...
  2. Replies
    3
    Views
    1,037

    not sure how to pass this value

    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...
  3. Final Project using OOP not sure if im following proper design

    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...
  4. Replies
    2
    Views
    1,175

    swapping integers OOP

    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...
  5. Replies
    7
    Views
    1,127

    Re: Getting confused need to add a for loop

    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...
  6. Replies
    7
    Views
    1,127

    Re: Getting confused need to add a for loop

    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!
  7. Replies
    7
    Views
    1,127

    Re: Getting confused need to add a for loop

    thanks again
    heres what i got currently



    import java.text.DecimalFormat;
    import java.util.Scanner;

    public class Project1 {
    public static void main(String[] args) {
  8. Replies
    7
    Views
    1,127

    Re: Getting confused need to add a for loop

    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...
  9. Replies
    7
    Views
    1,127

    Getting confused need to add a for loop

    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...
  10. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    thank you
  11. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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...
  12. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    forget it im struggling for hours now and all your doing is asking me more questions. thanks for nothing :( its much appreciated
  13. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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
  14. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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!!!!!!!!!!
  15. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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?
  16. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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 -...
  17. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    the bottom returns a negative which then turns the final number to a negative monthly payments cant be negative so something is wrong
  18. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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...
  19. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    no
  20. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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...
  21. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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...
  22. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    ok changed it still doesnt work please check





    import java.util.Scanner;

    public class Project1 {
    public static void main(String[] args) {
  23. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    double monthlyPayment= ( ((housePrice - downPayment) * (annualInterestRate/12)) /((1-(1+Math.pow(annualInterestRate/12, -numberofPayments)))));

    this is my formula and its not working please help?
  24. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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...
  25. Replies
    38
    Views
    2,681

    Re: Monthly mortgage payment calculator

    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))...
Results 1 to 25 of 39
Page 1 of 2 1 2