1 / 26

Input Process Output

1. Input Process Output. Programming Right from the Start with Visual Basic .NET 1/e. Objectives. Distinguish between logic and syntax Understand and use the input statement Understand and use the assignment statement Understand and use the output statement. Objectives (cont.).

Télécharger la présentation

Input Process Output

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1 InputProcessOutput Programming Right from the Start with Visual Basic .NET 1/e

  2. Objectives • Distinguish between logic and syntax • Understand and use the input statement • Understand and use the assignment statement • Understand and use the output statement

  3. Objectives (cont.) • Understand and use arithmetic operators with precedence • Successfully write program solutions that require input, processing, and output

  4. 1-1 Logic and Syntax • A computer program is a solution to a problem. • An algorithm is the logical design used to accomplish a specific objective. • The Visual Logic DevelopmentSystem combines the utility of flowcharts and pseudocode with computer simulation.

  5. 1-1 Logic and Syntax (cont.) • Syntax refers to the specific rules of a programming language. • An information system is a combination of people and technology that collect, organize, and process data to produce information.

  6. 1-1 Logic and Syntax (cont.) • An information system must do at least three things: • input data into the system • process data within the system • output resulting information from the system

  7. 1-2 “Hello World”

  8. 1-2 “Hello World” (cont.)

  9. 1-2 “Hello World” (cont.)

  10. 1-3 Input Statements • An input statement accepts data from the user and stores that data into a variable. • A variable is a storage location that can be accessed and changed by developer code.

  11. 1-3 Input Statements (cont.)

  12. 1-3 Input Statements (cont.)

  13. Simple Programming Formats

  14. The weekly paycheck program has two input variables: Hours and Rate 1-4 Weekly Paycheck Program

  15. The assignment statement can be used to perform a calculation and store the result. An expression is a value-returning code element, such as a variable or mathematical formula. 1-5 Assignment Statements

  16. How to WriteArithmetic Expressions

  17. How to WriteArithmetic Expressions (cont.)

  18. 1-6 Output Statements • Types of output include • Screen output • Printed output • Sound output • Saving to storage devices

  19. 1-6 Output Statements (cont.)

  20. 1-6 Output Statements (cont.)

  21. Intrinsic Functions • Intrinsic functions are predefined commands that provide developers with common, helpful functionality.

  22. Intrinsic Functions (cont.)

  23. 1-7 Debugging withVisual Logic • A programming mistake is often called a bug.

  24. Chapter Summary • Variables are storage locations used for holding input and processing information. • Each variable has two components: its name and its value. • Input statements are used to get data into variables. • Expressions are value-returning code elements.

  25. Chapter Summary (cont.) • Assignment statements are used to perform calculations and store the result. • Output statements are used to display information. • Input, assignment, and output statements are sufficient to write small programs.

  26. 1 InputProcessOutput Programming Right from the Start with Visual Basic .NET 1/e

More Related