What is the purpose of including comments in code?

Answers

Answer 1

Answer:

To help keep your code organised/understandable by other people.

Explanation:

One of the worse things if you are looking back at your code in the future is not being able to know what your code sections are for right away. You will want to make sure you explain what each section of code does for your own personal help. I'm not saying its required to do, you should probably do it to help yourself or other people who are going to read/collaborate on your code.


Related Questions

HURRY

I ONLY HAVE 4 DAYS LEFT

In a multiplayer game, you are part of a team that consists of players from all over the world. You are a warrior and prefer to carry weapons with you. Another member in the team takes on the role of the team medic, and carries regenerative potions. Whenever you are injured, you can access the medic’s inventory to swap your weapons with potions. What kind of interaction has been described here?

A.
player-to-game interaction
B.
cooperative player-to-player interaction
C.
direct player-to-player interaction
D.
competitive player-to-player interaction
E.
player-to-platform interaction

Answers

Your answer is B: cooperative player-to-player interaction

write an algorithm to calculate the simple interest using the formula​

Answers

Answer:

step 1:- start

step 2:-read principal amount, rate and time

step 3:- calculate interest using formula sI=((amount*rate*time)/100)

step 4:- print simple interest

step 5:- //CPP program to find compound interest for. //given values

A total stranger is trolling Jack online. He’s offended and annoyed. How can Jack stop the troll in his or her tracks? (5 points)

Arguing with whatever the troll says
Explaining why trolling is rude
Trolling the troll
Log off the web page

Answers

Answer:

log off the web page would be the best answer here or explaining why trolling is rude but log off the web page is the best one here

Answer:

Explaining why trolling is rude.

Explanation:

E-governance is the only solution against corruption. justify the statement in context of nepal​

Answers

Answer:

Following are the solution to this question:

Explanation:

The E-government implies use as part of the government systems to offer SMART, which is used to manage smart governance, ethics or accountability, sensitivity, and transparency. It is the research teams, that also shown that policies were progressing in India's creation of information technology. It is also argued against reducing the risk of bribery through improved public official surveillance and reducing its need for citizen engagement with porters with key services.

E-government involves against the utilization of Intelligent as the impact of government way of managing practice evidence, accountability as well as traceability, responsiveness.

It's often stated that decreasing the possibility of bribery thru enhanced government employee supervision and minimizing the necessity for civilian involvement with employees delivering critical services reduces the chance of corruption.

Thus the response above is right.

Learn more about corruption here:

https://brainly.com/question/24673177

Which of these tools can best be used as a self assessment for career planning purposes?
a personality test
an asset analysis
a self-directed learning experience
a goal development checklist

Answers


a self-directed is the correct answer

Answer:

C. would be your answer

Explanation:

just took the test

choose the function that will result in a 3 on the next line.
>>> aList = [3, 10, 10, 10, 30, 30]
>>> aList. ___(10)
count
index
pop

Answers

Answer: count

Explanation:

Given the program :

>>> aList = [3, 10, 10, 10, 30, 30]

>>> aList. ___(10)

To obtain a value of 3 on the next line, we use the count function :

aList.count(10)

The above statement returns the number of occurrences of digit 10 in the list aList. Digit 10 occurs 3 times in the list. Hence, output will be 3

The index function returns the lowest index where the digit 10 appears and thus it will give an output of 1

The pop function to used to deletes item belonging to a specified index and returns the item which is removed, for this exercise, selecting the pop function will throw an error as the list does not have any item with the index 10.

Answer:

count

Explanation:

count does exactly what it is inteded for...count, counts.

count(10) counts how many 10s there are. theres 3 tens so count is the answer to get 3 on the next line.

points)

(01.01 MC)

Which is an example of correct HTML?

This is a heading
This is a heading
This is a title
This is a title

Answers

Answer:

For a heading it would be <heading> </heading>

For a title it would be <title> </title> title goes in the heading by the way

Explanation:

You use tags in html

You put a title tag in the heading tag in html

Your manager wants you to implement a type of intrusion detection system (IDS) that can be matched to certain types of traffic patterns. What kind of IDS is this?

Answers

Answer:

Signature-based IDS.

Explanation:

IDS is an acronym for intrusion detection system and it can be defined as a security system which is typically used to monitor network traffic and it notifies the engineer when there's a malicious activity.

Generally, the detection methods used by the Intrusion Detection Systems (IDS) are;

1. Statistical anomaly-based detection.

2. Stateful protocol analysis detection.

3. Signature-based detection.

In this scenario, your manager wants you to implement a type of intrusion detection system (IDS) that can be matched to certain types of traffic patterns. Thus, this kind of IDS is known as a signature-based IDS.

A signature-based detection system refers to a type of detection and protection system used to detect a malicious attack such as a worm, virus, trojan, malware etc., by checking and matching them with a repository of specific signatures, patterns or fingerprints.

A married couple makes a combined $100,000 a year. This means their income will be taxed about 25%. How much money will they be left with after taxes are taken out of their paychecks?A married couple makes a combined $100,000 a year. This means their income will be taxed about 25%. How much money will they be left with after taxes are taken out of their paychecks?A married couple makes a combined $100,000 a year. This means their income will be taxed about 25%. How much money will they be left with after taxes are taken out of their paychecks?A married couple makes a combined $100,000 a year. This means their income will be taxed about 25%. How much money will they be left with after taxes are taken out of their paychecks?

Answers

Answer:

$75,000

Explanation:

Given that :

Combined income made = $100,000

Percentage Tax paid on income = 25%

Amount left after tax :

(100% - 25%) * combined income made

75% * $100,000

0.75 * $100,000

= $75,000

Hence, amount left after tax is $75,000

is it important to know the basic foot massage first before giving foot spa treatment? why?​

Answers

Answer:

Just like your neck, back, and shoulders, your feet can also benefit from a regular rubdown. Foot massage improves circulation, stimulates muscles, reduces tension, and often eases pain. It also gives you a chance to check out your feet so you can get a jump on treating blisters, bunions, corns, and toenail problems.A good foot spa session releases the tension formed around the tight muscles and tendons and allows blood to flow and circulate smoothly to your other bodily organs and brain. Sliding into liquid bliss allows knots to unknot and pain for to be gently soothed away.

Hope this helps, have a wonderful day/night, and stay safe!

Which statement describe the advantages of using XML? more than one answer can be correct

A-it saves file space
B-it allows for data storage in a separate file
C-it is hardware dependent
D-it is software independent
E-it facilitates the transport of data

Answers

Answer:

The statements that describe the advantages of using XML are;

B-It allows for data storage in a separate file

D-It is software independent

E-It facilitates the transport of data

Explanation:

XML data can be stored in separate file such that the layout and display can designed in HTML whereby the data in the XML file can be changed without changing the HTML

XML is both software and hardware independent thereby it is possible to use the same XML to carry information to different computers and software

XML is used for data transport.

Which type of information could be displayed using this line graph?

a comparison of how frequently earthquakes occur in different areas over a period of time
the percentage of grades obtained by one class on a certain test
the physical features of a given land mass
the number of students in one class in a local school

Answers

Answer:

The first one I'm sorry if I'm wrong

Answer:

A u were right dont worry :)

Explanation:

6.8 Code Practice
please can have some help please

Answers

sure what is the question though

Choose the word that makes each sentence true.
Use a while/for loop when you know you want to make 10 passes through a loop
Use a while/for loop when you want to continue passing through a loop until a condition is met

Answers

Answer:

Use a for loop when you know you want to make 10 passes through a loop

Use a while loop when you want to continue passing through a loop until a condition is met

Explanation:

Let us first clear that when do we use for loop and when do we use while loop.

For loop is used when the programmer already knows the number of repetitions.

While loop is used when the number of iterations are not known but the condition has to be used to determine the number of iterations.

Hence,

Use a for loop when you know you want to make 10 passes through a loop

Use a while loop when you want to continue passing through a loop until a condition is met

Roses are red, violets are blue, I'm going to ki.ll myself, to make life better for you.

Answers

Answer:

i like this poem helps out the world

Explanation:

p,s. deserves brainiest

No don’t kill urself lol

Is the app scener safe? its a chrome webstore app on computer.​

Answers

Answer:

Maybe

Explanation:

If you are unsure if a website is safe look for signs. If its asking you to allow advertisement then no. I suggest you download a VPN before going to the website just to be safe

what are the unique features of the software used in hospital

Answers

Answer:

computer is the unique feature of the software used in hospital

what key do you have to press i order to send your finish information to the CPU​

Answers

Answer:

Enter key.

Explanation:

The key you have to press in order to send your finish information to the central processing unit (CPU) is the Enter key.

In Computer science, the Enter key found on all keyboards serves a similar purpose (function) as the OK button and it is typically used to end or finish an entry and sequel to that, starts the processing of the information entered into the computer system.

This ultimately implies that, when a computer user wishes to enter or send a finished information to the central processing unit (CPU), he or she is required to hit the Enter key.

Are you able to connect a VPN to a Spectrum Internet modem or do you need a Router for that. Are routers better than modems?

Answers

Answer:

Yes

Explanation:

Spectrum Internet modems work very wells with VPNs.

How has music changed with the use of technology?


Musicians can now share their music on the World Wide Web.

Music can easily be created and edited with different applications.

Developers can include music in the background of their websites.

all of the above

please help

Answers

Answer: All of the above

Explanation:

Music like most other things, has been changed by its interaction with technology. Music for instance can now be shared on the internet to people far away from each other with services like Apple music and Tidal benefitting from this.

Different applications have also been created that can help make music from being able to create instrumentals to changing the voices of singers.

Developers are now even able to include their music in their website background as way to market their product, proof of another way music has changed due to technology.

Answer:

all of the above

Explanation:

Input of ___________________ and generating _____________________ is an example of how a business uses data and processes it into meaningful information.

Answers

Answer:

Input of _______data______ and generating _____information (reports)____ is an example of how a business uses data and processes it into meaningful information.

Explanation:

The data processing is the transformation of data into actionable information to ease decision making. The steps involved in data processing include data collection, data preparation, data input, processing, and information output and storage.   These steps enable data to become useful to the user.  Without data processing, data and information may be too complex for usage.

A website wants to gives out detailed information to viewers about its upcoming conference and also provides a feature for searching the
website's internal content. Which planning tool addresses these aspects based on prioritization of text?
OA page description diagrams
ОВ.
wireframe
OC.
sitemap
OD.
navigation

Answers

The planning tool that addresses these aspects based on prioritization of text is wireframe.

What is website?

A website is described as a composition of web pages and linked content that is seen by a common domain name and then they are published on any web server.

Note that a wireframe is said to be a two-dimensional depiction of a page's interface that is known to be based on space allocation and prioritization of content, etc.

Learn more about website  from

https://brainly.com/question/13171394

If you have a spectrum modem can you connect it to a VPN without a Router. Is it possible to do?

Answers

Answer:

From the internet itself, not sure if this will help, but if does, great.

Explanation:

Charter Spectrum Internet works with VPNs very well. You can install it on your device or have it set up on the router. In the latter case, the VPN automatically turns on when you use the Internet from any device be it a smartphone, PC, or tablet.

Please Help meeeeeeeeeee:

To rename and save a document to OneDrive, you should use which option?

a) Copy
b)Download
c) Save
d)Save as

Answers

Answer:

D) save as

Explanation:

If you press save as it'll give you the option where to save to.

Copy I think good luck

The user is told to guess a number between one and 10.

Which responses from the user could cause the program to halt with an error statement? Choose two options.

two
2.5
12
-3
0

Answers

Answer:

0 and -3

Explanation:

These two options do not fall within 1 and 10.

Answer:

2.5 and two

are the answers

what is a filter in excel (please keep your answer brief)

Answers

Answer:

The Excel FILTER function "filters" a range of data based on supplied criteria. The result is an array of matching values the original range. When this array is the final result (i.e. the results are not handed off to another function) matching results will "spill" on to the worksheet.

Explanation:

Greg wants to check the amount of requests his website receives. What test can he use?
A
functionality test
B.
user test
C.
performance test
D.
website load test
Help ASAP

Answers

Answer:

D - Website load test

Explanation:

Just got it right

Shane is debugging code and found a line reading Favorite Snack = "blueberry muffins". How should the line look after it’s been debugged?
Favorite_Snack = "blueberry muffins"
favorite snack = "blueberry muffins"
Favorite Snack is "blueberry muffins"
Favorite Snack = "blueberry_muffins"

Answers

Answer:

Favorite_Snack = "blueberry muffins"

Explanation:

Variable names cannot have spaces in them

can some one please help me

Answers

Answer:

Option "3" is correct answer to the following question.

Explanation:

A process is a procedure on your machine that is working. This could be anything from a tiny context job to a filled program like Web Browsers or Sql Server, such as a cast or device event controller. One or even more strings are made of all operations.

Choose the assistive technology that best completes each sentence.

A __ provides a magnification of a chosen area of the screen, without reference to other parts of the
screen.

A __ provides magnification of a portion of the screen in relation to the rest of the screen, much like a
physical magnifying glass.

Answers

A zoom feature provides a magnification of a chosen area of the screen, without reference to other parts of the screen.

A  screen magnifier provides magnification of a portion of the screen in relation to the rest of the screen, much like a physical magnifying glass.

What does a screen magnifier do?

A screen magnifier enables persons with vision impairment who can still see to access and interact with digital content, such as websites and papers.

Note that A screen's magnification function involves zooming in on specific areas of the screen or the entire screen to simulate using a magnifying glass.

Therefore, too zoom in and out is to make something or someone appear much larger as well as closer, or much smaller and farther away through using a camera or computer.

Learn more about magnifier from

https://brainly.com/question/27173427
#SPJ1

Other Questions
Read the problem and examine the diagram.Of all the students in the school band, 6 play the trumpet. They represent 10% of thetotal number of students in the band. How many students are in the band?Which choice is NOT a correct way to check your answer?A. The answer should be 10% of 6.B. The answer multiplied by 10% should be 6.C. 10% of the answer should be 6.D. 6 should be 10% of the answer. Let f(x) = 5x +1.Find f(2) Complete oxidation of one acetyl CoA in Krebs cycle produces 1 ATP by substrate level phosporylationTrue or false What is this note and how long does it last? pls help! 15 boxes of apples weighs 840 pounds. If the weight of the apples is proportional to the number of boxes then how many pounds does 28 boxes weigh? What is the pH of a solution with (H+] = 1 x 103 M? Evaluate the expression when a = 17 and c = 7.a+ca-2c 3 less than 8 times w Fill in the blank in the following sentence with the appropriate past participlebelow. Note the hint in parentheses.El restaurante no est _ ? _(open).A. abiertaB. abriendoC. abiertoD. abro 17. Which organelles do all EUKARYOTIC CELLS have in common? (SelectALL that apply.) *nucleuscytoplasmcell membrane The ratio of cats to dogs at April's Animal Shelter was 3 to 2. How many dogs were in the shleter if there were a total of 75 cats and dogs in theshelter?A 30B 25c 50d 150 Find the quotient. -275/-25 Why would a certain trait have alower fitness than another causingthat trait to die off in a certainpopulation?A. The trait has been around too long to be useful.B. The trait does not benefit or hinders theorganism.C. The trait does not wish to be passed on. Which country first introduced European diseases to American Indians?O SpainO PortugalO EnglandO France Which of the following farming activities is MOST helpful to the environment?A) rotating crops to reduce soil lossB) clearing land to grow more cropsC) damming a river to provide water for crops ,D) spraying crops with pesticides The school store received a shipment of notebooks and pens. There are 10 cartons of notebooks and 25 boxes of pens. Each carton of notebooks costs $72 and contains 48 notebooks. Each box of pens costs $12.60 and contains 36 pens. The school wants to make a 10% profit.question What is the cost of one notebook? What amount must be added on to the notebook's cost to account for a 10% markup? What will be the retail price (price the school is charging) for the notebook? Short-term notes payable: Rarely involve interest charges. Are a conditional promise to pay. Can be issued in return for money borrowed from a bank. Are not negotiable. Cannot replace an account payable. A skater embeds a firecracker in a large snowball and pushes it across a frozen pond at 7.6 m/s. The firecracker explodes, breaking the snowball into two equal-mass chunks. One chunk moves off at 9.3 m/s at 19 to the original direction of motion. Discover the speed and direction of the second chunk. How do different writers convey their viewpoint of social media? A homeowner is mixing vinegar with water to dissolve calcium depositsaround a bathroom sink. The original formula calls for 10 ounces of vinegarmixed with 30 ounces of water. The homeowner wants to make a strongermixture by adding more vinegar (variable v). Which equation will show"total water / total vinegar"30/(10 + v)(30 + v) / 10(30 + v) / (10 + v)30/10