For what two reasons is it important to add comments to a program? A. To make the structure of the code clear for other programmers B. To make it run faster and more efficiently C. To make the program appear elaborate and complex D. To make troubleshooting and fixing bugs easier​

Answers

Answer 1

Commenting is important to a program to ease the understanding of code by other programmers, and for troubleshooting and fixing bugs.

What is commenting on a program?

The commenting on a program is given as the human-readable description of the code that helps in the analysis of what is the function being performed by the code.

The commenting is important as:

It makes the easy to clearly understand the structure of code by other programmers are many are working in an organization.

In the troubleshooting and when fixing the bugs, the comments add the ease to crack the fault in the code.

Thus, options A and D are correct.

Learn more about commenting in a program, here:

https://brainly.com/question/17102137

#SPJ1


Related Questions

2.
Select the correct answer.
Consider the following statements:
Pls "It is hot."
Q is "It is dry."
Ris "I am thirsty."
What does the sentence (P^Q)->R mean?
Ο Α.
If it is hot and dry, then I am thirsty.
B.
If I am thirsty and dry, then it is hot.
C.
If it is dry or hot, then I am thirsty.
OD.
If it is hot then I am dry and thirsty.

Answers

The structure argument can be given as, with dry and hot weather, it felt thirsty. Thus, option A is correct.

What is the structure of the argument?

The argument is held valid and correct with the use of proper relationships between the sentences. The correct correlation depicts the conclusion to the sentence.

P Q means P followed by Q~R means excluding RP^Q means P and Q

From the given argumentative sentences it can be delivered as If it is dry and hot then I’m thirsty. Thus, option A is correct.

Learn more about structure of argument, here:

https://brainly.com/question/14993040

#SPJ1

How do the following technologies help you with your quest to become a digital citizen kiosks enterprise computing, natural language processing, robotics and virtual reality

Answers

Answer:

How could be an individual become a digital citizens?

Skills such as self-advocacy, conflict resolution, anger management, and decision-making skills, as well as the ability to use assertiveness, resistance, and refusal techniques, are also included and can help students respond safely and effectively online

Explanation:

SAlamat po pa rate nalang

Today's classified ads are often geared toward
medical jobs
O entry-level jobs
military jobs
O high-tech jobs

Answers

Answer:

entry-level jobs

Explanation:

Select the correct answer.
Feather Light Footwear approaches Roy and his team to develop a website that will help increase the company's sales and customer base. Apart
from other items that are clarified in the requirements-gathering session, the client insists on a speedy launch of the site, in two months flat. Roy
and his team already have partially complete projects for other clients that they must complete first. How should Roy handle this situation?
OA. Roy can put aside his current projects and prioritize to finish this new project before the others.
OB. Roy should commit to the project deadline and then later change the delivery date as they work on the project.
OC. Roy can commit to the timeline set by the client and make his team work overtime each day to meet the deadline.
OD. Roy can take up the project, hire additional resources, and later charge the client additional fees for the extra hires.
OE. Roy should be honest and agree on a reasonable timeline that he and his team can easily meet.
Hurry I need help

Answers

Answer:

I'm pretty sure it's D.

IM NOT REALLY SURE BUT YES

You are a Junior IT Technician in your organisation. One of the duties is to demonstrate and explain how the computer works to the new intern staff. Discuss how you would demonstrate and explain

Answers

Recognizing the way computational modeling are utilized is just as important as employing technical knowledge about computer or laptop.

What is a demonstration?

Providing verifiable evidence to demonstrate that maybe something real or is correct.

You are a Junior IT Technician in your organization. One of the duties is to demonstrate and explain how the computer works to the new intern staff.

I'll describe how and when to install and set up computer networks, examine computer issues, and resolve technical and application issues over the phone or face to face as an IT specialist.

Based on the scale of the company for which you work, how would you represent particular maybe more knowledge and expertise? A technical IT support team is commonly separated into both first support, with both the second-line support workers answering more specialized inquiries that the first support staff couldn't handle.

More about the demonstration link is given below.

https://brainly.com/question/15070998

#SPJ1

This program will output a right triangle based on user specified height triangle_height and symbol triangle_char.

(1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt)



(2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts)



Example output for triangle_char = % and triangle_height = 5:

Answers

Answer:

triangle_char = input('Enter a character:\n')

triangle_height = int(input('Enter triangle height:\n'))

print('')

for I in range (triangle height):

for j in range(i+1):

print(triangle_char, end = " ")

print()

Explanation:

I did this question mark brainiest please

what are the benefits and drawbacks of a desktop utilising virtualisation and a server?

Answers

•Cons of Virtualization. High Initial Investment. Data Can be at Risk. Quick Scalability is a Challenge. Performance Witnesses a Dip.

•Pros of Virtualization. Uses Hardware Efficiently. Available at all Times. Recovery is Easy. Quick and Easy Setup. Cloud Migration is Easier.

Mark as brainlest answer!!!!!

What is a major advantage of medical simulators?


The procedures can be practiced with no risk to a patient.

The games have replaced more time-intensive training in hospitals.

The programs deliver more realistic training than actual surgeries.

The simulators are inexpensive and easy to design.

Answers

Answer:

The procedures can be practiced with no risk to a patient.

Explanation:

To perform any task in the computer, we have to instruct the computer what to do. true or false can you say there is confusion ​

Answers

Answer:

True, we have to instruct the computer what to do.

Explanation:

Consumers affect which goods and services are produced because they _____.

name the goods and services produced
choose which goods and services to buy
select the capital goods used for production

Answers

Answer:

Choice B, "choose which goods and services to buy"

Explanation:

Consumers choose which goods and services to buy. Companies only want to provide goods and services they know will be bought. Therefore, consumers affect which goods and services are produced because they choose which goods and services to buy.

what is the protocol suit for the current internet

Answers

Answer:

TCP/IP protocol suite

Explanation:

it just is lol

Explanation: One of the most common networking protocol suites is known as Transmission Control Protocol/Internet Protocol (TCP/IP). All devices that communicate across the Internet must use the TCP/IP protocol suite. Ok bye

Briefly explain how human thinking is mapped to artificial intelligence components.

Answers

Answer:

The technique is called 'mind mapping' which allows the visual representation of ideas and information which also links to memorization. Artificial Intelligence is mimicked as a system based on how our mind works; the human brain's critical thinking is mapped to artificial intelligence.


Explain three of the the features of the word processing to document. ​

Answers

Word processing software may be used to create, edit, save, and print documents, among other things. Text within a document may be copied, pasted, moved, and deleted. Text formatting includes font selection, bolding, underlining, and italicizing.

I’m so sorry to say I have a lot to say I don’t

Which of the following functions is a scalar function?
A.count B.Max C.Sum D.Month

Answers

Count, Max, and Sum are all scalar functions. Thus, option A, B, and C is correct.

What is a scalar function?

A scalar function can be defined that only returning one number out of an incoming signal. The Scalar function treats every column separately. Input data forms the basis of SCALAR Services. Although scalar procedures can accept one or more inputs, they all must give a mono result.

The different function helps to identify the data in a different respect. The serve as significant only function accepts input value, usually a column number and another single identifier that denotes a set.

Count function totals each row. The sum function gives the total. The function represents the data and is formed with the help of the Count, Max, and Sum.

Therefore, option A, B, and C is the correct option.

Learn more about the scalar function, here:

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

#SPJ2

Which of these inventions where the most iconic and important of the 1970s? Why?
The First Floppy Disk (1971).
The First Digital Camera (1975).
Altair 8000 (1974).
Pong (1972).
Rubik’s Cube (1974).

Answers

Answer:

Explanation:

Discussion

I don't think I would choose Rubik's Cube, although I think many people would. It does have a depth of something that moves in all three dimensions, but lot's of things do that. It was more of a craze than something of every lasting value.

Pong is a game. Game software has advanced so dramatically that I don't think you know anyone who has played Pong. You could argue it was a beginning -- but there are others that shared that distinction  like Pacman.  

Do you know anyone who ever owned an Altair 8000? I don't. by then the Apple 2 was well on its way. And so was Apple which is a huge corporation.

Computer storage has always been forefront in Computer Engineer's minds. I think the First Floppy Disk is likely your answer, although if you choose the digital camera, I don't think you be wrong.

Answer: First Floppy Disk  

Gigantic Life Insurance has 4,000 users spread over five locations in North America. They have hired you as a consultant to provide a
solution for standardizing Windows 10 configuration. There is a mix of desktop computers and tablets running Windows 10. The computer
and tablets come from a variety of vendors because Gigantic Life Insurance allows agents to purchase their own computers. How do you
recommend they standardize their Windows 10 installations?

Answers

First of all, when buying a set of Windows 10 operating system, It needs to buy Windows Server 2016 version as well in order to centrally connected to the Windows server machine. So coming to the edition of the Windows 10 version, we need to buy Windows 10 Enterprise edition for your infrastructure. So, the configuration can be like for each computer machine you must use 8 GB of memory and 500 GB of storage. For tablet, it can choose 4 GB memory and 32 GB ROM. Windows tablet comes with already installed OS. But for installation of Windows enterprise client OS, it needs to choose network mode of installation.

What is windows?

A window is a separate viewing area on a computer display screen in a system that allows multiple viewing areas as part of a graphical user interface (GUI). Windows are managed by a windows' manager as part of a windowing system. A window can usually be resized by the user.

Learn more about window's here,

https://brainly.com/question/26388929

#SPJ1

What fictional place would you most like to go to? Its your opinion!

Answers

Mount olympus

Explanation:

Because its the home of the greek gods and i feel like it would be cool to meet the gods

The ________ mouse uses a rolling ball to detect movement and requires regular cleaning to work properly

Question 7 options:

A Mechanical

B Optical

C None of the above

D All of the above

Answers

A. mechanical

The mechanical mouse uses a rolling ball to detect movement and requires regular cleaning to work properly.

Database queries is an example of

Answers

Answer:

A query in a database is a request for information stored within a database management system (DBMS), which is the software program that maintains data.

SQL(Structured Query Language ( is a standard language for storing, manipulating, and retrieving data in database.

Five types of SQL queries are:

1) Data Definition Language (DDL).

used to define and modify the structure of a database.

2) Data Manipulation Language (DML).

used to manipulate (change) the data in the database.

3) Data Control Language(DCL).

used for access control and permission management for users in the database.

4) Transaction Control Language(TCL).

used for maintaining consistency of the database and for the management of transactions made by the DML commands.

5) Data Query Language (DQL).

used for performing queries on the data within schema objects.

ANSWER QUICKLY!!!

Mr. Harris runs the organization You and Your Child, which helps to build life skills in teenagers and prepare them for the future. He approached
Katsumi to develop a website that will enhance the good work he is doing. The client and the development team went through several rounds of
sessions before they finalized the requirements. Katsumi has partially completed the design document, and she is worried that Mr. Harris might
change certain requirements midway through the project. What should Katsumi do in this situation?

Answers

The thing that Katsumi should do in this situation is to option A in the image attached.

Why choose option A?

Note that Design documentation is said to be a composition of documents and resources that is said to cover all areas of one's product design.

Option A is correct because  in the above scenario, it is usually mostly inconclusive and as such, Katsumi  should do nothing.

Learn more about design document from

https://brainly.com/question/27250066

#SPJ1

Rather than entering an IP address into our browser, we use a text-based address known as a(n

Answers

Answer:

url

Explanation:

I need the answer with c++
The question : Implement the class "Rectangle" with sides parallel to the coordinate axes. 1.Provide for the possibility of moving rectangles on the plane. 2.Provide for the possibility of changing sizes. 3.Provide for the possibility of constructing the smallest rectangle containing two given rectangles. 4.Provide for the possibility of constructing the rectangle that is a common part (intersection) of two rectangles. 5.Provide for the possibility of calculating the length of half the diagonal of a rectangle.

Answers

Using the knowledge of computational language in C++ code we found that this code can be written as:

The code can be found in the attached image.

How to writte the C++ code ?

So from the c++ code you can write the geometric figure as

#include <bits/stdc++.h>

struct Point {

   int x, y;

};

bool doOverlap(Point l1, Point r1, Point l2, Point r2)

{

   if (l1.x > r2.x || l2.x > r1.x)

       return false;

   if (r1.y > l2.y || r2.y > l1.y)

       return false;

    return true;

}

/* Driver program to test above function */

int main()

{

   Point l1 = { 0, 10 }, r1 = { 10, 0 };

   Point l2 = { 5, 5 }, r2 = { 15, 0 };

   if (doOverlap(l1, r1, l2, r2))

       printf("Rectangles Overlap");

   else

       printf("Rectangles Don't Overlap");

   return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

2
Select the correct answer
What is the term used when an agent obtains knowledge online?
OA computation
OB, learning
OC observation
OD. reasoning
Reset
Next

Answers

Answer:

b

Explanation:

i believe its b. i apologize if im wrong

What will be printed to the screen when the following program is run?

Answers

Answer:

false

Explanation:

the parenthesis contains 2 true statements (5 is greater than 4 and 10 is greater than or equal to 10)

outside the parenthesis is the not, so the true parenthesis is negated to false

this means the value of a is false

For which tasks is Layout view most helpful? Check all that apply.

moving an object from one section to another
showing how a report will look when printed
selecting and formatting an object
positioning an object precisely within a section
exporting a report to email or Microsoft 365

Answers

The task where the Layout view most helpful is showing how a report will look when printed.

What is the Layout view?

The Layout view is known to be a view that is said to be more of visually-oriented when compared to the Design view.

Note that the Layout view is one where each control often shows real data and as such, The task where the Layout view most helpful is showing how a report will look when printed.

Learn more about  Layout view  from

https://brainly.com/question/1327497

#SPJ1

Answer:

Its B and C

Explanation:

I just answered it. Believe it or not

Question 3 of 25
What does the number of hertz measure in a CPU?
A. How quickly the data in RAM can be read, changed, and
overwritten
B. How fast a CPU can process data, indicating performance
O c. How many bits are fed into a CPU in a certain amount of time
D. How much data is stored magnetically and is used for long-term

Answers

B as clock speed measures the amount of fetch-decode-excute cycles per second, or the amount of data processed per second measure in GHz.

How fast a CPU can process data, indicating performance does the number of hertz measure in a CPU. Hence, option B is correct.

What is process data?

Process data is information about a business process that builds up in an XML document during the course of the process, in accordance with configured instructions in the BPML.

a stock trading program that creates a straightforward graph from millions of stock data points. Customers' search histories are used by an online retailer to suggest related products. A digital marketing company develops location-specific ads using demographic information about consumers.

Batch processing, real-time processing, and online processing are the models. Data processing that is done in batches is known as batch processing. This indicates that each item of data is processed separately.

Thus, option B is correct.

For more information about process data, click here:

https://brainly.com/question/30094947

#SPJ2

What action should you take if you become aware that sensitive compartmented information has been compromised

Answers

Answer:

Report the crime to local law enforcement.

Explanation:

In this area, you want to focus on which hardware, application, personnel, or department(s) will be impacted by the security policy. For instance, what type of personal devices are allowed on the network and when? Must the personnel receive formal approval before using such devices on the network? What kind of activity is allowed on a personal device? Who is responsible for granting the permission to use a device on the network?

Answers

The type of personal devices that are allowed on the network are:

1. Laptops

2. Smartphones

3. Tablets

What devices do BYOD have?

BYOD is known to be Personal devices such as smartphones that organizations often gives permission for employees that are working from home to be able to have a flexible schedule and others.

Therefore, The type of personal devices that are allowed on the network are, Laptops, Smartphones, tablets.

Learn more about personal device here,

https://brainly.com/question/12253360

#SPJ1

Write a program that reads two numbers from the user, and proceeds as follows: If the input numbers are equal, the program displays: both numbers are the same. Otherwise, the program logs all the integers in the range of the input numbers from the smaller value to the larger value in the console. For example, if the user enters 22 and 16, the program displays: 16 17 18 19 20 21 22. Note that all the numbers are displayed in one line separated by a single space. . If any of the input values are invalid, the program displays an error message and terminates.​

Answers

import sys

x = input("enter number 1: ") #ask for user input

y = input("enter number 2: ")

output = "" #the output string

try: #try integering them (this also has error message and will check if input is valid)

 x = int(x)

except:

 print("error! number 1 was not a number :(")

 sys.exit() #leave

try:

 y = int(y)

except:

 print("error! number 2 was not a number :(")

 sys.exit()

if x == y: #check they are not the same

 print("both numbers are the same")

else: #do the thing

 if y > x: #otherwise swap the order

   for i in range (x, y + 1): #+1 for inclusive

     output = (output + str(i) + " ")

 else:

   for i in range (y, x + 1):

     output = (output + str(i) + " ")

 print(output) #so it's all in one line

ANSWER QUICKLY!!

Kenny is designing a document for the employee motivation campaign at his company. He is using various elements of design and grouping them accordingly. Which principle of design is Kenny following in his document?

Answers

Answer: The answer is Proximity.

Explanation:

Other Questions
h(n)=63( 3 1 ) n h, left parenthesis, n, right parenthesis, equals, 63, dot, left parenthesis, minus, start fraction, 1, divided by, 3, end fraction, right parenthesis, start superscript, n, end superscript Complete the recursive formula of h(n)h(n)h, left parenthesis, n, right parenthesis. Environments include both _____ and _____ things.Question 1 options:resources; factorsair; waterliving; nonlivingbuildings; animals Please help me please please In this figure: the value of y that makes the quadrilateral A B C D a parallelogram is: Which of the following is not a power of thefederal court system?appointing federal judges to the benchappealing cases to higher courtsresolving land disputes within a givenstateputting the accused on trial for crimes Find the measure of all sides. Round to the nearest tenth. Which of these is an exponential parent function? HELP PLEASE For the following right triangle, find the side length x. Can i have some help this is due tonight There are two numbers and one is 7 more than twice the other. the sum of the numbers is 43. What are the numbers Which of these does NOT occur during meiosis?production of new gene combinationsproduction of identical gametescrossing-over of homologous chromosomesreduction of chromosome number by one-half Translate the phrase into an algebraic expression.The product of 4 and b What is 70% of 30? Question 4 options: A 7 B 15 C20 D 21 Which graph shows the solution to the system of linear inequalities?2x 3y Which describes an impact of Magna Carta on the American colonist in the 1770s? AThey thought they had the right to overthrow a king who did not protect their rights. BThey favored a separation of the powers of government into different branches. CThey believed the could not be governed by far-away island. DThey believed they could not be taxed without their consent. How do the Chapters 1 and 2 work together to develop the story? Chapter 1 introduces Cassandra's mother, and Chapter 2 develops her character by showing the conflict she feels about having a dog. Chapter 1 introduces the character Cassandra, and Chapter 2 develops her character by having her make a series of choices about chess. Chapter 1 introduces the problem of the missing dog, and Chapter 2 shows the steps taken to try to find the dog. Chapter 1 introduces the setting of Washington Square Park, and Chapter 2 changes the setting of a different park. When youre working on a research project, what is the best way to keep track of where your information came from?Bookmark all of the web site you use.Photocopy or print all the pages related to your research topic.Check out all the books you used from the library.Write source information next to any notes you take. SOMEONE PLEASE HELP WILL MARK BRAINLIEST In one particular suburb, there are 13 families that own a terrier. If there are a total of 20 families that own a dog in general, then what percentage of dog owners have a terrier?153% have terriers65% have terriers7% have terriersNone of these answers are correct.33% have terriers 11 Des souhaits Conjuguez les verbes. Hippolyte, Je suis en runion toute la journe, je rentre vers 21 h 00. Je (aimer) j'aimerais que tu (faire) fasses les courses. Ce (tre) bien que tu (aller) au march et que tu (acheter) des fruits et des lgumes. Je (vouloir) que tu (prparer) le dner et que les enfants (manger) tt. Ce (tre) bien que vous (ranger) la cuisine et que vous (faire) la vaisselle aprs le dner. Il (falloir) que les enfants (savoir) leur leon et qu'ils (prendre) leur bain. Je (vouloir) qu'ils (tre) au lit quand je rentrerai. Bises et bon courage ! Isabelle