Program Documentation

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Advertisements

PIIT Computer Science Summer Camp - Alice July 10, 2012 Brenda Parker Computer Science Department MTSU.
Conversation Form l One path through a use case that emphasizes interactions between an actor and the system l Can show optional and repeated actions l.
© Copyright Eliyahu Brutman Programming Techniques Course.
Adobe Forms THE FORM ELEMENT PANEL. Creating a form using the Adobe FormsCentral is a quick and easy way to distribute a variety of forms including surveys.
Visual Basic Chapter 1 Mr. Wangler.
Documentation and Comments. What’s a comment? A comment is a simple form of documentation. Documentation is text that you the programmer write to explain.
Sept. 18, 2003CS WPI1 CS 509 Design of Software Systems Lecture #3 Thursday, Sept. 18, 2003.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Comments, Conditional Statements Continued, and Loops Engineering 1D04, Teaching Session 4.
 What to do if you want to build a new house? › Buy a bunch of wood and nails and start immediately. › Or, put some blueprints to follow, and plan of.
An Introduction to Programming with C++1 An Introduction to Control Structures Tutorial 1.
11 Making Decisions in a Program Session 2.3. Session Overview  Introduce the idea of an algorithm  Show how a program can make logical decisions based.
Use Cases Discuss the what and how of use cases: Basics Examples Benefits Parts Stages Guidelines.
In Education Kirsten Allen Wendy Goldberg Maggie Phillips.
Visual Basic.NET Windows Programming
Understand Problem Solving Tools to Design Programming Solutions
Use Cases Discuss the what and how of use cases: Basics Benefits
Lec-5 : Use Case Diagrams
Computer Software: Programming
Chapter Topics 15.1 Graphical User Interfaces
Apply Procedures to Develop Message, Input, and Dialog Boxes
Unified Modeling Language
Console and GUI Programs
Computer Programming I
UNIT 3 – LESSON 5 Creating Functions.
Understand Problem Solving Tools to Design Programming Solutions
Understand Windows Forms Applications and Console-based Applications
The Process of Object Modeling
Algorithm and Ambiguity
Understand the Programming Process
Chapter 2 Visual Basic Interface
The Red Signal Prohibits Any Traffic From Proceeding.
The Features of a Product or System
C# Programming: From Problem Analysis to Program Design
Use Case Modeling.
VISUAL BASIC.
Decisions, repetition, Code Snippets, Comments, and Intellisense
Tutorial 19 - Microwave Oven Application Building Your Own Classes and Objects Outline Test-Driving the Microwave Oven Application Designing.
CIS16 Application Development Programming with Visual Basic
Using Charts in a Presentation
A Few Review Questions.
HAPPY NEW YEAR! Lesson 7: If-statements unplugged
Documentation Comments in C#.
Global Challenge Night Sensor Lesson 2.
MyFloridaMarketPlace
Building an Application in the Visual Basic .NET Environment
Global Challenge Night Sensor Lesson 2.
Computer Science Testing.
Software Design Lecture : 15.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Use Case Model Use case diagram – Part 2.
Understand the Programming Process
Global Challenge Night Sensor Lesson 2.
Learning Intention I will learn about evaluating a program.
LESSON 1 Module 2: XHTML Basics Basic XHTML.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
GRAPHICAL USER INTERFACE GITAM GADTAULA. OVERVIEW What is Human Computer Interface (User Interface) principles of user interface design What makes a good.
GRAPHICAL USER INTERFACE GITAM GADTAULA KATHMANDU UNIVERSITY CLASS PRESENTATION.
Delete Comments After corrections have been made or you change your mind about something, you might want to delete the comment. Just highlight the comment.
Global Challenge Night Sensor Lesson 2.
You will need to click the login button here
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Running a Java Program using Blue Jay.
Presentation transcript:

Program Documentation Computer Programming I

Objective/Essential Standard Essential Standard: 2.00-Understand the Solution Development Process Indicator: 2.03 Understand Proper Program Documentation, Code Comments, Use Cases, and Requirements Definition (3%) Computer Programming I- Summer 2011 1/2/2019

Documentation Why is it important? Without proper documentation programs do not make sense, especially if you return to them later. Or worse yet, you inherit a program from someone else and have to figure out what it does!

Complexity As a program become more complex documentation becomes more important. A program might be 100,000 lines of code. How would you remember what every single line does? Windows for example is 40,000,000 lines of code!

Comments In programming documenting your code is referred to as commenting. Comments can be on their own line or after a line of code. Comments begin with a ' . Comments will turn the text green. Multiline comments are not supported in VB. Each line of the comment must begin with a ' .

Comment Examples Line comments Do While i < intGradeNum 'while counter is less than number of grades entered run loop Multi-line or Block Comments 'Student Name ‘Name of Program ‘Class Name ‘Date In Visual Studio comments appear in light green text. This text might not show up on all projectors, so all PowerPoints in this course will use red text for commenting.

Expectations Some general rules: Not every line should be commented, but any line that performs an operation should. Any line that cause confusion should be commented. At the top of the program there should be comments on its purpose and scope of the program. Another common comment is a last revised date and version number at the top of the program.

Use Cases Define the interactions between the “actor” and the system. Actor = class of users, roles users play, or other systems. In other words, the actor is any user of the system. The Use Case describes the sequence of steps between the actor (user) and the system necessary to complete a goal. http://www.bredemeyer.com/use_cases.htm#Use Cases

Use Cases A Use Case also includes the alternate ways to complete a goal. Use cases are written in easy to understand language so that users can understand and follow directions. User Manuals are a great example.

Functional Requirements Functional requirements are the functions that the software/system is intended to perform. what the software should do (behaviors) given conditions. Example: If the user clicks on this button, a picture will be displayed and the name of the player will be shown in a new window.

Wrap Up This lesson detailed program documentation, use cases and functional requirements and why they are important. Remember to always comment your programs!