Need help with assignment but teacher is out of town

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;
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?
@ OP:
Take a look at your notes; furthermore, take a look at this link:

http://www.cplusplus.com/doc/tutorial/variables/

It could help you to get the answers you seek.
Topic archived. No new replies allowed.