What are the benefits of writing functions that use parameters and return? Try to list at least two.

Answers

Answer 1

Answer:

Explanation:

Writing functions that use parameters and return helps improve code readability and manages complexity by reusing code.

Answer 2

By repeating code and creating methods that utilize arguments and return, you may increase readability of code and control complexity. Instead of creating two distinct functions, parameters may be used to mix the two.

Parameters and results of the tests enable us to build code that is more readable and adaptable to a wider range of contexts. However, we'll need to practice reading, developing, and troubleshooting code like this because it operates a little more than the programmed we're used to.

Learn more:

https://brainly.com/question/15260986?referrer=searchResults


Related Questions

use this (Find the surface area of a cylinder.)

Write a pseudocode plan for your program.
Write the code for your program.
Test your program. Run it at least three times with different inputs.
Save your program as a .txt file for you cannot upload a .py file.
Evaluate your project using this rubric.

Answers

Answer:

What's the best to use Microsoft Word or PowerPoint

How can I watch you-tube on my school computer without it being blocked on the computer when it uses Lightspeed Systems Relay or do you know any playback sites that aren't blocked ?

Answers

Answer:

if u use chrome u can probably look on chrome extensions and search you-tube unblocker and add it to ur chrome

Examples of email use that could be considered unethical include _____.


sending a quick message to your friend about last weekend

sharing a funny joke with other employees

denying receiving an e-mail requesting that you work late

sending your boss the monthly sales figures in an attachment

forwarding a chain letter asking for donations to a good cause

setting up a meeting with your co-worker

Answers

Answer:

"Denying receiving an e-mail requesting that you work late "

"Sending a quick message to your friend about last weekend "

"Sharing a funny joke with other employees"

Explanation:

Based off of the questions, I assume it means while you are at work. If you're at home or something, all of these are fine.

Answer:

"Denying receiving an e-mail requesting that you work late "

"Sending a quick message to your friend about last weekend "

"Sharing a funny joke with other employees"

Explanation:

What happens when a bookmark is added to a document?

-An item is added to the index.
-The list of citations becomes longer.
-The content that the bookmark links to appears.
-A shortcut for navigating to a specific location appears.

Answers

Derslerinde başarılar dilerim

Answer:

The content that the bookmark...

How do I make someone "Brainiest".
First person to reply will get "Brainiest"

Answers

Answer:

Usually when someone answers a question there would be an option to mark the brainliest. However, you only get one every like 24 hrs so if you already gave someone brainliest you can't give it to someone else for a while

Explanation:

Answer:

Brainiest

Explanation:

yo can someone hook me up with some uranium

Answers

bet where u stay at?

Answer:

now how we gon do dat

Explanation:

...

A computer is performing a binary search on the sorted list of 7 numbers below.

What is the maximum number of iterations needed to find the item?

[1, 5, 20, 50, 51, 80, 99]

A. 1

B. 3

C. 6

D. 7

Answers

Answer:

B

Explanation:

Binary search will start in the middle of the list, find which side the value is at, then look at the middle of those values.  This is incredibly efficient for larger values (Although it needs to be sorted) and practical in many instances.  Let's say that the desired number is 1, the binary search would look at "50" first, then proceed to compare with "5" and finally on it's third iteration, pick 1.

The maximum number of iterations needed to find the item is; Option B: 3

We are given the list of numbers as;

[1, 5, 20, 50, 51, 80, 99]

Now, when conducting binary search, it usually starts in the middle of the list of given numbers.

Thereafter, the next step is to find the side that the value being searched for is located before looking at the middle of those values.

Now, if the number being searched for in the given list is 1, it means that the binary search would first look at the middle number which is 50. Thereafter, it will proceed to compare it with the second number 5 and the lastly with the third iteration, will be 1.

Thus,the number of iterations needed to find the item is 3 iterations.

Read more about binary search at; https://brainly.com/question/24786985

____ describes the concept of spreading applications over more than one computer system. Group of answer choices

Answers

Answer:

Distributed Computing.

Explanation:

Computing is the process of using computer hardware and software to manage, process and transmit data in order to complete a goal-oriented task. It can be classified into the following categories;

I. Autonomic computing: it comprises of systems which are self-managed. It is similar in operations with the autonomic nervous system in humans and is used in assembly lines for optimum automated production.

II. Grid computing: it is a collection of connected computing systems that function to achieve a common goal and are mainly located at various locations. It is commonly used for seismic analysis and weather forecasting.

III. Green computing: it is a programming concept that is based on the creation and use of technology in an environmentally friendly manner, thus, it focuses on the use of recyclable resources, power and resource management and energy efficiency management.

IV. Distributed Computing: it describes the concept of spreading applications over more than one computer system.

You are finally at the stage of the software life cycle where you begin programming. What is this stage called?
Group of answer choices

analysis

development

coding

implementation

Answers

You are finally at the stage of the software life cycle where you begin programming. What is this stage called?

development

Militarism is the belief that a country should have a strong military capability and be prepared to use it aggressively to defend or promote its interests.

Answers

Yes this true you should look up Maga

The cost of manufacturing one complete high chair are shown below: High Chair £8.50 Legs £22.75 Strap £1.90 Labour £2.60 Calculate how much one high chair would be sold for, if the manufacturer included a 30% profit margin. Round to the nearest pence.

Answers

Answer:

£69 (nearest pound)

Explanation:

Given the cost breakdown for the manufacture of 1 complete high chair :

High Chair __ £8.50

Legs ______ £22.75

Strap _______ £1.90

Labour ______£2.60

Total : £(8.50 + 22.75 + 1.90 + 2.60)

Total manufacturing cost = £35.75

Profit margin = 30%

Sales price = (100 + profit margin)% * total manufacturing cost

Sales price = (100+30)% * 35.75

Sales price = 130% * 35. 75

Sales price = 1.3 * 35.75

Sales price = £68.575

A Floppy Disk is an example of:
a) Primary Storage Device
b) Secondary Storage Device
c) Software Device
d) All the above

Answers

Answer:

B I think-

Explanation:

Its either Primary or Secondary :) pretty sure its secondary tho

Answer: Answer is B Heart if this was helpful

Explanation: Alternatively referred to as a floppy or floppy disk, a floppy diskette is a storage medium capable of holding electronic data, like a computer file.

Deep-Learning vs Machine Learning, differences?

Answers

Answer:

one is in bricks and mortar and the other is on a machine

Explanation:

jk its one is learning threw trial and error and the other is through one set of code that tells it how to to the task one way that makes it have one path

Which of the following scenarios describes an IT
professional using the Internet and computer
system access in an unprofessional or
inappropriate way? Check all of the boxes that
apply.

Answers

Answer:

-checking social media networks during working hours

-surfing the Internet during working hours for what to do on the weekend

-downloading a favorite band’s latest album from a file-sharing service

Explanation:

they are all correct on edg.

Answer:1 2 3 they are all correct

Explanation:

ANSWER ASAP, I'LL MARK THE BRAINLIEST
A designer has created a doorbell that rings when it is pressed. What is the input in this system?

a) ringing sound
b) push-to-make switch
c) motion sensor
d) temperature sensor​

Answers

Answer:

Push to make switch

Explanation:

The sound is created after you push it. Pushing it is the input and the sound is the output

Which of the following sentences use personification 


A. The stars in the sky are bright


B. The tree had leaves of green, yellow, and brown,


C. The truck pulled the heavy trailer out of the mud.


D. The snowflakes danced through the air.

Answers

Answer:

D

Explanation:

snowflakes cant dance.Its a human things.

Which of the following behaviors does not harm a company if your employment is terminated?
A. getting a copy of word-processing software before leaving
B. selling trade secrets to competing companies or to your future employer
C. creating a username and password so you can access company information after you have left
D. notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave

Answers

Answer:

Notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave.

Answer:

its D

Explanation:

took the test

witch is it?

i got it rong

Answers

Explanation:

first u need to learn spelling second theres no picture

The word ____ at the end of several of the member functions in the accompanying class definition specifies that these functions cannot modify the member variables of a clockType object.

Answers

Answer:

Const.

Explanation:

In C++ programming language, if you wish to have your compiler deny or prevent access to a member function in modifying (changing) a calling object's private member variables in a line of code, you should declare the member as a const function. Therefore, the member function is simply declared as a constant by the compiler.

The word const at the end of several of the member functions in the accompanying class definition specifies that these functions cannot modify the member variables of a clockType object.

373 + 891 = 891 + ____ find the whole number​

Answers

Answer:

373

Explanation:

Answer:

373

Explanation:

Commutative property, If my answer helped, kindly mark me as the brainlest!!

Which external reference is formatted correctly?

=[My_Sales.xlsx]!Quarter1:C12

O ='(My_Sales.xlsx)!Quarter1':C12

O ="[My_Sales.xlsx]Quarter1'!$C$12

O =(My_Sales.xlsx)!Quarter1:$C$12


C on edge.

Answers

Answer:

= '[My_Sales.xlsx]quarter1'!C12

Explanation:

The formula gets the value of the cell C12 in the quarter worksheet of the  My_Sales.xlsx workbook.

Answer:

C

Explanation:

got it right on edge

what tasks should a laptop accomplish?

Answers

Answer:

general & personal used for computing.

While you are working on your computer, it shuts down unexpectedly, and you detect a burning smell. When you remove the case cover, you notice a distended capacitor. What can you do to fix this problem

Answers

Answer:

fire

Explanation:

hydrant

Answer:

Replace the motherboard

Explanation:

Binary Numbers and Conversion 1. Complete the following decimal-to-binary number conversions. a) 17 (10) b) 34 (10) c) 58 (10) d) 92 (10) e) 119 (10) f) 178 (10) g) 297 (10) h) 413 (10)

Answers

Answer:

a) 10001

b)100010

c)111010

d)1111100

e)1110111

f)10110010

g)100101001

h)110011101

Explanation:

Kyra is teaching a photography class. She would like her students to share photos. She would also like the students to be able to review other students' photos and offer feedback. What technology should Kyra use?

a blog
a wiki
a domain
e-mail

Answers

Answer:

A blog.

Explanation:

A blog can be defined as an informative or discussion-based website that is updated regularly and published over the internet. The informations that are posted on a blog are usually done chronologically and it includes pictures, videos, music, movies, novels, etc.

In this scenario, Kyra is teaching a photography class. She would like her students to share photos, be able to review other students' photos and offer feedback.

Hence, the technology Kyra should use is a blog because it would avail the users (students) to post photos, make comments on blog posts and review items posted by others.

What are the difference between immediate window and view window.
(wrong answers will be reported)

Answers

Answer:

mmediate window is used to debug and evaluate expressions, execute statements, print variable values, and so forth. It allows you to enter expressions to be evaluated or executed by the development language during debugging.

The Command Window is used to execute commands or aliases directly in the Visual Studio integrated development environment (IDE).

Explanation:

A security administrator is conducting a penetration test on a network. She connects a notebook system to a mirror port on a network switch. She then uses a packet sniffer to monitor network traffic to try and determine which operating systems are running on network hosts. Which process did the administrator use in the penetration test in this scenario

Answers

Answer:

Active fingerprinting

Explanation:

Check My Work Sherri is considering replacing a processor on her laptop. The laptop is running slower than she would like. What should Sherri consider prior to taking the laptop apart

Answers

Complete Question:

Sherri is considering replacing a processor on her laptop. The laptop is running slower than she would like. What should Sherri consider prior to taking the laptop apart? (Select all that apply.)

Group of answer choices.

a. Try an external device before replacing the motherboard.

b. Make sure you have the correct processor for the motherboard.

c. Verify that the laptop is not under warranty.

d. Determine whether a teardown procedure is available.

Answer:

b. Make sure you have the correct processor for the motherboard.

c. Verify that the laptop is not under warranty.

d. Determine whether a teardown procedure is available.

Explanation:

In this scenario, Sherri is considering replacing a processor on her laptop because the laptop is running slower than she would like.

Hence, Sherri should consider the following informations prior to taking the laptop apart;

I. Make sure you have the correct processor for the motherboard. She can get the specifications of the motherboard and processor on the manufacturer's website.

II. Verify that the laptop is not under warranty because if it still under warranty, taking the laptop apart would void the warranty granted by the original manufacturer.

III. Determine whether a teardown procedure is available. She should ensure there is a guide available for dismantling and re-coupling of the laptop.

Help


Which of these lines of code will increment a variable?


A.

print(variable)


B.

count(variable)


C.

inc(variable)


D.

variable = variable + 1

Answers

the answer is A :) hope it’s right have a nice day

PLEASE ANSWRR ALL ASAP

ILL GIVE BRAINLY PLEASE HELP

Answers

Answer:

2D from hexadecimal to denary is 13 + 2*16 = 45

68 from hexadecimal to denary, using the same logic as above, is 104.

AB from hexadecimal to denary, using the same logic as above, is 171.

Lastly, F9 from hexadecimal to denary is 249.

31 from denary to hexadecimal is 1F (notice that it is one less than 32, which is 2*16).

73 from denary to hexadecimal is 49.

184 from denary to hexadecimal is B8

Lastly, 255 is FF (notice that it is one less than 256, which is 16*16)

Other Questions
bleepbloob pls help :(( Which statement is true about the process shown? Lynette received her bank statement for the month and she is now comparing it with the transactions that she logged in her checkbook register. After calculating the transactions in the statement and he checkbook register, she realized that the statement showed more balance than her checkbook register. What could be the reason behind this discrepancy? Who did FDR defeat for the presidency in 1932? Why was the incumbent President defeated so easily? What is the currency of El Salvador? Mach each renaissance figure to the correct description1. da Vinci 2. Michelangelo 3. Shakespeare 4. Erasmus 5. PetrarchMatch with:(dome of St. Peter's Basilica)(poet who practiced writing sonnets)(The last supper)(laid the foundation for the Reformation)(English literary giant) which term refers to the condition that exists when no over all change in concentration results from diffusion?a. concentrationb. osmosisc. equilibriumd. randomness Simplify the following surd expressionsa) [tex]6 \sqrt{2} - 5 \sqrt{2} [/tex]b) [tex] \sqrt 11 + 3 \sqrt{11} [/tex] True or false?Once prosperous cities went into economic depression and people left the cities and movie to the countryside. In a 300 word essay, explain why the U.S. government chose to provide economic and military assistance to the French for their war in Indochina. What international events influenced this decision? If you were a policymaker in Washington, would you have supported giving aid to the French? Why or why not?Your essay should be three paragraphs in length. The first paragraph should explain the reasons the U.S. was concerned about the Soviet Union. The second paragraph should explain the concerns of the U.S. about the situation in Asia. Finally, your third paragraph should explain why you think the U.S. support for the French was a good or bad idea. You should provide specific reasons, including facts and values, which support your view. Answer this ASAP to get points and brainliest find angle X on the given figure. m Mr.smith has 5 1/5 acres of the land for sale. He divided the land into 1/2-acre lots. How many lots are for sale? Find the solutions to the equation below. Check all that apply. 25x^2- 100 = 0 Assessment7. Synthesize. How might the food choices ofa high-powered business executive with abusy schedule differ from those of a part-time worker? Question 1 of 10Which sentence correctly uses an appositive phrase?O A. The elegant woman wearing a fancy dress, is my aunt, who ishosting the auction.B. My grandfather repairs old typewriters and can make all kinds ofbroken things work again.O C. My sister, a singer and guitarist, is away this week with her band.O D. A curly haired boy, stepped into my path and asked for directions.SUBMIT In the sentence Three blue eggs lay in the nest is the word "three" an adjective?30 pts 16Select the correct answer.What time does Raphael's flight take off? Select the 24-hour time format.Le vol de Raphal dcolle quatre heures cinquante-cinq du soir.OA.14:55OB.4:55O C.16:55OD.6:55 The weights of bags of grasecks chocolate candies are normally distributed with a mean of 4.3 ounces and a standard deviation of 0.05 ounces what is the probability that a bag of these chocolate candies weighs less than 4.27 ounces answer pls asap for top and bottom