Chapter03 Slides

Chapter03 Slides - Chapter 3: Writing Programs First You...

Info iconThis preview shows pages 1–13. Sign up to view the full content.

View Full Document Right Arrow Icon
Opportunity Click to edit Master subtitle style Chapter 3: Writing Programs First You Walk, Then You Run MIS 304: Introduction to Problem Solving and Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
You will learn how to… Describe the programming sequence using the acronym, IPO Compare controls, events and properties to nouns, verbs and adjectives Add comments and program headers to describe code Properly format numeric output
Background image of page 2
You will learn how to… Describe and distinguish between syntax, logical and runtime errors Use properties at design time and runtime to modify controls Convert input and data between various data types
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
You will learn how to… Complete the entire programming process from problem definition, algorithm development, flowcharting, form design and coding Debug a program using an audit
Background image of page 4
Not that kind of IPO… Declarations, Input, Processing, Output Input provides for changes Processing makes changes properties changes values in variables change calculations are made Output is the results of the changes
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Errors in Your Program Most programs have errors in them Most programs will crash Programming errors fall into three categories Logical errors Syntax errors Runtime errors
Background image of page 6
Syntax Errors Computer doesn’t understand the command Spelling or grammatical errors Displays blue, squiggly line under the code Blue line usually, but not always, displays the location of an error Program won’t run with a syntax error Syntax Error
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Logic Errors Code doesn’t do what you think it should Syntax works – code compiles Output is wrong Potential Sources Errors in thinking Steps in the wrong order Steps missing Wrong formula
Background image of page 8
Runtime Errors Program crashes Many causes Human error is the most common Empty TextBox Unexpected input (Ex. abc or 1.3 for quantity) Divide by zero Stack overflow (data type too small) Use error checking methods to prevent runtime errors
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Runtime Error in VS
Background image of page 10
Controlling Your Controls Goal of the developer is to make computing easier for the user Often means more work for a developer The better the interface, the better the user experience
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Controlling Your Controls Change the StartPosition property to CenterScreen Change the Size property to make the Width = 500 and the Height = 400 Change the Icon property by adding the lighton.ico icon to it Change the BackColor of the form Change the FormBorderStyle to
Background image of page 12
Image of page 13
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/29/2010 for the course MIS 304 taught by Professor Mote during the Fall '08 term at University of Texas.

Page1 / 42

Chapter03 Slides - Chapter 3: Writing Programs First You...

This preview shows document pages 1 - 13. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online