Professional Documents
Culture Documents
Python - Unit - I - QB1
Python - Unit - I - QB1
(Autonomous)
Approved by AICTE, New Delhi & Affiliated to Anna University, Chennai
Accredited by NBA, NAAC with “A+” and Recognised by UGC (2f &12B)
KOMARAPALAYAM – 637303.
Computer is a electronic device, which automatically accepts and store input data,
processes them
Produces results based on the instruction given.
Process
Flowlines
7. Mention Application Softwares.
Input: This is the process of entering data and programs in to the computer system.
Storage: The process of saving data and instructions permanently is known as storage.
Data has to be fed into the system before the actual processing starts
Processing: The task of performing operations like arithmetic and logical operations is
called processing. The Central Processing Unit (CPU) takes data and instructions from
the storage unit and makes all sorts of calculations .
Output: This is the process of producing results from the data for getting useful
information.
Control: The manner how instructions are executed and the above operations are
performed.
Functional Units
They are 1) arithmetic logical unit, 2) control unit, and 3) central processing unit.
Input Devices
Input devices are necessary to convert our information or data in to a form which can be
understood by the computer.
Keyboard: -
This is the standard input device attached to all computers. The layout of keyboard is just
like the traditional typewriter of the type QWERTY.
It also contains some extra command keys and function keys. It contains a total of 101 to
104 keys.
Mouse: -
Mouse is an input device that is used with your personal computer. It rolls on a small ball
and has two or three buttons on the top.
When you roll the mouse across a flat surface the screen censors the mouse in the
direction of mouse movement.
The cursor moves very fast with mouse giving you more freedom to work in any
direction. It is easier and faster to move through a mouse.
Scanner:
Scanner is an optical device that can input any graphical matter and display it back.
The common optical scanner devices are Magnetic Ink Character Recognition (MICR),
Optical Mark Reader (OMR) and Optical Character Reader (OCR)
Output Devices
Output Devices
1. System software
2. Application software
System Software:
The System Software consist of the Operating System and all the utilities that enable the
computer to function.
System software actually controls the hardware so that application software can perform
any action or task.
It is a collection of programs to perform system functionalities.
They are of 2 types
1. System management program
a. Operating system
b. Utility programs
c. Device drivers.
2. System development programs
a. Language translators
b. Linkers
c. Debuggers
d. Editors
Application Software
Application Software includes programs that do real work for user.
Example:
Payroll systems, Inventory Control, Manage student database, Word Processor, Spreadsheet
and DatabaseManagement System etc.,
Types of Application Software
1. Proprietary
2. In-house
3. Contract
4. Off-the-shelf
5. Customized package
The first essential or vital thing required for any software development is system. Also the
system requirement may vary based on the software product that is going to get developed.
So a careful analysis has to be made about the system requirement needed for the
development of the product. After the analysis and design of the system requirement phase
the system required for the development would be complete and the concentration can be
on the software development process.
Feasibility study:
After making an analysis in the system requirement the next step is to make analysis of the
software requirement. In other words feasibility study is also called as software requirement
analysis. In this phase development team has to make communication with customers and
make analysis of their requirement and analyze the system. By making analysis this way it
would be possible to make a report of identified area of problem. By making a detailed
analysis on this area a detailed document or report is prepared in this phase which has
details like project plan or schedule of the project, the cost estimated for developing and
executing the system, target dates for each phase of delivery of system developed and so
on. This phase is the base of software development process since further steps taken in
software development life cycle would be based on the analysis made on this phase and so
careful analysis has to be made in this phase.
Code Generation:
This is the phase where actual development of the system takes place. That is based on the
design documents prepared in the earlier phase code is written in the programming technology
chosen.
After the code is developed generation of code also takes place in this phase. In other words the
code is converted into executables in this phase after code generation.
Testing:
A software or system which is not tested would be of poor quality. This is because this is the
phase where system developed would be tested and reports are prepared about bugs or errors in
system. To do this testing phase there are different levels and methods of testing like unit testing,
system test and so on. Based on the need the testing methods are chosen and reports are prepared
about bugs. After this process the system again goes to development phase for correction of
errors and again tested. This process continues until the system is found to be error free. To ease
the testing process debuggers or testing tools are also available.
Sample algorithms:
Start program
Ask the user to enter two values
Add two values and store result in another variable.
Finally print the result
End program
Start program
Ask the user to enter an integer to find the factorial
Read the integer and assign it to a variable
From the value of the integer up to 1, multiply each digit and update the final value
The final value at the end of all the multiplication till 1 is the factorial
End program
9. Write an algorithm and flowchart for Sum of two numbers
Algorithm for Sum of two numbers
Start program
Ask the user to enter two values
Add two values and store result in another variable.
Finally print the result
End program
Flowchart
Start program
Ask the user to enter an integer to find the factorial
Read the integer and assign it to a variable
From the value of the integer up to 1, multiply each digit and update the final value
The final value at the end of all the multiplication till 1 is the factorial
End program