programación no1

12

Upload: caty-arambula

Post on 21-Jan-2015

1.067 views

Category:

Education


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Programación no1
Page 2: Programación no1
Page 3: Programación no1

Computer source code is often written by computer programmers. Source code is written in a programming language that usually follows one of two main paradigms: imperative or declarative programming. Source code may be converted into an executable file (sometimes called an executable program or a binary) by a compiler and later executed by a central processing unit. Alternatively, computer programs may be executed with the aid of an interpreter, or may be embedded directly into hardware.

Page 4: Programación no1

Computer programs may be categorized along functional lines: system software and application software. Two or more computer programs may run simultaneously on a single computer, a process known as multitasking.

Page 5: Programación no1
Page 6: Programación no1

A flowchart is a type of diagram, that represents an algorithm or process, showing the steps as boxes of various kinds, and their order by connecting these with arrows. This diagrammatic representation can give a step-by-step solution to a given problem. Data is represented in these boxes, and arrows connecting them represent flow / direction of flow of data. Flowcharts are used in analyzing, designing, documenting or managing a process or program in various fields.

Page 7: Programación no1

A typical flowchart from older to computer science textbooks may have the following kinds of symbols:

Start and end symbols Represented as circles, ovals or rounded rectangles, usually containing the word "Start" or "End", or another phrase signaling the start or end of a process, such as "submit enquiry" or "receive product".

Page 8: Programación no1

Arrows Showing what's called "flow of control" in computer science. An arrow coming from one symbol and ending at another symbol represents that control passes to the symbol the arrow points to.

Page 9: Programación no1

Processing steps Represented as rectangles. Examples: "Add 1 to X"; "replace identified part"; "save changes" or similar.

Page 10: Programación no1

Input/Output Represented as a parallelogram. Examples: Get X from the user; display X.

Page 11: Programación no1

Conditional or decision Represented as a diamond (rhombus). These typically contain a Yes/No question or True/False test. This symbol is unique in that it has two arrows coming out of it, usually from the bottom point and right point, one corresponding to Yes or True, and one corresponding to No or False. The arrows should always be labeled. A decision is necessary in a flowchart. More than two arrows can be used, but this is normally a clear indicator that a complex decision is being taken, in which case it may need to be broken-down further, or replaced with the "pre-defined process" symbol.

Page 12: Programación no1

1. We want to buy "mesh hurricane" to enclose a field. Ask the user the information necessary to calculate and display the perimeter of the rectangular field.

Create Algorithm, FlowShart and Visual C # code.