Presentation is loading. Please wait.

Presentation is loading. Please wait.

Rectangle 1 and 2.

Similar presentations


Presentation on theme: "Rectangle 1 and 2."— Presentation transcript:

1 Rectangle 1 and 2

2 Program Requirements IDOC and EBC (End Brace Comment).
Project/File Name (in IDOC) - Rectangle1008 Add using namespace. Prompt and input on the same line. Descriptive name of variables. Assign the area to a variable. Follow naming conventions. Comment for the declaration, input, processing, and output parts of the program. Output exactly like my output. Copy and pasting code from a previous program - automatic 0. Automatic 0 if you didn't get permission from a student that is used in your program.

3

4 Required Output – Program Output

5 Clearly Not the Required Output - 0 credit

6 Identifiers - Descriptive
This program is about a rectangle. Rectangles have lengths and widths. Even side1 and side2 would work but not be as descriptive. The you are finding area. system(“pause”); //missing

7 Descriptive Identifiers

8 Calculations with Descriptive Identifiers

9 Missing End Brace Comment EBC

10 Identifier Naming Convention

11 Style - Spacing

12 Style – Breaking Ouput to Multiple Lines
NOT SO GOOD

13 Use a blank line to break sections
Style – White Space White Space Use a blank line to break sections Never more than 2 blank lines – Try to use 1 blank line. White Space Inconsistent Style

14 Style


Download ppt "Rectangle 1 and 2."

Similar presentations


Ads by Google