answersLogoWhite

0

MODULES ALSO REDUCE THE DUPLICATION OF CODE WITHIN A PROGRAM..THIS BENEFIT OF USING MODULES IS KNOWN AS code reuse BECAUSE YOU ARE WRITING THE CODE TO PERFORM A TASK ONCE AND THEN REUSING IT EACH TIME YOU NEED TO PERFORM A TASK.

User Avatar

Breanne Watsica

Lvl 10
3y ago

What else can I help you with?

Related Questions

How do module help reuse code in a program?

MODULES ALSO REDUCE THE DUPLICATION OF CODE WITHIN A PROGRAM..THIS BENEFIT OF USING MODULES IS KNOWN AS code reuse BECAUSE YOU ARE WRITING THE CODE TO PERFORM A TASK ONCE AND THEN REUSING IT EACH TIME YOU NEED TO PERFORM A TASK.


How do functions help you to reuse code in a program?

Functions hold code, which means anything that happens within a function can be "called" later on. Allowing the programmer to save time, and ensuring he doesn't have to re-write code. Example: Instead of writing "Hello" 10 times, I made a function that said print("hello") 5 times, then "Called" the function twice. def helloFiveTimes(): print("Hello") print("Hello") print("Hello") print("Hello") print("Hello") return helloFiveTimes() helloFiveTimes()


What is the purpose of module?

The purpose of a module is to encapsulate a specific set of functionalities or components within a program, promoting modular design and organization. This allows for easier maintenance, code reuse, and collaboration, as different parts of a program can be developed and tested independently. Additionally, modules can help manage complexity by breaking down large systems into smaller, more manageable pieces. Overall, they enhance readability and facilitate better software development practices.


What is called Dividing a program into function and modules?

Modularisation. It could also be called refactoring, where large and complex functions are split into several simpler functions, making code easier to read. Refactoring can also help to reduce code duplication.


Why must we reuse?

To help our earth.


Which plastic bottles are safe to reuse?

Plastics can be very dangerous because of the chemicals contained in many. Therefore, a number code system has been used to help identify which plastics are safer than others to reuse. 1, 2, 4, and 5 are considered safe, while 3, 6, and 7 are those we should not reuse.


Why constant is used?

Constants are used in programming to store values that remain unchanged throughout the execution of the program. Constants help improve code readability, make maintenance easier, and prevent accidental changes to these values. It also allows developers to reuse these fixed values across different parts of the program.


How does using wind power help the reuse reduce recycle program?

It really doesn't help recycling. That said, wind power does reduce air pollution and fossil fuel consumption that are caused by conventional power plants.


You lost the book for Devil May Cry three How do you get the code?

Contact the company who markets the program they should be able help you with the code


What do humans do to help Earth?

They reduce reuse and recycle:)


What are some strategies people can use to help the environment?

Reuse, Reduce, Recycle! Recycle and reuse, paper, plastic, and glass (Bottles)!


What are three steps to help recycling?

Reduce reuse recycle