1: INTRODUCTION TO COMPUTING AND PROGRAMMING

1.1 Introduction 1.2 Hardware and Software 1.3 How Computers Store Data 1.4 How a Program Works 1.5 Graphical User Interfaces 1.6 Objects 1.7 The Program Development Process 1.8 Getting Started with the Visual Studio Environment

1.1 Introduction

A program is a set of instructions that a computer follows to perform a task. Programs are commonly referred to as software. Without software, computers cannot do anything.

1.2 Hardware and Software

Hardware refers to all physical devices (CPU Main memory Secondary storage Input Output) The CPU Main Memory Secondary Storage Devices Input Devices Output Devices HW: where programs execute Software is instructions Categorized mainly into system software and application software - System software are programs that control and manage the basic operations of a computer. - Application software are programs that perform special tasks We will create application programs Programming a computer is like instructing a small child how to do something: frustrating, time-consuming, tedious.

1.3 How Computers Store Data

All data stored in a computer is converted to sequence of 0s and 1s called bits Combinations of bits, 0s and 1s, are used to represent characters. Digital and Digital Data There are 10 kinds of people in the world - those that understand binary and those that do not...
What is a positional numbering system? Ever use one?
How many license plates...? Encoding in Binary What is binary and ... WHY did they do this to us??
Byte is basic unit of storage in a computer What is a byte? bit? megabyte?
Name
Abbr.
Size
Kilo
K
2^10 = 1,024
Mega
M
2^20 = 1,048,576
Giga
G
2^30 = 1,073,741,824
Tera
T
2^40 = 1,099,511,627,776
Peta
P
2^50 = 1,125,899,906,842,624
Exa
E
2^60 = 1,152,921,504,606,846,976
Zetta
Z
2^70 = 1,180,591,620,717,411,303,424
Yotta
Y
2^80 = 1,208,925,819,614,629,174,706,176


Context BIG QUESTION: What is the ONLY language a computer understands?
BIGGER QUESTION: How do we tell what ANYTHING is?? It's all just 1's and 0's! Math is an important part of Computer Science!!

1.4 How a Program Works

A program will be read into into memory(RAM) from disk for CPU to execute CPU reads instructions written in machine language (binary code) CPU uses the "fetch-decode-execute" cycle for processing hw Using our hardware "picture", explain how a program executes.

1.5 Graphical User Interface

User interfaces allow users to interact with the computer. Categories are: Command line interface (aka console interface) Graphical user interface (GUI)- now the most commonly used Hello: code, Button, Label, TextBox   Event-driven...

1.6 Objects

Most programming languages use object-oriented programming in which a program component is called an "object" Objects are created from classes. Program objects have properties (or fields) and methods Properties - data stored in an object Methods - the operations an object can perform Controls Objects that are visible in a program GUI are known as controls Commonly used controls are Labels, Buttons, and TextBoxes The .NET Framework The .NET Framework is a collection of classes and other codes that can be used to create programs for Windows operating system

1.7 The Program Development Process

The process of creating a program is known as the programming development cycle. It has six phases: 1. Understand the program purpose I P O 2. Design the GUI use visual objects called controls ex: button 3. Design the program logic algorithm 4. Write the code syntax!! 5. Correct SYNTAX errors 6. Test the program and correct LOGIC and RUN-TIME errors

1.8 Getting Started with the Visual Studio Environment

Visual Studio 2013 is a professional integrated development environment (IDE) The Visual Studio Environment includes: Designer Window Code Window Properties Window Toolbox Solution Explorer Window Projects and Solutions Each Visual Studio application (including Visual C#) you will create is a project A project contains several files. Typically they are Form1.cs, Program.cs, etc. A solution is a container that can hold one or more Visual Studio (including Visual C#) projects Displaying the Designer Displaying the Code Hello: code, Button, Label, TextBox   Projects, Solutions, Folders, Files