Search:

Type: Posts; User: 07.350

Page 1 of 2 1 2

Search: Search took 0.42 seconds.

  1. Thread: Object help

    by 07.350
    Replies
    16
    Views
    274

    Re: Object help

    I tried that and it's still not pulling the user input



    {
    // Class Level Variables (Data Fields / Properties)
    public static double principalAmount;
    public static double interestRate;...
  2. Thread: Object help

    by 07.350
    Replies
    16
    Views
    274

    Re: Object help

    I'm just confused on how to write the getter method..
  3. Thread: Object help

    by 07.350
    Replies
    16
    Views
    274

    Re: Object help

    I think I have it, except when the program compiles I am just getting 0.0 for the output. The current output is doing

    Enter Loan Amount: 12
    Enter Yearly Interest Rate (1 to 100 percent): 23...
  4. Thread: Object help

    by 07.350
    Replies
    16
    Views
    274

    Re: Object help

    Here's what I have, hopefully this works.

    InterestCalculator class


    public class InterestCalculator7
    {
    // Class Level Variables (Data Fields / Properties)
    public double principalAmount;...
  5. Thread: Object help

    by 07.350
    Replies
    16
    Views
    274

    Re: Object help

    The current output looks like this

    Enter Loan Amount: 10
    Enter Yearly Interest Rate (1 to 100 percent): 10
    Enter the Term (in months): 10
    Enter Interest Calculation Type (1 – Simple, 2 –...
  6. Thread: Object help

    by 07.350
    Replies
    16
    Views
    274

    Re: Object help

    This is the correct output is supposed to be

    Enter loan amount: 1375
    Enter yearly interest rate (0 to 100 percent): 1.175
    Enter the term in number of months: 7
    Enter Interest Calculation Type...
  7. Thread: Object help

    by 07.350
    Replies
    16
    Views
    274

    Object help

    I'm making a program and I can't get it to display the results properly in the displayInterest method in the InterestCalculatorTest class.

    InterestCalculator7 Class


    public class...
  8. Re: Single dimension array to multidimension array

    yes, sorry!
  9. Re: Single dimension array to multidimension array

    It's the third last method


    /** Sort by simple interest **/
    public static void sortBySimple(double[][] arrPrincipalAmt ,double[][] arrInterestRate, double[][] arrTerm, double[][] arrSimple,...
  10. Re: Single dimension array to multidimension array

    It would be sorted by the row.


    [Line #] [Principal Amount] [Interest Rate] [Term] [Simple Interest][Compound Monthly] [Compound Weekly][Compound Daily]
    1 $1375.0 1.175% 7 $9.42448 $9.45221...
  11. Single dimension array to multidimension array

    I'm trying to convert my single dimensional array into a multidimensional array [5][7]. I know I have to convert my methods sortBySimpleInterest and displayInterest to accept a single...
  12. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    I'm just confused on how to take the users input for the principal amount, interest rate, and term to the other method..

    /** Get calculation type **/
    public static double...
  13. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    Is there a certain way I need to save the users input to use for the other methods
  14. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    I have a switch statement

    switch(type)
    {
    case 1: displayInterest(principle,interest,term,"Simple",round((calculateSimpleInterest(principle, interest,...
  15. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    I have the getPrincipalAmount, getInterestRate, getCalculationType, and getTerm methods correct. I'm working on the askYesNo method now.. Also when the user enters in the data for getPrincipalAmount,...
  16. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    Thanks for your help!
  17. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    Sorry, when I'm in the main and call the for the method, how would I make the method go ahead and ask for the principal amount instead of putting in the principal amount get in the method how would I...
  18. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    When I do that


    /** Get principal amount **/
    public static double getPrincipalAmount(double numb1) {
    System.out.print("Enter Loan Amount: ");
    double numb1 = input.nextdouble();...
  19. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Re: Method Help

    Is there a way I can implement that in my method instead of having to ask that in the main?
  20. Thread: Method Help

    by 07.350
    Replies
    17
    Views
    225

    Method Help

    I'm creating three new methods in my code; getPrincipalAmount (acquire principal amount from the user and validate it) , getInterestRate (acquire interest rate from the user and validate it), getTerm...
  21. Replies
    17
    Views
    293

    Re: Java Method Help

    I got it to work! Thanks for your help and baring with me!
  22. Replies
    17
    Views
    293

    Re: Java Method Help

    When I type in String it doesn't recognize it as a string variable.
  23. Replies
    17
    Views
    293

    Re: Java Method Help

    Would I define it was a char or string? That's what I'm confused about
  24. Replies
    17
    Views
    293

    Re: Java Method Help

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    a cannot be resolved to a variable
    Monthly cannot be resolved to a variable
    Syntax error on token "Compounded",...
  25. Replies
    17
    Views
    293

    Re: Java Method Help

    Sorry, it won't compile but the error is the method displayInterest(double,double, double, char,double) in the type InterestCalculator4 is not applicable for the arguments (double, double,double,...
Results 1 to 25 of 31
Page 1 of 2 1 2