Beruflich Dokumente
Kultur Dokumente
Utilization
UCT-144
(Batch-2017)
Common to all branches of first year
Contact Hours : 30
Course Objective
05-01-2018
Definition of Computer
• A computer is an electronic device used to store and process
information.
• It plays a major role in our lives.
• You use computers in education and research.
• You also use them for broadcasting news, receiving and sending
messages to family and friends, making presentations, maintaining
official and personal records, making weather forecasts, and for
various other business and recreation activities.
• By using computers, you save a lot of time, effort, and money.
05-01-2018
Internally
1. Optical Drive
2. AirPort Extreme Card slot
3. System Blowers
4. Hard Drive
5. Right Speaker
6. I/O Ports
7. Power Supply
8. Diagnostic LEDs
9. Power PC G5 Processor
10.DIMM slots
11.Left Speaker
05-01-2018 Fig1. Internal structure of Computer
Connections
1. AirPort Antenna
2. Bluetooth Antenna
3. Optical Audio out
4. Optical Audio in
5. Analog Audio out
6. Analog Audio in
7. USB 2.0
8. FireWire 400
9. FireWire 800
10.10/10/1000BASE-T Ethernet
11.Modem
Fig2. Connections
05-01-2018
Block Diagram of Computer
Control
Unit
ALU
05-01-2018
Internal structure of Pentium
microprocessor
05-01-2018
Fig4. Structure of microprocessor
Problem Solving
• Problem - An obstacle which makes it difficult to achieve a desired
goal, objective or purpose.
• Solving problem is the core of computer science
• Programmers must first understand
• how a human solves a problem,
• then understand how to translate this "algorithm" into something
a computer can do,
• and finally how to "write" the specific syntax (required by a
computer) to get the job done.
05-01-2018
Problem Solving Process
1. Define the problem
2. Analyze the problem
3. Generate possible solutions to the problem
4. Analyze the solutions
5. Select the best solution(s)
6. Implement the solution
05-01-2018
Algorithms & Flowcharts
• Tools a software developer uses when creating new programs.
• Algorithm - step-by-step recipe for processing data.
• Flowchart - graphically represents the steps a program or set of
programs takes to process data.
• With algorithm and flowchart, we can easily understand a program.
05-01-2018
Symbols used in flowchart
Oval shaped symbol is used to denote the start/end
of program
This symbol is used to show the I/O performed
05-01-2018
Machine Language
• Set of instructions executed directly by a computer's central
processing unit (CPU).
• Each instruction performs a very specific task, such as a load, a jump,
or an ALU operation on a unit of data in a CPU register or memory.
• Every program directly executed by a CPU is made up of a series of
such instructions.
05-01-2018
What is Programming?
Learning to program means
learning how to solve problems using code.
• Instructing a computer to do something with the help of a
programming language.
• In programming we deal with three kind of things:
• Data
• Procedures
• Program
05-01-2018
Steps in Program
Development
1. Define the problem
2. Outline the solution
3. Develop the outline into an algorithm
4. Test the algorithm for correctness
5. Code the algorithm into a programming language
6. Run the program on computer
7. Document and maintain the program
05-01-2018
Discipline in Programming
• An undisciplined developer will not be able to ship on time and will
not write code that is easy to maintain.
• A disciplined developer will not only enable the success of a project,
but will raise the level of productivity in others.
05-01-2018
Good Program v/s Bad
Program
• If program produces what is required, and is correct in its output,
then is this a ‘good’ program.
• Program executes successfully for n number of test cases.
• Characteristics of good program include:
• Run-time efficient
• User Friendly
• Self Documenting code (uses meaningful names for identifiers)
• Portable
• Reusable
• Robust (can handle unexpected conditions)
05-01-2018
Good Program v/s Bad
Program
• Characteristics of bad program:
• Messy, unreadable code
• Bugs, bugs everywhere
• Not well tested
• No documentation / comments
• Not well organised
• No indentation
• No robustness
05-01-2018
FAQs
• Explain the functioning of a keyboard with diagram.
• Explain the functioning of a mouse.
• How a computer performs decision making?
• What are the types of dynamic RAM?
• What is eMMC chip?
• What is the difference between DDR, DDR2, DDR3, DDDR4?
• Draw a flowchart to find average of two numbers.
05-01-2018