Here is the "calculation" portion of the code:
int tempLeft = sum/perTerm; //Calculates number of terms left
int termLeft = 0;
if ((tempLeft % 4) == 0){
...
Type: Posts; User: mrivera85
Here is the "calculation" portion of the code:
int tempLeft = sum/perTerm; //Calculates number of terms left
int termLeft = 0;
if ((tempLeft % 4) == 0){
...
My apologies - here's the output:
Welcome to the Western Governor's University Graduation Planner!
We will calculate the number of terms you have left until graduation,
along with the amount...
The actual computations aren't working properly when it comes to the remainder. Specifically the variable termLeft. Any suggestions?
package graduationplanner;
import java.util.Scanner;...
Thanks - I guess because the output began with the next question and the error was also in the next section, I just assumed it had to do with that one, not the previous one. When I removed the whole...
The only data type I'm using is int - so I don't see where this error is coming from. I use the same format in a previous section and I get no errors.
package graduationplanner;
import...
The error I get is for the line:
sum = sum + Integer.parseInt(leftCU.get(i));
leftCu.get(i) is highlighted with an error of: incompatible types: Integer cannot be converted into a String.
I...
Goal is to get user input and sum together. I've tried it different ways. This is the one with the least amount of problems.
Exception in thread "main" java.lang.RuntimeException: Uncompilable...
output:
Welcome to the Western Governor's University Graduation Planner!
We will calculate the number of terms you have left until graduation,
along with the amount of tuition you have left to...
I'm writing basically my first program for school. I've written small ones, following instructions, but this is the most vague. I'm having issues. I can't figure out what the error means. I'm not...