1 Tutorial 1 Graphing Application Introducing Computers the




















- Slides: 20

1 Tutorial 1 - Graphing Application Introducing Computers, the Internet and Visual Basic. NET Outline 1. 1 What Is a Computer? 1. 2 Computer Organization 1. 3 Machine Languages, Assembly Languages and High-Level Languages 1. 4 Visual Basic. NET 1. 5 Other High-Level Languages 1. 6 Structured Programming 1. 7 Key Software Trend: Object Technology 1. 8 The Internet and the World Wide Web 1. 9 Introduction to Microsoft. NET 1. 10 Test-Driving the Visual Basic. NET Graphing Application 1. 11 Internet and Web Resources 1. 12 Wrap-Up 2003 Prentice Hall, Inc. All rights reserved.

2 Objectives • In this tutorial, you will learn to: – Identify the characteristics of low-level and high-level programming languages. – Apply the basics of object-oriented programming. – Run your first Visual Basic. NET application. – Locate additional. NET and Visual Basic. NET information. 2003 Prentice Hall, Inc. All rights reserved.

3 1. 1 What Is a Computer? • Types of computers – Personal computer – Supercomputer • Parts of a computer – Hardware – Software 2003 Prentice Hall, Inc. All rights reserved.

4 1. 2 Computer Organization • Input unit – Input devices • Output unit – Output devices • Memory unit – Memory versus primary memory – Volatile • Arithmetic and logic unit – Performs calculation – Determines logic • Central processing unit – Administrative section 2003 Prentice Hall, Inc. All rights reserved.

5 1. 2 Computer Organization • Secondary storage unit – Long-term – High capacity storage – Compared to primary memory 2003 Prentice Hall, Inc. All rights reserved.

1. 3 Machine Languages, Assembly Languages and High-Level Languages • Machine language – “Natural language” – Machine dependent • Assembly language – Machine language too slow – English-like abbreviation – Assemblers • High-level language – The importance of the compilers – Write instructions that look like everyday English 2003 Prentice Hall, Inc. All rights reserved. 6

7 1. 4 Visual Basic. NET • BASIC – Beginner’s All-Purpose Symbolic Instruction Code • Visual Basic – Evolved from BASIC – Graphical user interface • Visual Basic. NET – Visual programming • Integrated Development Environment – Object oriented style of programming – Event driven 2003 Prentice Hall, Inc. All rights reserved.

8 1. 5 Other High-Level Languages • Fortran – Developed in mid-1950 s – For scientific and engineering applications • COBOL – Developed in late 1950 s – Business software • The C language – Object-oriented programming • Reusable software components • Java – Dynamic content for Web pages – Sun Microsystems 2003 Prentice Hall, Inc. All rights reserved.

9 1. 6 Structured Programming • Evolution of structured programming – Clearer and easy to modify – Pascal • Designed for teaching structured programming • Lacked many features – Ada programming language • Develop with sponsorship of the U. S. Department of Defense 2003 Prentice Hall, Inc. All rights reserved.

10 1. 7 Key Software Trend: Object Technology • Object technology – Any noun as a software object – Objects have properties – Objects perform actions • Classes – Related objects – Focus on the “big picture” 2003 Prentice Hall, Inc. All rights reserved.

11 1. 8 The Internet and the World Wide Web • Advanced Research Projects Agency – Networking together computer systems – ARPAnet • Today’s internet – Transmission Control Protocol • Sending and receiving packets – Internet Protocol • “Network of networks” • World Wide Web – Collection of hardware and software – Hyper. Text Markup Language 2003 Prentice Hall, Inc. All rights reserved.

12 1. 9 Introduction to Microsoft. NET • . NET initiative – Internet and Web development – Software reuse –. NET Framework • Framework Class Library 2003 Prentice Hall, Inc. All rights reserved.

1. 10 Test-Driving the Visual Basic. NET Graphing Application • Opening the application – Locate the directory – Double click the executable file 2003 Prentice Hall, Inc. All rights reserved. 13

1. 10 Test-Driving the Visual Basic. NET Graphing Application Figure 1. 1 Contents of C: ExamplesTutorial 01 Double click this file to execute the application 2003 Prentice Hall, Inc. All rights reserved. 14

1. 10 Test-Driving the Visual Basic. NET Graphing Application • Controls – Graphical elements 2003 Prentice Hall, Inc. All rights reserved. 15

16 1. 10 Test-Driving the Visual Basic. NET Graphing Application Figure 1. 2 A Visual Basic. NET Graphing application. Labels Group. Boxes Text. Boxes Button MSChart Control Radio. Buttons 2003 Prentice Hall, Inc. All rights reserved.

1. 10 Test-Driving the Visual Basic. NET Graphing Application • Changing the sales data – Type 65 in the Text. Box labeled Missouri: – 35 in the Text. Box labeled Texas: – 53 in the Text. Box labeled Illinois: – 46 in the Text. Box labeled Indiana: • Changing the type of graph – Click Graph Button to update the graph 2003 Prentice Hall, Inc. All rights reserved. 17

1. 10 Test-Driving the Visual Basic. NET Graphing Application Figure 1. 3 New values create a new graph. 2003 Prentice Hall, Inc. All rights reserved. 18

1. 10 Test-Driving the Visual Basic. NET Graphing Application • Selecting the three-dimensional graph option – Click the 3 D Graph Radio. Button – Properties of a Radiobutton • Updating the graph – Click the Graph Button – New graph in three-dimensional view 2003 Prentice Hall, Inc. All rights reserved. 19

1. 10 Test-Driving the Visual Basic. NET Graphing Application Figure 1. 4 Three-dimensional graph. 2003 Prentice Hall, Inc. All rights reserved. Close box 20