Access over 35 million academic & study documents

Advantages of modularizationProgrammers need to develop the abilit

Content type
User Generated
Rating
Showing Page:
1/2
Advantages of modularization
Programmers need to develop the ability to break a large
problem into a set of manageable components, or modules,
each of which can focus on handling one specific task. If
these tasks are large, they can be divided even further into
a set of subtasks. Each component can then be
programmed as a separate function or module. Often there
is more than one acceptable way to divide a program into
modules and to organize the modules. However, in
general, if module A calls module B then module B should
carry out some subtask that helps module A perform its
function.
Read the following program scenario and then discuss how
you would design the program. How many modules would
you use? What tasks would each module handle? How
would you organize the modules? That is, which modules
would call which other modules? What are the advantages
of the design you have chosen?
Program Scenario:
Artistic
Solution
s, a painting company, has determined that for every 160
square feet of wall space, one gallon of paint and three
hours of labor are required. The company charges $28.00
per hour for labor. Design a modular program that allows
the user to enter the number of rooms that are to be
painted, the approximate square feet of wall space in each
room (it may differ from room to room), and the price of the

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/2

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
Advantages of modularization Programmers need to develop the ability to break a large problem into a set of manageable components, or modules, each of which can focus on handling one specific task. If these tasks are large, they can be divided even further into a set of subtasks. Each component can then be programmed as a separate function or module. Often there is more than one acceptable way to divide a program into modules and to organize the modules. However, in general, if module A calls module B then module B should carry out some subtask that helps module A perform its function. Read th ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Anonymous
Just what I needed…Fantastic!

Studypool
4.7
Indeed
4.5
Sitejabber
4.4