1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nadya68 [22]
2 years ago
13

What are the benefits of creating and using functions in your code?.

Mathematics
1 answer:
ch4aika [34]2 years ago
4 0
It is critical to remember that creating functions while coding is a vital component of coding. There are various benefits to doing so.
A few of the advantages include the following:

The function can be called from anywhere in the code and made to perform exactly what it was written for the first time if it is called from a different line of code.

2. Writing functions reduces redundancy by allowing for fewer lines of code to be written in total. It eliminates the need to rewrite numerous lines of code over and over again. After the initial line of code has been set, we can call the method from another location.

3. It increases the efficiency of coding.

4. It makes it easier for others to comprehend the fundamentals involved in a coding structure, which is an advantage.
You might be interested in
Write an expression that can be used to multiply 6x198 mentally
Black_prince [1.1K]
6(100+90+8) is the equation
6x100 =600
  6x90 =540
    6x8  = 48
             1,188 is the answer                                      



7 0
3 years ago
Read 2 more answers
Is 8/12 greater than 10/15?<br><br> and how do you know?
valentina_108 [34]

Answer:

no, they are equal. we know this because when reducing both they are equal.

Step-by-step explanation:

first find the least common denominator

that's 3

reduce fractions until the denominator is both 3

we get 2/3 and 2/3. the proportions are equal.

8 0
2 years ago
Read 2 more answers
If a person walks 1/2 a mile in each 1/4 hour, how far does he walk in 1 hour?
laila [671]

Answer:

2 miles

Step-by-step explanation:

1/2+1/2+1/2+1/2=1

5 0
2 years ago
Read 2 more answers
In a basketball game, a regular basket was worth 2 points and a long-distance basket was worth 3 points. If there were 45 basket
-BARSIC- [3]

Answer:

B. r + l = 45; 2r + 3l = 96

39 regular; 6 long-distance

Step-by-step explanation:

There were 45 baskets, so

(1) r + l = 45

There were 96 points in the game, so

(2) 2r + 3l = 96

Solve equation (1) for l

                    l = 45 – r     Substitute the value for l in Equation (2)

2r + 3(45 – r) = 96      Remove parentheses

 2r + 135 - 3r = 96      Combine like terms

         -r + 135 = 96      Subtract 135 from each side

                  -r = -39      Multiply each side by -1

                  r = 39      Substitute the value of r in Equation (1)

           39 + l = 45        Subtract 39 from each side

                   l = 6

===============

Check:

(1) 39 + 6 = 45

         45 = 45

(2) 2×39 + 3×6 = 96

           78 + 18 = 96

                   96 = 96


4 0
3 years ago
A bank teller knows that she received 34 dimes and nickels from a customer. If the change totaled $2.05, how many dimes and nick
ivanzaharov [21]
D = # of dimes
n= # of nickles

d + n = 34 so d = 34 - n
.10d + .05n = 2.05

substitute d = 34 - n into .10d + .05n = 2.05

.10d + .05n = 2.05
.10( 34 - n) + .05n = 2.05
3.4 - .1n + .05n = 2.05
     -.05n = -1.35
  n = 27

d = 34 - n
d = 34 - 27
d = 7

answer

<span>she received 7 dimes and 27 nickels</span>
7 0
2 years ago
Other questions:
  • A cylinder has a volume of 245 cubic units and a height of 5 units. The diameter of the cylinder is
    12·2 answers
  • X^3 = 125 <br><br> x = ? <br><br> Help!!!!
    8·2 answers
  • A rectangle length was 4 feet longer than triple the length of it width
    8·1 answer
  • A car rental costs a fee of $150 plus $35 per
    6·1 answer
  • 7. Olivia purchases gifts for her mom and
    9·1 answer
  • Given: f(x) = 2x-1 and g(x) = 2x-3<br> Find:<br> (fog)(x)<br> HELP PLEASEE!!
    12·1 answer
  • Here are some numbers
    13·1 answer
  • If f(x)=2x^4-x^3-3x^2+14 then f'(3)=
    7·1 answer
  • Solve for X
    9·1 answer
  • Four runners start at the same point; Lin, Elena, Diego, Andre. For each runner write a multiplication equation that describes t
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!