OutPut is supposed to be: Size: 3
first account number is 1008
last account number is 1729
Sub
import...
Type: Posts; User: r19ecua
OutPut is supposed to be: Size: 3
first account number is 1008
last account number is 1729
Sub
import...
Thank you for the assistance. I haven't had time to work on my programming recently, but after taking a look at your advice, I finally found my error!
Behold, the working program of a noobie! ;)...
Could you elaborate? (This is my own program, not an assigned one)
OK, so I'm trying to make a program where you input a number and the program takes its square root. Yes, I realize I could do all this on a main but where is the fun in that? I know I'm close, but...
Thank you guys, I've been programming stuff for hours non-stop hehe. missed an extremely small error!
All of the programs are inside the same SRC folder! It's JcreatorPro/MyProjects/CashRegister/Src/InputTester
JcreatorPro/MyProjects/CashRegister/Src/CashRegister
I don't understand what's...
I don't know what to do about the code however :( I tried recreating the entire thing and it didn't work. Still doesn't work :(
Every time I make a main and a sub I get this error! I always end up messing around with the folders until it works but it doesn't make sense! I always create and save the main within the same sub...
Sub: No errors listed / seen
public class CashRegister {
public CashRegister() {
purchase = 0;
payment = 0;
}
public void recordPurchase(double amount){
purchase = purchase +...
Thank you so much!!!
Sub program
public class CashRegister {
public CashRegister() {
purchase = 0;
payment = 0;
}
public void recordPurchase(double amount){
double purchase = purchase + amount;
}
My name is Rich and I'm just beginning to learn java! I'm currently in college majoring in Electrical Engineering and Computer Science!