Professional Documents
Culture Documents
SACHDEVA
14UMM016
ASSIGNMENT 1
Ans. Top down design proceeds from the abstract entity to get to
the concrete design. Bottom up design proceeds from the
concrete design to get to the abstract entity.
Top down design is most often used in designing brand new
PARTEEK
SACHDEVA
14UMM016
systems, while bottom up design is sometimes used when one is
reverse engineering a design; i.e. when one is trying to figure out
what somebody else designed in an existing system.
Bottom up design begins the design with the lowest level modules
or subsystems, and progresses upward to the main program,
module, or subsystem. With bottom up design, a structure chart is
necessary to determine the order of execution, and the
development of drivers is necessary to complete the bottom up
approach.
Top down design, on the other hand, begins the design with the
main or top-level module, and progresses downward to the lowest
level modules or subsystems.
Real life sometimes is a combination of top down design and
bottom up design. For instance, data modeling sessions tend to
be iterative, bouncing back and forth between top down and
bottom up modes, as the need arises.
Q4. What are various input devices that can be used in CAD
system? Explain their working with help of diagram?
Ans. The input devices are those devices used to feed the data or
the requirement to the computer system. We communicate with
the system through the input devices. Software drivers are
required to enable the host applications programs. i.e., the
CAD/CAM software, to interpret the information received from
input devices as well as send information to output devices. There
are many input devices. The input may be in the form of text or
graphics. The input in the form is given by the alphanumeric
(character-oriented) keyboards. Graphics devices, or locators,
provide a position or location on the screen. These include
lightpens, mice, digitizing tablets and styluses, joysticks,
trackballs, thumbwheels, touchscreens, and touchpads. Locating
devices typically operate by controlling the position of a cursor on
the screen. Thus, they are also referred to as cursor-control
PARTEEK
SACHDEVA
14UMM016
devices. The joystick provide three-dimensional input are two-
dimensional input devices Another class of graphics input devices,
besides locating devices, is digitizer boards or tablets, or simply
digitizers. Digitizers can be divided into three kinds relative to the
mode of operation of the cursor. They are free-cursor,
constrained-cursor, and motor-cursor digitizers. In the first kind,
the cursor is attached to the end of a flexible chord, in the second
it slides along a gantry that traverses the entire digitizing board
area, and in the third kind the cursor motion is accomplished by
motors driven by an operator controlled joystick. Image-input
devices such as video frame grabbers and scanners comprise the
third class of graphics-input devices
Q6. Draw a line from (0,1) and (3,6) and another line from (0,1) to
(-3,6) using Bresenhams line algorithm?
Ans. (a) For a line from 0,1 and 3,6 m>1 i.e. m=5/3, dy=5 and
dx=3
x y p
0 1 1
1 2 -3
1 3 3
2 4 -1
2 5 5
3 6 1
(b) For a line from (0,1) and (-3,6) m<0 and negative, dy=5 and
dx=3 .It is impossible to draw the line as p always get increase
PARTEEK
SACHDEVA
14UMM016
x y p
0 1 1
-1 2 -3
-1 3 3
-2 4 -1
-2 5 5
3 6 1