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;...
Type: Posts; User: 07.350
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;...
I'm just confused on how to write the getter method..
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...
Here's what I have, hopefully this works.
InterestCalculator class
public class InterestCalculator7
{
// Class Level Variables (Data Fields / Properties)
public double principalAmount;...
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 –...
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...
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...
It's the third last method
/** Sort by simple interest **/
public static void sortBySimple(double[][] arrPrincipalAmt ,double[][] arrInterestRate, double[][] arrTerm, double[][] arrSimple,...
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...
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...
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...
Is there a certain way I need to save the users input to use for the other methods
I have a switch statement
switch(type)
{
case 1: displayInterest(principle,interest,term,"Simple",round((calculateSimpleInterest(principle, interest,...
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,...
Thanks for your 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...
When I do that
/** Get principal amount **/
public static double getPrincipalAmount(double numb1) {
System.out.print("Enter Loan Amount: ");
double numb1 = input.nextdouble();...
Is there a way I can implement that in my method instead of having to ask that in the main?
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...
I got it to work! Thanks for your help and baring with me!
When I type in String it doesn't recognize it as a string variable.
Would I define it was a char or string? That's what I'm confused about
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",...
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,...