Documente Academic
Documente Profesional
Documente Cultură
CAP 314
SUBMITTED TO-
Deepak Sir
SUBMITTED BY-
SACHIN RAJ
B34
D3901
PART A
Refinement 1:
write dollar amount in words
Refinement 2:
procedure write_amount;
validate amount is within bounds;
parse to determine each dollar unit;
generate alpha representation;
end write_amount
Refinement 3:
procedure write_amount;
do while checks remain to be printed
if dollar amount > upper amount bound
then print "amount too large error
message;
else set process flag true;
endif;
determine maximum significant digit;
do while (process flag true and
significant digits remain)
set for corresponded alpha phrase;
divide to determine whole number
value;
concatenate partial alpha string;
reduce significant digit count by
one;
enddo
print alpha string;
enddo
end write_amount
Q.2. Discuss the relationship between the concept of
information hiding as an attribute of effective modularity and
the concept of module independence.
Ans-
Information hiding can be related to both coupling and
cohesion concepts. By limiting the availability of information to
only those modules that have absolute need, coupling between
modules is inherently reduced. In general, isolation of
information predicates isolation of function; therefore,
cohesion of individual modules can also be
improved.
Information hiding as an attribute of effective modularity
Information Hiding implies that effective modularity can be
achieved by defining a set of independent modules that
communicate with one another only that information necessary
to achieve software function. Abstraction helps to define the
procedural (or informational) entities that make up the
software.
The use of information hiding as a design criterion for modular
systems provides the greatest benefits when modifications are
required during testing and later, during software maintenance.
concept of module independence
The concept of Module independence is a direct outgrowth of
modularity and the concepts of abstraction and information
hiding.
Functional independence is achieved by developing modules with
single-minded function and an aversion to excessive
interaction with other modules.
Independent modules are easier to maintain (and test) because
secondary effects caused by design or code modification are
limited, error propagation is reduced, and reusable modules are
possible.
Q.3. Develop two additional design principles that “reduce
the user’s memory load.”
Ans-
If the user desires, display shortcut command sequences on
the screen at all times. Provide the facilities for "hints" when a
WebApp requires passwordinput.
Other Also Can Be Possible
• Reduce demand on short-term memory. Provide visual cues
that enable a user to recognize past actions, rather than
having to recall them.
It means we have provide easy interface to customer
that will help to customer easily.and we also need to
provide simple functionality(simple module coding,array)etc.
• Establish meaningful defaults. A user should be able to
specify individual preferences; however, a reset option
should be available to enable the redefinition of original
default values.
Define shortcuts that are intuitive.
If i am creating a software then we must need to use
shortcuts keys,that helps to customer remember. This is the
best way to “reduce the user’s memory load.”
PART B