Code:
else
netWage = hours + payRate;
totWage = hours + payRate;
aveWage = totWage/2;
miniWage = smallest netWage;
Despite your indentation, it's only netWage which is part of the else statement.
If you want all 4 lines to be part of the else, you need braces.
Code:
else {
netWage = hours + payRate;
totWage = hours + payRate;
aveWage = totWage/2;
miniWage = smallest netWage;
}
Until you're absolutely confident in knowing when braces are optional, you don't lose anything by using braces all the time.
Using them all the time gives you one less thing to worry about.
> miniWage = smallest netWage;
This won't work - what is smallest?