Hey thanks for replying :)
I typed in : 3 Smith 70 Jones 30 Mary 100
The order entered should be numberOfStudents name[0] score[0] name[1] score[1] name[2] score[2]
I'm giving it an integer,...
Type: Posts; User: Bryan29
Hey thanks for replying :)
I typed in : 3 Smith 70 Jones 30 Mary 100
The order entered should be numberOfStudents name[0] score[0] name[1] score[1] name[2] score[2]
I'm giving it an integer,...
Hello,
I posted this program last night and got help with the sorting of the arrays, but I still get an error whenever I try and run it. There is something wrong with the input portion of my code...
Thanks a lot for the help and explanation :) The input is like that because it needs to look a certain way in order to go through as correct on his website where we turn these in.
I switched it...
Hello,
I'm a beginner in Java and am having trouble putting this program exercise together / I think I got it and I may have just messed up somewhere along the lines.
The program is to prompt...
I copied that code from an even number example done by my professor, posted on his site. It has to be right..
Could the interest variable that is involved in the loop be affecting it?
Loan Amount: 10000
Number of Years: 5
Interest Rate Monthly Payment Total Payment
5.0/// / 50000.0--- 3000000.0
5.125// 51250.0--- 3075000.0
5.25/// 52500.0--- 3150000.0
5.375// ...
My new code:
import java.util.Scanner;
public class Exercise04_21 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
The formula is:
(loanAmount * monthlyInterestRate) / 1 - (1 / (1 + monthlyInterestRate)^numberOfYears*12)
, copied from the book. I entered it in using several different variables and 1 long...
Hello, I'm trying to make a program that compares loans with interest rates from 5% - 8%, with an increment of 1/8.
The output should look something like:
Loan Amount: 10000
Number of Years: 5...