Question

In: Computer Science

Does anyone know about this? The chapter mentioned that systems analysts and programmers transform objects into...

Does anyone know about this?
The chapter mentioned that systems analysts and programmers transform objects into program code modules. Modular design is a very popular concept in many industries. Can you give two more modular design examples? Explain each example briefly.

Solutions

Expert Solution

Modular design is a design that creates things out of independent parts with standard interfaces. This allows designs to be customized, upgraded, repaired, and for parts to be reused. A popular example of modular design are LEGO plastic construction toys.

Modular programming is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

The module is basically a set of interrelated files that share their implementation details but hide it from the outside world.

Modular Design Examples:

1. Using one function for taking in the program and using another program to display output.

class demo

{

public:

get(int x)

{}

set()

{}

}

2. Using various functions for calculating various types of areas in a single program.

int rectangeArea(int l, int b)

{

return l*b;

}

int circleArea(int r)

{

return 3.14*r*r;

}

In modular approach, we have used different modules/functions for different types of tasks/functions to be performed.


Related Solutions

Does anyone know how to access altitude and azimuth for different objects on Stellarium?
Does anyone know how to access altitude and azimuth for different objects on Stellarium?
Does anyone know how to do it on EXCEL? Does anyone know how to do it...
Does anyone know how to do it on EXCEL? Does anyone know how to do it on EXCEL? Does anyone know how to do it on EXCEL? Does anyone know how to do it on EXCEL? Anyone know how to do it on EXCEL? The Statistical Abstract of the United States published by the U.S. Census Bureau reports that the average annual consumption of fresh fruit per person is 99.9 pounds. The standard deviation of fresh fruit consumption is about...
Does anyone know to create a model of a ball and urn model of an American...
Does anyone know to create a model of a ball and urn model of an American Roulette Wheel? Please provide a detailed model with an explanation of how you came to the conclusion you did. And if possible, provide an example of using the model to solve a problem. Thank you!
Does anyone know these? 1) a) reactions that require an input of energy are called___ -...
Does anyone know these? 1) a) reactions that require an input of energy are called___ - is the answer endergonic /spontaneous ?? b) proteins on the surface of the coronavirus allow them too e enter into our cels during an infection by binding to receptors. since receptors pass through the plasma membrane these proteins are called _______. The virus enters by being engulfed by your cell in process known as ________ - is the answer: integral proteins, and phagocytosis? c)T/F...
Does anyone know the code to use in R programming to create a scatter plot?
Does anyone know the code to use in R programming to create a scatter plot?
Does anyone know the code to use in R programming to create a box plot?
Does anyone know the code to use in R programming to create a box plot?
Does anyone know how to do pseudocode on this topic? Write a program to perform the...
Does anyone know how to do pseudocode on this topic? Write a program to perform the following two tasks: 1. The program will accept a string as input in which all of the words are run together, but the first character of each word is uppercase. Convert the string to a string in which the words are separated by spaces and only the first word starts with an uppercase letter. For example, the string "StopAndSmellTheRose" would be converted to "Stop...
Does anyone know any good resources for this? Give at least 5 similarities or differences and...
Does anyone know any good resources for this? Give at least 5 similarities or differences and choose another country (other than the U.S.) and compare its central bank with the Federal Reserve. compare its central bank with the Federal Reserve.   (Then) a. Imagine a bank that starts with $1,000,000 in deposits.  Assume that the reserve ratio is 10% and that the bank lends out all excess reserves.  Draw a T-account showing this scenario. b. If all loans are redeposited in the same...
does anyone know the following questions: 1) the types of fruits and vegetables contain base substance...
does anyone know the following questions: 1) the types of fruits and vegetables contain base substance 2) the basic substance in it (including the name and structure)
does anyone know the following questions? 1) what kind of fruits and vegetables contain alkaline substance?...
does anyone know the following questions? 1) what kind of fruits and vegetables contain alkaline substance? 2) and the name and structure of the alkaline substances
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT