An interpreter translates a program from high-level language into machine language line by line during program execution. For example: grossPay = hours * rate Programs written in high-level languages should be converted into machine languages using interpreters or compilers. High-level languages allow programmers to write programs in a more readable form. Examples: Visual Basic Python Javascript Java C# C C++ PHP Visual Basic is not just a programming language It’s a programming environment with tools to: Create screen elements Write programming language statements High-Level Programming Languages High-level program languages more resemble English language than low-level languages. Assembly languages are low-level languages and are CPU type-dependent.ġ4 Visual Basic is not just a programming language For example, ADD bx, ax In order to execute a program written in Assembly language, the program should be first converted into a machine language program using an Assembler, which is also a program. It is common to see that the mnemonic ADD is used to represent the add operation. Machine languages are low-level programming languages.Īssembly Languages Assembly languages use mnemonics in place of the 0s and 1s in programs. That is, every type of CPU has its own machine language. Example of machine language code: Machine language is CPU type-dependent. The on/off switch status can be represented using binary 1 and 0. Machine Languages Computer hardware consists of microelectronic switches, which can be switched on or off.
The steps in our algorithm must be stated in a form the computer understands The CPU processes instructions as a series of 1’s and 0’s called machine language This is a tedious and difficult format for people Instead, programming languages allow us to use words instead of numbers Software converts the programming language statements to machine language
The information stored in RAM is volatile.Ĩ Secondary Storage A nonvolatile storage medium Contents retained while power is off Hard disk drives are most common Records data magnetically on a circular disk Provides fast access to large amounts of data Optical devices store data on CD’s as pits USB flash memory devices High capacity device plugs into USB port Portable, reliable, and fits easily in a pocketĩ Input Device Any type of device that provides data to a computer from the outside world For example: Keyboard Mouse Scannerġ0 Output Devices Any type of device that provides data from a computer to the outside world Examples of output data: A printed report An image such as a picture A sound Common output devices include: Monitor (display screen) Printer The information held can be input data, computed values, or program instructions, which are represented in combination of 0s or 1s. Is an ordered sequence of storage cells, each capable of holding a piece of data. () The program steps are called an algorithm.ħ Main Memory Commonly referred to as Random Access Memory (RAM) Figure 1-2 shows an example of program steps of a Wage Calculator application. What is a program? A computer program is a set of instructions that enables the computer to solve a problem or perform a task.
Examples: Microsoft Word, Adobe PDF Reader Application software Programs that make the computer useful to the user.
Examples: Windows Vista, Mac OS X, Linux. Two categories of software: Operating system (OS) A set of programs that manage the computer’s hardware devices and control their processes.
Open existing solutionĤ Computer Systems: Computer Hardware and Software HardwareĬentral Processing Unit Input Device Output Device Main Memory Secondary Storageĥ Software Software refers to the programs that run on a computer. Xinhua Chen Starting Out with Visual Basic 2010ģ Topics: Chapter 1 Introduction to Programming and Visual BasicĬomputer hardware and software Programming languages History of Visual Basic Procedural programming and object-oriented programming Event-driven programming model Steps of developing an application Visual Studio 2010 IDE Create and save a solution. Presentation on theme: "Programming with Visual Basic"- Presentation transcript:ĬSCI Programming with Visual Basic Instructor: Bindra Shrestha University of Houston – Clear LakeĢ Acknowledgement Dr.