Free Essay

Qbasic

In:

Submitted By apekshya
Words 917
Pages 4
REM PROGRAM TO CALCULATE PROFIT
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
P = SP - CP
PRINT “PROFIT AMOUNT=”; P
END

USING SUB PROCEDURE

DECLARE SUB PROFIT (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
CALL PROFIT(CP, SP)
END

SUB PROFIT(CP, SP)
P = SP - CP
PRINT “PROFIT AMOUNT=”; P
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION PROFIT (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
PRINT “PROFIT AMOUNT=”; PROFIT(CP, SP)
END

FUNCTION PROFIT(CP, SP)
P = SP – CP
PROFIT = P
END FUNCTION

49. calculate loss

REM PROGRAM TO CALCULATE LOSS
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
L = CP - SP
PRINT “LOSS AMOUNT=”; L
END

USING SUB PROCEDURE

DECLARE SUB LOSS (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
CALL LOSS(CP, SP)
END

SUB LOSS (CP, SP)
L = CP - SP
PRINT “LOSS AMOUNT=”; L
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION LOSS (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
PRINT “LOSS AMOUNT=”; LOSS(CP, SP)
END

FUNCTION LOSS (CP, SP)
L = CP – SP
LOSS = P
END FUNCTION

50. calculate profit percentage

REM PROGRAM TO CALCULATE PROFIT PERCENTAGE
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
PP = ((SP – CP) / CP) * 100
PRINT “PROFIT PERCENTAGE=”; PP
END

USING SUB PROCEDURE

DECLARE SUB PROFITP (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
CALL PROFITP(CP, SP)
END

SUB PROFITP (CP, SP)
PP = ((SP – CP) / CP) * 100
PRINT “PROFIT PERCENTAGE=”; PP
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION PROFITP (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
PRINT “PROFIT PERCENTAGE=”; PROFITP(CP, SP)
END

FUNCTION PROFITP(CP, SP)
PP = ((SP – CP) / CP) * 100
PROFIT = PP
END FUNCTION

51. calculate loss percentage

REM PROGRAM TO CALCULATE LOSS PERCENTAGE
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
LP = ((CP – SP) / CP) * 100
PRINT “LOSS PERCENTAGE=”; LP
END

USING SUB PROCEDURE

DECLARE SUB LOSSP (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
CALL LOSSP(CP, SP)
END

SUB LOSSP (CP, SP)
LP = ((CP – SP) / CP) * 100
PRINT “LOSS PERCENTAGE=”; LP
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION LOSSP (CP, SP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER SELLING PRICE”; SP
PRINT “LOSS PERCENTAGE=”; LOSSP(CP, SP)
END

FUNCTION LOSSP (CP, SP)
LP = ((CP – SP) / CP) * 100
LOSS = LP
END FUNCTION

52. calculate selling price where profit percentage and cost price is given

REM PROGRAM TO CALCULATE SELLING PRICE WHERE PROFIT PERCENTAGE AND COST PRICE IS GIVEN
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER PROFIT PERCENTAGE”; PP
SP = CP * (100 + PP) / 100
PRINT “SELLING PRICE=”; SP
END

USING SUB PROCEDURE

DECLARE SUB SELLINGP (CP, PP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER PROFIT PERCENTAGE”; PP
CALL SELLINGP(CP, PP)
END

SUB SELLINGP(CP, PP)
SP = CP * (100 + PP) / 100
PRINT “SELLING PRICE=”; SP
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION SELLINGP (CP, PP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER PROFIT PERCENTAGE”; PP
PRINT “SELLING PRICE=”; SELLINGP(CP, PP)
END

FUNCTION SELLINGP(CP, PP)
SP = CP * (100 + PP) / 100
SELLINGP = SP
END FUNCTION

53. calculate selling price where loss percentage and cost price is given

REM PROGRAM TO CALCULATE SELLING PRICE WHERE LOSS PERCENTAGE AND COST PRICE IS GIVEN
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER LOSS PERCENTAGE”; LP
SP = CP * (100 - LP) / 100
PRINT “SELLING PRICE=”; SP
END

USING SUB PROCEDURE

DECLARE SUB SELLINGP (CP, LP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER LOSS PERCENTAGE”; LP
CALL SELLINGP(CP, LP)
END

SUB SELLINGP(CP, LP)
SP = CP * (100 - LP) / 100
PRINT “SELLING PRICE=”; SP
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION SELLINGP (CP, LP)
CLS
INPUT “ENTER COST PRICE”; CP
INPUT “ENTER LOSS PERCENTAGE”; LP
PRINT “SELLING PRICE=”; SELLINGP(CP, LP)
END

FUNCTION SELLINGP(CP, LP)
SP = CP * (100 - LP) / 100
SELLINGP = SP
END FUNCTION

54. calculate cost price where loss percentage and selling price is given

REM PROGRAM TO CALCULATE COST PRICE WHERE LOSS PERCENTAGE AND SELLING PRICE IS GIVEN
CLS
INPUT “ENTER SELLING PRICE”; SP
INPUT “ENTER LOSS PERCENTAGE”; LP
CP = (SP * 100) / (100 – LP)
PRINT “COST PRICE=”; CP
END

USING SUB PROCEDURE

DECLARE SUB COSTP (SP, LP)
CLS
INPUT “ENTER SELLING PRICE”; SP
INPUT “ENTER LOSS PERCENTAGE”; LP
CALL COSTP(SP, LP)
END

SUB COSTP(SP, LP)
CP = (SP * 100) / (100 – LP)
PRINT “COST PRICE=”; CP
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION COSTP (SP, LP)
CLS
INPUT “ENTER SELLING PRICE”; SP
INPUT “ENTER LOSS PERCENTAGE”; LP
PRINT “COST PRICE=”; COSTP(SP, LP)
END

FUNCTION COSTP(SP, LP)
CP = (SP * 100) / (100 – LP)
COSTP = CP
END FUNCTION

55. calculate cost price where profit percentage and selling price is given

REM PROGRAM TO CALCULATE COST PRICE WHERE PROFIT PERCENTAGE AND SELLING PRICE IS GIVEN
CLS
INPUT “ENTER SELLING PRICE”; SP
INPUT “ENTER PROFIT PERCENTAGE”; PP
CP = (SP * 100) / (100 + PP)
PRINT “COST PRICE=”; CP
END

USING SUB PROCEDURE

DECLARE SUB COSTP (SP, PP)
CLS
INPUT “ENTER SELLING PRICE”; SP
INPUT “ENTER PROFIT PERCENTAGE”; PP
CALL COSTP(SP, LP)
END

SUB COSTP(SP, PP)
CP = (SP * 100) / (100 + PP)
PRINT “COST PRICE=”; CP
END SUB

USING FUNCTION PROCEDURE

DECLARE FUNCTION COSTP (SP, PP)
CLS
INPUT “ENTER SELLING PRICE”; SP
INPUT “ENTER PROFIT PERCENTAGE”; PP
PRINT “COST PRICE=”; COSTP(SP, PP)
END

FUNCTION COSTP(SP, PP)
CP = (SP * 100) / (100 + PP)
COSTP = CP
END FUNCTION

Similar Documents

Premium Essay

Iqbal Jabed

...[pic][pic] Objective:  To pursue a challenging career at top-level management and utilize my skills and experiences to make extensive contribution to company’s long-term goal. Basic Personal Information: • Name : Md Iqbal Jabed • Father’s Name : Late Md Faridul Alam • Mother’s Name : Nur Banu • Date of Birth : June 20, 1990 • Present Address : House # shah asad ali bari, P.O : North Kattaly(4217) , P.S : Akbor shah, Chittagong, Bangladesh • Permanent Address : House # shah asad ali bari, P.O : North Kattaly(4217) , P.S : Akbor shah, Chittagong , Bangladesh • Telephone Number : +8801813728063 • E-mail Address : jabed_fbi@yahoo.com , jabedfbi@gmail.com • Nationality : Bangladeshi (By Birth) • Religion : Islam (Sunni) • Marital Status : Unmarried • Language Known : Bengali, Fluent in English • Fields of Interest : Advanced IT, Music, Books, Cricket etc. • Category of Present Job : Information Technology Academic Qualifications: ✓ Graduation : BBA in Finance GPA : 3.55 Department : Finance University : Premier University Chittagong ✓ Higher Secondary Certificate(H.S.C) College : North kattaly Alhaj Mustafa Hakim Degree College Department : commerce Passing year : 2008 ...

Words: 294 - Pages: 2

Free Essay

Basics of Dos

...Basic overview of MS-DOS commands http://www.computerhope.com/overview.htm MS-DOS and command line overview Below is a listing of each of the MS-DOS commands currently listed on Computer Hope and a brief explanation of what each of the commands do. The below commands are all MS-DOS commands, which means not all the below commands will work in your version of MS-DOS or Windows command line. Clicking on the command will open the help page for that command with full details about it. Command ansi.sys append arp assign assoc at atmadm attrib batch bootcfg break cacls call cd chcp chdir chdsk chkntfs choice cls Description Defines functions that change display graphics, control cursor movement, and reassign keys. Causes MS-DOS to look in other directories when editing a file or running a command. Displays, adds, and removes arp information from network devices. Assign a drive letter to an alternate letter. View the file associations. Schedule a time to execute commands or programs. Lists connections and addresses seen by Windows ATM call manager. Display and change file attributes. Recovery console command that executes a series of commands in a file. Recovery console command that allows a user to view, modify, and rebuild the boot.ini Enable and disable CTRL + C feature. View and modify file ACL's. Calls a batch file from another batch file. Changes directories. Supplement the International keyboard and character set information. Changes directories. Check the hard drive...

Words: 1535 - Pages: 7

Free Essay

Computers Senciec

...Address : Amman – Jordan Telephone : 00962796967704 Date of Birth : 20 June 1982 Civil state : married   Education  Secondary High School Section Sicence From Mutah High School BSC in Computer Science From Mutah University in 2004  Training • Network ( windows server 2003 and 2008 , ISA server 2004 and02006 , Exchange server ) • Design of Internet sites on Programming Languages of ASP.NET and PHP  Experience • hava designed a web Site for mutah university registration • from 1 November 2004 till 30 June 2005 instructor at Ram training Center . My job to give training in ICDL , VB.Net , C++ and fornt Page • from 1 October 2005 till Now instructor at Madar training Center.My job to give training in QBasic , C++ , Visual Basic. Net , and Data Base .. • A Technical at CCS , Amman – Jordan , For Two Month • 5 year as a teacher at Public School. • I have 7 years experience in the installation and maintenance of computer equipment from the center of seeped net • Acquired sufficient experience in the installation of computer networks of various kinds, and to identify mistakes and address them. • 3 years experience in the construction of  SERVIR download, and download special programs for SERVIR • Design of Internet sites on Programming Languages of PHP , Three years experience • now work technician Computer networks in al-raad Institute of Technology in Saudi Arabia Area of Strength  1.Software Programming...

Words: 384 - Pages: 2

Free Essay

Logic and Design

...4.1. Структура компьютера — это: * ------------------------------------------------- 1) комплекс электронных устройств, осуществляющих обработку информации * ------------------------------------------------- 2) некоторая модель, устанавливающая состав, по- рядок и принципы взаимодействия входящих в нее компонентов * ------------------------------------------------- 3) комплекс программных и аппаратных средств. 4.2. Основная функция ЭВМ: * ------------------------------------------------- 1) общение человека и машины * ------------------------------------------------- 2) разработка задач * 3) принцип программного управления. 4.3. Персональный компьютер состоит из: * ------------------------------------------------- 1) системного блока * ------------------------------------------------- 2) монитора * ------------------------------------------------- 3) клавиатуры * ------------------------------------------------- 4) дополнительных устройств * 5) комплекса мультимедиа. 4.4. Системный блок включает в себя: * ------------------------------------------------- 1) системную плату * ------------------------------------------------- 2) блок питания * ------------------------------------------------- 3) модулятор-демодулятор * ------------------------------------------------- 4) накопители на дисках * ------------------------------------------------- 5) платы расширений * 6) средства связи и коммуникаций...

Words: 3164 - Pages: 13

Premium Essay

Number System Tutorial

...NUMBER SYSTEMS TUTORIAL Courtesy of: thevbprogrammer.com Number Systems Number Systems Concepts The study of number systems is useful to the student of computing due to the fact that number systems other than the familiar decimal (base 10) number system are used in the computer field. Digital computers internally use the binary (base 2) number system to represent data and perform arithmetic calculations. The binary number system is very efficient for computers, but not for humans. Representing even relatively small numbers with the binary system requires working with long strings of ones and zeroes. The hexadecimal (base 16) number system (often called "hex" for short) provides us with a shorthand method of working with binary numbers. One digit in hex corresponds to four binary digits (bits), so the internal representation of one byte can be represented either by eight binary digits or two hexadecimal digits. Less commonly used is the octal (base 8) number system, where one digit in octal corresponds to three binary digits (bits). In the event that a computer user (programmer, operator, end user, etc.) needs to examine a display of the internal representation of computer data (such a display is called a "dump"), viewing the data in a "shorthand" representation (such as hex or octal) is less tedious than viewing the data in binary representation. The binary, hexadecimal , and octal number systems will be looked at in the following pages. The decimal number system that...

Words: 8000 - Pages: 32

Premium Essay

Sustainability and Information Technology: Nigeria’s Entry Strategy

...Sustainability and Information Technology: Nigeria’s Entry Strategy The following dialogue ensued between a father and a son. Son: Daddy, why did Nigeria not join the Agricultural and Industrial Revolution? Father: We were not an independent nation; we were being colonized by the British Government, the father muttered. Son: It’s ok Daddy, the boy exclaimed. At least now that we are an independent nation, we will take advantage of the Information Technology (IT) Revolution. Father: I hope so too, my son. I write this article with so much enthusiasm and vigor that Nigeria will be able to take advantage of the IT revolution. However, for us to take advantage of the IT revolution, we need to make a sustainable investment that will enable our unborn children benefit from the legacies we leave behind for the next generation. Sustainability originates from the Latin word sustinere (meaning to hold) and in human terms, sustainability is the long-term management of the environment, economy and social entities on the face of the earth. In the articles context, we wish to adopt sustainability as a vehicle that will enable us deliver a long term strategy that will enhance Nigeria socio-economic development. So the big question is: 1. How will Information Technology sustain Nigeria’s Economic growth? 2. What strategy can Nigeria adopt to become an IT-driven nation? Let me begin the question by answering question number 2, the reason being that Information technology has become...

Words: 697 - Pages: 3

Premium Essay

Mr Rest Kaitano

...REST KAITANO E-mail address restkaitano@yahoo.com Contact address 6 Madden Close Emaraldhill Harare Contact Numbers +263 772 313 285 cell +263 4 291 0259 home PERSONAL DETAILS Born 15 june 1976 Sex male Marital Status single Nationality zimbabwean Driver’s license class 4 Religion christian KEY PERSONAL ATTRIBUTES • good in mastering computer application • good communication skills at all levels • analytical and problem solving skills • can easily adapt to dynamic and teamwork environment as a supportive contributing figure • mature and responsible with integrity EXPERIENCE CIMAS MEDICAL LABORATORIES Accounts clerk Duties Ensuring all invoice are submitted to the relevant medical aids Reconciling debtors Accounts Correcting of errors in the log files Following up debtors Attending to all queries concerning debtors Preparing and sending of statements to medical aids One on one meetings with medical aids TECHNICAL SYSTEMS Data Capturer / CAD Technian Duties COGO capturing of maps using AutoCAD Onscreen Digitising in Acrview environment Database population TOPICS STORES Customer Services Assistant Duties Assessing application for credit approval Compilation for overdue accounts Follow up on overdue accounts Preparation of legal accounts Record keeping of account...

Words: 263 - Pages: 2

Premium Essay

Early Childhood Obesity: A Case Study

...very detail instructions on the CSA monitors before starting the study. The students were to wear the CSA monitor 7 consecutive days during the walking hours. According to Trost, S (2001), “At the time of distribution, students were given a 7 day log sheet to record the times the monitor was worn and to provide information about participation in non-weight bearing activities such as swimming, cycling and weight training”. The following week when the students returned their monitors the information on them were moved and save to a private computer for the following data reduction and analysis. The data reduction and the conclusion of this study according to Trost, S (2001) was done by, “Minute-by-minute activity counts were uploaded to a QBASIC data reduction program written by the primary author for determination of time spent in moderate (3-5.9 METs) and vigorous ( 6 METs) physical activity during each 60 min segment of the 7 day monitoring period”. ...

Words: 1057 - Pages: 5

Premium Essay

Computer

...Chapter 1 Structure and Functions of a Computer "Hardware: the parts of a computer that can be kicked." ~ Jeff Pesis After completing this chapter, you will be able to: 1. Explain the importance of computer literacy. 2. Define the term computer. 3. Identify the components of a computer. 4. Compare the uses of various types of: input devices, output devices, and storage devices. 5. Describe categories of computers and their uses. Structure and Functions of a Computer 1 1.0 Introduction A computer is an electronic machine designed for the storage and processing of data. The machinery is called hardware, and this highly sophisticated equipment needs equally sophisticated programs (called software) to become a working computer system. Modern society has come to depend very heavily on the use of computer systems. Banks, businesses, government departments, industries, shops, people at home and school all rely on computer to play a vital role in their daily activities. These activities are centered on information. In business, the computer system has been used a lot and replaced filing cabinets as means of storing information, and clerical workers as a means of processing it. By storing and processing information on a computer system, these businesses can function more quickly and efficiently, because information can be found and collated much faster. Discovery Learning: A computer was also called a data processor. Why? 1.1 Major Parts and Functions A Computer is...

Words: 47755 - Pages: 192

Free Essay

Computer Fundamentel Practical

...JESSORE Department of computer Engineering & technology Subject Name: Computer Fundamentals Subject Code: 6611 |Submitted To | |Engr.Md.Shaheen akter | |Asstt. Professor & Head | |Department | |Of | |Computer engineering & technology | |BCMC college of engineering &Technology | |Submitted By | |Name: | |Class Roll: | |Technology: computer | |Board Roll: | |Reg No: | |Session: | Date of Submission: Index |Job No. |Name of Job |Date | |01 |Identify the major unit and their interconnection of a computer. | | |02 |Identify different types of memory and storages devices. | | |03 |Demonstrate the overview of a modern keyboard and the operations of different keys. ...

Words: 4363 - Pages: 18

Premium Essay

Research

...1970’s: Smalltalk is an object-oriented, dynamically typed, reflective programming language. Smalltalk was created as the language to underpin the "new world" of computing exemplified by "human–computer symbiosis."[1] It was designed and created in part for educational use, more so for constructionist learning, at the Learning Research Group (LRG) of Xerox PARC by Alan Kay, Dan Ingalls, Adele Goldberg, Ted Kaehler, Scott Wallace, and others during the 1970s. The language was first generally released as Smalltalk-80. Smalltalk-like languages are in continuing active development, and have gathered loyal communities of users around them. ANSI Smalltalk was ratified in 1998 and represents the standard version of Smalltalk. Compiler Description Language, or CDL, is a programming language based on affix grammars. It was designed for the development of compilers. It is very limited in its capabilities and control flow; and intentionally so. The benefits of these limitations are twofold. On the one hand they make possible the sophisticated data and control flow analysis used by the CDL2 optimizers resulting in extremely efficient code. The other benefit is that they foster a highly verbose naming convention. This in turn leads to programs that are to a great extent self-documenting. The original version, designed by Cornelis H. A. Koster at the University of Nijmegen emerged in 1971. Pascal is a historically influential imperative and procedural programming language, designed in...

Words: 2326 - Pages: 10

Premium Essay

6 Steps Cover Letter

...Covby Regina Pontow Goals How To Use This Booklet Self-Confidence and Your Job Search Before and After Resumes 6 Steps To Create A Great Resume For Computer Information Students Worksheets for Steps 1 & 2 Computer Science Degree - Skills and Knowledge Gained From College Program Skill Lists, Sample Sentences and Transferable Skills Worksheets for Steps 3 to 5 12 Questions To Help You Describe Your Functional Headings Strategies That Blow Away Your Competition Marketing The 10 Hottest Skills Selling the Benefits of Your Skills Solving Employers' Hidden Needs Using PowerBase Statements How To Edit Sentences, Use Action Verbs and Quantify Worksheet for Step 6 Why Use A Targeted Resume Templates To Type Your Resume Before and After Cover Letters Before and After Thank You Letters Scanned and Internet Resumes Page(s) 3 3 4-5 6 - 11 12 - 15 16 - 17 18 19 - 29 30 - 31 32 - 37 38 39 40 41 42 43 44 46 48 50 52 - 45 47 49 51 55 I would like to thank Renton Technical College and its students for working with me to create the examples in this booklet. All student names, employers, addresses, etc. have been changed to fictitious information to protect privacy. Notice to Instructors / Schools: Individual instructors and the institutions they work for will be held legally and financially responsible for copyright violation, resulting statutory damages and legal fees. Do not copy or cut apart to copy. The U.S. Copyright Act and HR 2223 provide teacher photocopying guidelines which...

Words: 26601 - Pages: 107

Free Essay

Sfsfsfsfsfsfsfsfs

...Азбука Visual Basic Как вам, быть может, известно, программирование интерфейса в среде Windows некоторое время назад являлось весьма сложной задачей: надо было написать кучу строк кода (например, на С++), чтобы через час-другой трудов увидеть свое творение на экране, так что программы для Windows писали долго и не поодиночке. Visual Basic же позволяет это делать, как уверяют разработчики и энтузиасты, с отличной производительностью и непревзойденной легкостью. В абсолютно вольном переводе название Visual Basic можно трактовать как "наглядная простота". Любой школьник теперь знает, что Basic относится к простейшим языкам для написания компьютерных программ. По обычным человеческим меркам он довольно древний, поскольку был создан аж в 1964 г. Его разработчики - Томас Курт и Джон Кемени - уже тогда хотели сделать его языком для начинающих, облегчающим написание несложных программ. И вот почти 30 лет спустя, в начале 90-х гг., их последователи из Microsoft сумели этой простоте придать легкий оттенок гениальности. Новая разновидность языка под названием Visual Basic позволяла начинающему программисту решать не только простейшие задачи, но и весьма сложные, которые ранее можно было осуществить только на серьезных и сложных языках типа C++. По сути дела, это была революция в способе создания приложений под Windows (рис. 1). Рис. 1. Эта трехмерная сцена использует возможности Direct3D. А написана она на Visual Basic. Действительно, в основу программного пакета было положено передовое...

Words: 3449 - Pages: 14

Premium Essay

Computer

...Computer A computer is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. A computer can process data, pictures, sound and graphics. They can solve highly complicated problems quickly and accurately. Block Diagram Input Unit: Computers need to receive data and instruction in order to solve any problem. Therefore we need to input the data and instructions into the computers. The input unit consists of one or more input devices. Keyboard is the one of the most commonly used input device. Other commonly used input devices are the mouse, floppy disk drive, magnetic tape, etc. All the input devices perform the following functions.  Accept the data and instructions from the outside world.  Convert it to a form that the computer can understand.  Supply the converted data to the computer system for further processing. Storage Unit: The storage unit of the computer holds data and instructions that are entered through the input unit, before they are processed. It preserves the intermediate and final results before these are sent to the output devices. It also saves the data for the later use. Memory Size: All digital computers use the binary system, i.e. 0’s and 1’s. Each character or a number is represented by an 8 bit code. The set of 8 bits is called a byte. A character occupies 1 byte space. A numeric occupies 2 byte space. Byte is the space occupied in the memory. The size of the primary storage...

Words: 9444 - Pages: 38

Free Essay

Algoritmos

...Algoritmo y Programación 1 Analista de Sistema de Computación Módulo 1 Conceptos básicos de programación lógica 1 Esquema de contenidos Módulo 1 Unidad de Aprendizaje 1 Concepto de procesador, entorno, acción y condición. Algoritmo. Lenguaje. Programa. Concepto de programación estructurada. Estructuras de programación: secuencia, decisión y repetición. Constantes. Variables, expresiones. Identificadores. Tipos de datos numéricos (enteros, reales). Tipo de datos carácter. Tipos de datos cadena de caracteres. Tipos de dato lógico. Cálculo proposicional. Expresiones aritméticas, relacionales, lógicas, carácter y cadena. Operadores. Operadores especiales. Tipos de operandos. Jerarquía de operaciones. Precedencia. Memoria. Asignación simple, compuesta. Aplicaciones en lenguaje Pascal. Introducción a la computación Unidad de Aprendizaje 2 Datos y operandos Unidad de Aprendizaje 3 Estructuras Estructuras de programación. Decisión simple (if then else). Decisión compuesta (case of). Repetición (while do, repeat until, for do). Anidados. Marca de fin. Contadores. Acumuladores. Máximos y mínimos. Aplicaciones en lenguaje Pascal. 2 Unidad de Aprendizaje 4 Subalgoritmos. Función. Procedimiento. Variables locales y globales. Pasaje de parámetros: por valor, por dirección. Subprogramas predefinidos. Mapa de memoria. Aplicaciones en lenguaje Pascal. Subprogramas 3 Unidad de Aprendizaje 1 Introducción a la computación Introducción ...

Words: 18358 - Pages: 74