i need to get rid of my error just compile and run
help!!!
it is for adding up monthly income dont copy my idea!!!
help i am n00b
i know alot of stuff is not used it is not even half way done!!
ps it is very messy i have still not cleaned it up
pss my batery is dieing so i have to type fast i deleted a section and cant get it back what i am trying to do is add up the array Bnum HELP!!!!!
help!!!
it is for adding up monthly income dont copy my idea!!!
help i am n00b
i know alot of stuff is not used it is not even half way done!!
ps it is very messy i have still not cleaned it up
pss my batery is dieing so i have to type fast i deleted a section and cant get it back what i am trying to do is add up the array Bnum HELP!!!!!
Code:
import java.util.Scanner;
public class Money {
public static void main(String[] args){
Scanner Scan = new Scanner(System.in);
double Income, Tax, TaxTotal, Bills, OfficeSpace, LeftOver, Bill;
int NBill, i, a, b;
Bills = 0.;
i = 1;
System.out.println("Imput this month's income:");
Income = Scan.nextDouble();
System.out.println("Your current balence is $" + Income );
System.out.println("How much of your income will you save for tax? (percentage, no percentage sign, whole num.)");
Tax = Scan.nextDouble();
System.out.println("$" + Income * (Tax / 100) + " goes to the Unchel Sam.");
TaxTotal = Income * (Tax / 100);
Income = Income - TaxTotal;
System.out.println("Your new current balence is $" + Income );
System.out.println("How many bills do you have?");
NBill = Scan.nextInt();
double[] Bnum = new double[NBill];
Bnum[0] = 0;
do{
System.out.println("how much is value of bill " + i);
Bnum[i] = Scan.nextDouble();
i++;
}while(i <= NBill);
\\ this is deleted part
System.out.println("Your new current value of used money is $" + Bnum);
}
}
Comment