<!DOCTYPE>:
<!-- Your Name The course and Program Assignment Number The purpose of the program -->
<!-- Fred J. Doakes CIT041J Assignment 1 Get information from users and manipulate it -->
if (n == 3) {if (n == 3)
{quantityOnHand.DAYS_PER_WEEK.itemsSold.isValid.findUserName( ).a = 2 + (b - 3) * 4;a = b++ - ++c;
(This is a good example of the spacing, but poor example of decent code.
The result of this statement may not be what you think.
Write some code to try and see if you are correct in predicting the final value of a.)var count; // Count temperatures: valid count = count + 1; // Add 1 to count: NOT valid
return statement to return a value,
there will be only ONE return statement in a function,
and it will be the last line in the function.break or continue in loops,
unless required in an assignment
(to make sure you know what they are).break inside a switch
statement, where it is often required.if (x > y){isGreater = true;} else {isGreater = false;}isGreater = x > y;