Assignment9 C++Assign09_Start/2618 Coding Standards.doc COMP 2618 Coding Standards The purpose of this document is to provide you with a set of standards to follow when writing any code for this course. When you work for a software development company, do not be surprised if on your first day, you receive a coding standards document. There is no correct standard per se. Rather, it is more important to follow some standard so that the code you write looks and reads similarly to your teammates'. Depending on the standard, it also promotes more readable code. Default Data Type (avoid) In C++, the default data type, if none is specified, is int. Always specify the data type, even for int. Main function main()’s return type shall always be int and upon successful completion of the program, the return value is zero, otherwise, it is non-zero. Constant Names Constant names shall be all in uppercase with underscores to separate each word of the name. Examples are: MAX_NAME_LENGTH, PROGRAM_VERSION, DEFAULT_PROMPT. Variable, Class, Member Function and Global Function Names Names shall be descriptive (names such as i and x are not permitted in this course). Variable, class, member function and global function names use capital letters in the middle to increase readability of compound identifiers, e.g. numberOfTimes. Class names shall start with a capital letter. Class names are singular nouns. Simple mutator methods should be named as setSomething(…). Simple accessor methods should be named getSomething(…). Accessor methods with Boolean return values should be called isSomething(…) – for example, isEmpty(). Spacing Use blank space judiciously so as to maximize the readability of the code. Use a space around operators. White space is good! Tabbing Tabs shall always be exactly 4 characters wide. (This is the default for the Microsoft Visual C++ IDE.) Tabs shall be used to indent the entire contents of any block. (A block is any code...