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 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.


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.


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.


What do humans do to help Earth?

They reduce reuse and recycle:)


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 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


How do you code a program to scan a number n and then output the sum of the power from 1 to n?

help me now !!