Which of these should be included in a program's comments?

a. code to set the parameters of a shape

b. a description of what the program does

c. a description of how long it took to write the code

d. code for inserting a background

Answers

Answer 1

Answer:

B

Explanation:

Comments in code are primarily used to describe what the program does, and how chunks of the code running the program help relate to what the program does. Comments in code are not primarily used for answers d & a, which is more code, since if you comment, the compiler doesn't notice the code, so it doesn't work. Comments in code are not used for c either, since it's not really needed to write that in the comments.


Related Questions

write a paragraph about ICT?

Answers

Answer:

ICT (information and communications technology or technologies) is an umbrella term. It includes any communication device or application, such as radio, television, cellular phones, computer and internet, satellite systems and so on. Videoconferencing and distance learning is a very important part of ICT.

Wilma is looking for facts about social media for her research project. What fact should she use for her project? a Communicating with social media is hard b Social media is a great way to communicate. c Social media is fun and easy to use. d The minimum age for some social media sites is 13. please help me and i will give you 5 stars

Answers

Answer:

d.

Explanation:

Out of all of the options listed, the only choice that is actually a fact would be that the minimum age for some social media sites is 13. This is because this age restriction is not set by the social media sites but instead by the Children's Online Privacy Protection Act (COPPA) within the US. The other options are all personal opinion, the most accurate of which is that "Social media is a great way to communicate." which there can still be someone with an opposing argument which means that it is not factual but instead it is an opinion.

What are 5 different google g-suite tools that you can use to collaborate and communicate with othe

Answers

it is google docs like stuff made by google

What am I doing wrong?

Answers

In your example, you're asking the user for a number and then you're setting total and nums equal to zero. This results in your first number being ignored by the program. I included the complete working code below:

num = int(input("Enter a number: "))

total = num

nums = 1

while (total <= 100):

   num = int(input("Enter a number: "))

   nums = nums + 1

   total = total + num

print("Sum: "+str(total))

print("Numbers Entered: "+str(nums))

I hope this helps!

pls help quick

Question #4. This question is worth 55 points. You may use the exam reference sheet. Write the pseudocode for a procedure, pow2() that displays the nth power of 2 where n is a parameter passed into the procedure. PROCEDURE pow2 ) { }​

Answers

Answer:

The procedure is completed as follows:

PROCEDURE pow2(n){

count = 1

power = 1

WHILE count <= n

       power = power * 2

       count = count + 1

END WHILE

Print power

}

Explanation:

A pseudocode is not a real code and might not be syntactically correct. This is so because it only helps to understand what the code is all about and gives and insight of the code.

Having said that, the pseudocode for the program is as follows:

This line defines the procedure

PROCEDURE pow2(n){

This line initializes count to 1

count = 1

This line initializes power to 1

power = 1

The following iteration iterates from 1 to n

WHILE count <= n

This calculates the nth power of 2

       power = power * 2

       count = count + 1

The ends the while loop

END WHILE

This prints the calculated power

Print power

The procedure ends here

}

Note that: I'll assume that the 4 lines illustrated do not mean that the pseudocode be written in just 4 lines.

So, more lines would be needed

write important of ICT in personal life?

Answers

Answer:

ICT is a great impact for are daily lives. It can improve the quality of a human life. The reason why it can improve that, it’s because it can be used as a learning and education media, the mass communication media in promoting and campaigning practical and important issues, such as the health and social area.

Explanation:

What does a network backbone do?
allows data to be delivered more quickly and efficiently
makes data transfer from the cloud more secure
connects different network functions, such as printers and modems
configures random local networks in major cities that make up the Internet

Answers

Answer:

configures random local networks in major cities that make up the internet.

Answer:

D

Explanation:

What is the purpose of i in the code?

for (var i = 0; i < fruitList.length; i++ ) {
console.log (fruitList [ i ] );
}

Answers

Answer:

i is a variable used to store information in this case the number 0. The i is then added to repeatedly to create a list.

Discuss one simple example of hybrid computer.​

Answers

Answer:

thermometer , petrol pump

it is where your cpu (processor) is installed

Answers

The motherboard (CPU SOCKET)

Answer:

OPTICAL DRIVE

Explanation:

It think

How many categories should Jane use to track multiple levels of information learned through a student survey on teachers at her school? a. One category per teacher c. As many categories as she needs to understand the results b. Only one teacher per category d. None of these Please select the best answer from the choices provided A B C D

Answers

Answer:

c. As many categories as she needs to understand the results

Explanation:

In order to do this, she should track as many categories as she needs to understand the results. This is because Jane might need to understand various aspects of different teacher's performance during school hours. To do so she would need many different categories that apply to all of the teachers. That way when she gathers the results she can see which teachers perform best in a specific category when compared to the others, thus giving Jane a better understanding of each teacher's overall performance.

Answer:

i think its c because, In order to do this, she should track as many categories as she needs to understand the results. This is because Jane might need to understand various aspects of different teacher's performance during school hours. To do so she would need many different categories that apply to all of the teachers. That way when she gathers the results she can see which teachers perform best in a specific category when compared to the others, thus giving Jane a better understanding of each teacher's overall performance.

Explanation:

You want to add a picture of a potential new office layout to the title page of a proposal. How can you adjust the size of the image without changing its proportions?

Answers

Answer:

You can adjust the size of an image without changing its proportion by holding down the shift key while adjusting one of the edges.

Identify way computer are used in television production​

Answers

Answer:

image editing, text om screen, weather graphics, animation, sattelites ... a lot more possibilites are endless just limited

Write a function named last_digit that returns the last digit of an integer. For example, last_digit(3572) should return 2. It should work for negative numbers as well; last_digit(-947) should return 7.

Answers

def last_digit(num):

   num = str(num)

   return int(num[-1])

print(last_digit(-947))

I hope this helps!

what is the meaning of .net in computer​

Answers

Answer:

.net is a top-level domain, also known as a TLD. Derived from the word network, it was originally developed for companies involved in networking technology. Today .net is one of the most popular domain names used by companies all over the world to launch their business online.

please help me I want the answer for the 3rd question ​

Answers

Use the multiples thats are included in the flowchart and divide them by half a divisible

Match the type of multimedia artist to the description of the jobs they perform.

storyboard artist

background artist

special effects animator

multimedia designers

works with other animators to set

the scenes depicting the key

characters

arrowRight

works with various elements to

create content for web pages

arrowRight

creates key frames that depict

all the important scenes in the

story

arrowRight

provides visual enhancements

to make the action depicted

more interesting and appealing

Answers

Answer:

d or a

Explanation:

hope it helps

A ______ is a portable device for recording audio and video.
a. recorder
b. video
c. television
d. camcorder

Answers

Answer:

D

Explanation:

A camcorder is a portable device for recording audio and video. Thus, option D is correct.

What is video?

A video is a recording of a motion, or television program for playing through a television. A camcorder is a device or gadget that is used to record a video. audio is the sounds that we hear and mix media is a tool used to edit the video.

Digital camcorders are known to have a better resolution. The recorded video in this type of camcorder can be reproduced, unlike using an analog which losing image or audio quality can happen when making a copy. Despite the differences between digital and analog camcorders, both are portable, and are used for capturing and recording videos.

A camcorder is a self-contained portable electronic device with video and recording as its primary function. A camcorder is specially equipped with an articulating screen mounted on the left side, a belt to facilitate holding on the right side, hot-swappable battery facing towards the user, hot-swappable recording media, and an internally contained quiet optical zoom lens.

Therefore, A camcorder is a portable device for recording audio and video. Thus, option D is correct.

Learn more about recording audio on:

https://brainly.com/question/27861365

#SPJ5

I need the answer to life. I cant live without my POGCHAMPS!

Answers

Answer:

Pray to God and ask him for help in life. May God bless you

Explanation:

Answer:

Pog

Explanation:

Poggers

Identify the type of data for each value below.
12.023
"Hello World
52

Answers

12.023 is float

"Hello World" is string

52 is int

Your teacher is nice. She/He has given it in the order.

The type of data for 12.023 is a float, "Hello World is a string, and 52 is a int.

What are the type of data?

The  type of data in computer science can be given as the data values that helps in the analysis of the type of operation that is to be performed. The data types in python are given as classes.

The type of data type is:

The point numbers are given as floating. Hence, 12.023 is a float.

The text form is given as string or str data type. Hence, "Hello World is a string.

The whole numbers positive or negative are given as integers or int. Hence, 52 is a int.

Learn more about data type, here:

https://brainly.com/question/22574321

#SPJ2

HELP PLEASE SOMEONE PLEASE HELP ME!!!!!

Answers

I feel it is C, but I am not sure if it is correct, I can only apologize if it is wrong.

What is the main citation style for English and humanities classes? Modern Language Association style (MLA) American Psychological Association style (APA) .edu style (EDU) .gov style (GOV)

Answers

Answer:

MLA

Explanation:

Answer:

A) Modern Language Association style (MLA) Is your answer!

Explanation:

If you think about it the other answers either don't fit or don't make sense! :)

Hope this helps! :)

My friend's newborn sister is so precious.
a. ri
c. fr
b. en
d. ie

Answers

She’s not precious ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

How do you halt an infinite loop?
by pressing the Control key and the

key

Answers

write code creating an infinite loop, with my new Excel, the Ctrl + Break no longer works. Neither does the Esc key, etc.

I've looked all over the web and it appears that Microsoft has a bug and doesn't care to fix it.

Is there a way to re-introduce the Ctrl + Break function to VBA so if this happens in the future I don't lose work / force close?

Answer:c

Explanation:ctrl and c stops a infinite loop

Which act passed by the US government in 1998 criminalizes the production and distribution of technology that intends to evade anti-piracy laws?

Answers

The Computer Fraud and Abuse Act I believe. Sorry if I’m wrong and I hope that it helps :)

Answer:

Digital Millennium Copyright Act (DMCA)

Explanation:

i got it right on plato

[Exceptions, Function calling another function] Write a function ticker() that first runs (calls) read_ticker() and then stores the returned dictionary. It then runs an interactive loop with the user in which the user is prompted for a company name. If the company name (key) is in the dictionary, then its ticker form and the IPO year is printed. Otherwise a warning is printed that the company name is not in the list. If the user just hits return without entering a name, the loop stops.




this is the function that needs to be called:
def read_ticker():
d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'), '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}
return d

Answers

def read_ticker():

   d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'),

        '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}

   return d

def ticker():

   di = read_ticker()

   while True:

       try:

           name = input("Enter the name of a company: ")

           if name == "":

               return

           print(di[name])

       except KeyError:

           print("Name not found! Please enter a valid name!")

ticker()

I hope this helps!

How many times is the coin tossed?

var heads = 0;
var tails = 0;
var rolls = 100;
for(var i = 0; i < rolls; i++){
if(randomNumber(0,1) == 0){
heads++
} else {
tails++
}
}

Answers

Answer:

100 times.

Explanation:

The code will loop until i is equal to or greater than roles. I starts at zero and increases by one after each toss.

The answer is what the other guy said

Identify 5 way computer are used in weather forecasting an traffic control​

Answers

Answer:

Computers are used for interpolating data, and analyzing very complicated data.

Explanation:

In forecasting we need to look at a lot of weather variables (temperature, dew point, pressure and wind speed to name a few). We only collect this data from weather observation sites which can be tens to hundreds of kilometers apart. In order to determine these values at locations between the observation sites we interpolate.

When you are forecasting you need look at a lot of data and determine what is going on to determine what is going to happen next. If humans did all the interpolating themselves for all the data they would never be able to issue the forecast in the time that is expected. Furthermore, now that we have very complicated values to analyze (vorticity for example) there is no way that a human can calculate the effect of all the various factors in play. A computer has to do it.

Computers are also required for using weather radar, and yes to a lesser extent satellite data.

alexa it is olewi.............................................

Answers

Answer:

jvksvksdvkbvkjsdkcn

Explanation:

Huh.........whattttt

Which statement correctly defines the function of a servo
motor's drive?
А.
It reverses the polarity of the magnets in the motor to change its direction.
B.
It amplifies the power to speed up the motor and generate more torque.
C.
It provides feedback to the controller about the motor's position and torque.
D
It computes the value of the torque produced for a given electric current.

Answers

Answer:

B . It amplifies the power to speed up the motor and generate more torque

Other Questions
In your own words, why was Brazil one of the last nations to abolish slavery? Water boils at 212F. Which temperature is an equivalent temperature? SWBST Summary StrategyThe Hunger GamesDirections: Use the excerpt from The Hunger Games and this graphic organizer towrite a summary.Please help this is urgent its due by today!!! 4/5x - 1/10 = 3/10 what is the value of x Use the figure to find the measure of angle 1. * Who do you consider an intellectual person? It can be someone you know, someone famous, someone from history, or even a fictional character. Try to list as many as you can. SOMEONE PLZ ANSWER Which of the following statements is true:ALongitude lines go up to 90 degrees.BThe Prime Meridian is located in Washington, D.C.CThere are 100 minutes per degree.DLongitude lines go up to 180 degrees. How many boxes should be shaded on the grid to show 3/8 x 3/4 What would a seductive decoy operate? Pls help i reall need help with thisSimplify Each1. 3 - {7 - [8 + (7 - 3)] }2. 12 - ( 3 - 4) - [8 - 6] + 53. - {2 - [7 - 8] + 2 - (1 - 3)}4. 6 + 32 + 35. 4+5- [ 8 - (245)]1 - 4 For a party, Samantha bought eight half gallon bottles of soda. About how many cups of soda did Samantha buy??? QH.The two-column proof below describes the statements and reasons for proving that corresponding angles are congruent:StepStatementsReasons1UV || WZGiven2Points S. Q, R, and T all lie on the same line.Given3mZSQT = 180Definition of a Straight AngleAngle Addition Postulate4m2SQV + m2VQT = m_SQT5Substitution Property of Equality6m2VQT + mZZRS = 180Same-Side Interior Angles TheoremSubstitution Property of Equality7m2SQV+mZVQT = m2VQT + mZZRS I need heeeeeeeeelp please # 22.- La organizacin de las ideas en un texto& expositivo se da por medio de...a) Indices y subtitulos.b) Titulos e indices.c) Titulos y subtitulos.Cd) Subtitulos y nexos. What was the main cause of the strike at Carnegie's Homestead Mill? Andrew Carnegie had employed Civil War veterans in place of steelworkers. Anarchists intended to blow up the Homestead Steel Works near Pittsburgh. Andrew Carnegie wanted to break up the power of the steelworkers' union. Steelworkers left their jobs to enlist as soldiers since war with Spain was likely. what is the value of the product 2/3 * 9/5 the pic the pic this is it The term judicial review refers to which of the following? A colleague has used computer modeling to design an improved enzyme. To produce this enzyme, the next step is to:___________.A) look for a bacterium that makes the improved enzyme.B) mutate bacteria until one makes the improved enzyme.C) determine the nucleotide sequence for the improved enzyme.D) synthesize the gene for the improved enzyme.E) use siRNA to produce the enzyme. HELP IDK WHAT TO DOOO