Download presentation
Presentation is loading. Please wait.
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.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.