Apr 28, 2016 at 12:42am UTC
Explain why each of the declarations in the second list are wrong.
1. boolean gameOver = false;
int students=50, classes=3;
double sales_tax;
short number1;
2. int 2beOrNot2be;
float price index;
double lastYear'sPrice;
long class;
Explain why each of the declarations in the second list do not follow conventions for
variable names.
1. int cadence=3, speed=55,
gear=4;
final double SALES_TAX=.06;
double gearRatio=.5;
int currentGear=5;
2. int c=3, s=55, g=4;
final double salesTax=.06;
double gearratio=.05, Gear=4;
int current_gear;
Apr 28, 2016 at 6:00am UTC
Is it really so that the teacher has only spoken about the topic of these questions?
The topic is not mentioned in any study material?
You did not make notes?
You did not listen?
What are "conventions for variable names " anyway?