uh......what now??
you just confused me.........
why don't you edit this for me, I"m scared to mess it up.
so is it y = y +1, or is it totalValue = totalValue + 1
final int M = 1000;
final int D = 500;
final int C = 100;
final int L = 50;
final int X = 10;
final int V = 5;
final int I = 1;
int y = 0;
int index = 0;
int totalValue = 0;
String str;
str = inputBox.getString("Enter a string");
for (index = 0;index < str.length(); index++){
y = str.charAt(index);
outputBox.printLine(y);
if ( y = I){
totalValue = totalValue + 1;
}
break;
else if (y = V){
totalValue = totalValue + 5;
}
else if (y = X){
totalValue = totalValue + 10;
}
else if ( y = C){
totalValue = totalValue + 50;
}
index++;
}}}
you just confused me.........
why don't you edit this for me, I"m scared to mess it up.
so is it y = y +1, or is it totalValue = totalValue + 1
final int M = 1000;
final int D = 500;
final int C = 100;
final int L = 50;
final int X = 10;
final int V = 5;
final int I = 1;
int y = 0;
int index = 0;
int totalValue = 0;
String str;
str = inputBox.getString("Enter a string");
for (index = 0;index < str.length(); index++){
y = str.charAt(index);
outputBox.printLine(y);
if ( y = I){
totalValue = totalValue + 1;
}
break;
else if (y = V){
totalValue = totalValue + 5;
}
else if (y = X){
totalValue = totalValue + 10;
}
else if ( y = C){
totalValue = totalValue + 50;
}
index++;
}}}