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

Choose the proper term to describe each of the following examples.
senate.gov:____
23.67.220.123:_____

SMTP acc name
Domain name
IP address

Answers

Answer:

senate.gov: Domain Name

23.67.220.123: IP Address

Explanation:

We need to choose the proper term to describe:

a) senate.gov

It is called Domain Name

The domain name is a component of a URL (uniform resource locator ) used to access web sites

b) 23.67.220.123

It is called IP address.

IP address is defined as unique string of characters that is used to uniquely identify each computer in the network.

The resistance in a particular kind of circuit is found using this formula: R1(R2)R1+R2.


Assuming all the variables are non-zero, which line of code will find the value of the resistance?


resistance = (R1 * R2) / (R1 + R2)

resistance = R1(R2) / R1 + R2

resistance = R1(R2) / (R1 + R2)

resistance = R1(R2) / (R1 + R2)

Answers

Answer:

resistance = (R1 * R2) / (R1 + R2)

Explanation:

PYTHON doesn't recognize multiplication like this example >> 3(4)

This is why PYTHON uses this symbol (*)

Businesses with very large sets of data that need easy access use sets of cartridges with robot arms to pull out the right one on command.This is known as______.

a.
removable hard drives
b.
smart cards
c.
mass storage
d.
USB drives

Answers

Answer:

C. Mass Storage

if incorrect then:

A. Removable Hard Drives

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!

Which list method allows elements in a sequence to be removed and added at either end of the structure?
a) index
b) queue
c) stack
d) deque
PLEASE HURRY

Answers

Answer:

b) queue

Explanation:

Queue is also an abstract data type or a linear data structure, just like stack data structure, in which the first element is inserted from one end called the REAR(also called tail), and the removal of existing element takes place from the other end called as FRONT(also called head).

Answer:

B is right!

Explanation:

__ allow(s) users with mobility issues to control the computer with their voice.

Speech input software

Tracking devices

Head pointers

Text-to-speech

Answers

Answer:

Speech input device

Explanation:

I think this is the answer

Answer: speech input software

Explanation: got it right on edgen

How do you code a website?

Answers

Answer:

Learn the basics of HTML.

Understand HTML document structure.

Get to know CSS selectors.

Put a CSS stylesheet together.

Get Bootstrap.

Pick a design.

Customize your website with HTML and CSS.

Add content and images.

Explanation:

Keith has data in row 12. However, he would actually like that row to be empty. Keith should _____. A.) double-click on cell A12 and press Backspace B.) highlight row 12 and press Delete C.) use the arrow keys to move to row 12 and press Enter or Return D.) use the mouse to click row 12 and press the space bar

Answers

Answer:

B.)

Explanation:

In order to have that row, empty Keith should highlight row 12 and press Delete. This would delete all of the data in the row without effectively deleting the formulas. Therefore, allowing you to easily reuse the row if you need to add data to it once again. So this would be the best option for Keith as it easily solves the problem that he is having.

What is the
binary code
for
"DMS"?

Answers

Answer:

D= 01000100

M= 01101101

S= 01110011

Explanation:

PLEASE HELP ASAP 100 POINTS 2 MORE MINUTES!!!!! :/
Use the (blank) to add a new slide to your presentation.
Slide plane
Standard toolbar
Insert menu
Slide view

Answers

Answer:

Insert Menu

Explanation:

This is what the passage that I read for school said:

In most programs, you can add a new slide from the Insert menu.

(Java) Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes is 100.0 hours or 4.166666666666667 days.​

Answers

import java.util.Scanner;
public class MinutesConversion {
private static Scanner inputDevice;
public static void main(String[] args) {
int minutes, hours;
float days; // float for decimal point

inputDevice = new Scanner(System.in);
System.out.println("Please enter minutes for conversion >> ");
minutes = inputDevice.nextInt();
hours = minutes / 60;
days = hours / 24.0f;


System.out.println(+ minutes + " minutes is " + hours + " hour(s) or" + days " days");
}
}

The program is a sequential program, and it does not require any conditional statement or iteration.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 //This declares minutes as a double data type

 double mins;

 //This creates a Scanner object

 Scanner input = new Scanner(System.in);

 //This gets input for minutes

 mins = input.nextDouble();

 //This converts the minutes to hour and days, and also print them

 System.out.println(mins/60+" hours or "+mins/1440+" days");

}

}

At the end of the program, the equivalent number of hours and number of days are printed.

Read more about similar programs at:

https://brainly.com/question/8598360

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

What will be displayed in the console when the following program runs?

var count = 0
while (count != 5){
console.log(count);
count = count + 2;
}

Answers

Answer:

The integer, count, will be stuck in a infinite while loop, and the console will keep adding 2 to count, so it'll look something like this.

0

2

4

6

8

10

12

14

and so forth...

Explanation:

The while loop will never stop because count can not equal to 5 because you can't add 2 to another multiple of 2 to get 5.

Because count cannot reach 5, and you cannot add 2 to another multiple of 2, the while loop will never come to an end.

What displayed in the console when program runs?

An endless loop is a section of code that never reaches the ending condition, hence it keeps running indefinitely. An infinite loop may cause your software or browser to crash or freeze. Infinite loops must be understood in order to avoid such situations.

When a condition always evaluates to true, an infinite loop happens. Typically, this is a mistake. You may, for instance, have a loop that decreases until it hits zero.

Therefore, It will resemble this because the integer count will be locked in an unending while loop and the console will keep adding 2 to count. 0, 2,4, 6, 8, 10,12, 14 The program will end in an infinite loop.

Learn more about program runs here:

https://brainly.com/question/19339163

#SPJ2

Using the rule of thirds places items of interest in a photograph along one of the imaginary gridlines or at the point of their intersection.

True
False

Answers

I think the answer is it’s true

Answer: tureee

Explanation::)

Where do high tides occur? (Select two.)
WILL GIVE BRANLEST PLS ASAP

only at the South Pole

on the side of Earth opposite the moon

on the side of the Earth facing the moon

only at the North Pole

at both the North and South Poles

Answers

Answer: The Moon's gravitational pull generates something called the tidal force. The tidal force causes Earth—and its water—to bulge out on the side closest to the Moon and the side farthest from the Moon. These bulges of water are high tides. High tide (left) and low tide (right) in the Bay of Fundy in Canada.

Explanation:

So the two I think will be 1. On the side of the earth facing the moon and I think both south and North Pole

A group of friends go on a holiday to the mountains. On the trip, they take a lot of pictures. One of the friends uploads the pictures on his blog. Which image format is best for uploading photos? The image format is best for uploading photos.

Answers

Answer: PNG

Explanation:

PNG stands for Portable Network Graphics, with so-called “lossless” compression.

A group of friends goes on a holiday to the mountains. The image form that is best for uploading photos is PNG. The correct option is B.

What is the PNG format of the image?

To display high-quality digital images, websites frequently use the PNG file format. PNGs, which were developed to outperform GIF files, provide not just lossless compression but also a significantly wider and brighter color spectrum.

Raster image files come in both JPEG and PNG varieties. This indicates that they are composed of a set number of color pixels.

To display high-quality digital images, websites frequently use the PNG file format. PNGs, which were developed to outperform GIF files, provide not just lossless compression but also a significantly wider and brighter color spectrum.

Therefore, the correct option is B. PNG.

To learn more about the PNG format, refer to the link:

https://brainly.com/question/20293277

#SPJ2

The question is incomplete. Your most probably complete question is given below:

PNG

JPG
JPEG

GIF

Mr. King is in an area on the taskbar opening programs he use frequently, what is this area called? Q_____ L_______h.

Answers

Answer:

Microsoft Windows. The default settings for the taskbar in Microsoft Windows place it at the bottom of the screen and includes from left to right the Start menu button, Quick Launch bar, taskbar buttons, and notification area.

Explanation:

Why is it important to turn a filter off when you have found what you are looking for?

A. The items the filter finds will be deleted from Outlook,
B. The filter will keep looking for items based on the criteria.
C. The filter only works in the background when it is turned off
D. The items that were filtered out, including new items, are not visible,

Answers

I think it’s D

Hope it helps :)

Answer:

D -- The items that were filtered out, including new items, are not visible.

Explanation:

Just took the test, hope this helps! :)

What would happen if a program try to access a variable that was to find locally in another part of the program?

Answers

They project would fail aka not succeed

explain how the organ systems work together to warm up the body on a cold day

Answers

Answer:

Your body is to cold ,blood vessels in the skin contract , and blood flow to the extremities (arms and legs)slows . muscles contract and relax rapidly which generates  heat to keep you warm..

Explanation:

Hope this helps :)

Answer:

Sample Response: The brain, through the nervous system, sends signals to the muscular system, causing the muscles to move rapidly. This rapid motion produces heat in the body and is observed as shivering. The brain also sends signals to the muscles right beneath the skin. These muscles shorten and tighten, causing the hairs on the skin to stand up. When the hairs stand up, heat is kept in the air trapped within the hairs, which keeps the body warm.

Explanation:

Write a for loop in python that prints 10 random numbers between 1 and 100 inclusive.

Answers

import random

for x in range(10):

   print(random.randint(1,100))

Select the correct answer.
Adrian is organizing a training lecture for his students in various states simultaneously through radio, TV, and the Internet. What is this event
known as?

A. webcast

B. simulcast

C. broadband

D. online lecture

Answers

Answer:

a

Explanation:

a webcast is the answer I think

What is the quickest way to remove all filters that have been applied to a worksheet?

Click each filter and select Clear Filter.
Click the Filter button in the Sort & Filter group.
Select the worksheet and click Clear Filter.
Select the worksheet and click Delete All Filters.

Answers

Answer:

Select the worksheet and click Delete All Filters.

Explanation:

Answer:

Click the Filter button in the Sort & Filter group

Explanation:

I am not sure if you don't believe my answer go with your gut.

Click "Thanks" if this helped! :)

At the start of the school year, Brianna’s history teacher announces that students’ final grades will be weighted based on how they do in three categories: exams (60 percent), final presentation (30 percent), and class participation (10 percent). Which strategy would most likely help Brianna get the best grade? spending more time studying for exams than creating the final presentation splitting her time evenly between studying for exams and creating the final presentation concentrating on creating the final presentation and speaking up in class working hard at participating in class and studying for exams

Answers

Answer:

it is A

Explanation:

did on edge test

Answer:

A

Explanation:

JAVA
Write a program that requests the user input a word, then prints every other letter of the word starting with the first letter.
Hint - you will need to use the substring method inside a loop to get at every other character in the String. You can use the length method on the String
to work out when this loop should end.
Sample run:
Input a word:
domain
dmi

Answers

import java.util.Scanner;

public class JavaApplication42 {

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Input a word:");

       String word = scan.nextLine();

       for (int i = 0; i < word.length(); i+=2){

           System.out.print(word.substring(i,i+1));

           

       }

   }

   

}

I hope this helps!

The program is an illustration of loops.

Loops are used to carry out repetition operations; examples are the for-loop and the while-loop.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main {

public static void main(String args[]) {

//This creates a Scanner object

Scanner input = new Scanner(System.in);

//This prompts user for input

System.out.print("Input a word: ");

//This gets input from the user

String userinput = input.nextLine();

//The following iterates through every other character of userinput  

      for(int i =0;i<userinput.length();i+=2) {

//This prints every other characters

          System.out.print(userinput.charAt(i));

}

  }

}

The above program is implemented using a for loop

Read more about similar programs at:

https://brainly.com/question/19104397

Ryo currently earns a monthly salary of $2200. She has been offered a raise of $250 per month. How much more will she earn per year at her new salary?

Answers

Answer:

$3,000 more per year

Explanation:

Since the difference between her old salary and her new salary is $250 per month, then we can simply multiply this amount by the 12 months in a year in order to calculate how much more she will be earning per year on her new salary...

$250 * 12 = $3,000

Therefore, we can see that Ryo will be earning an extra $3,000 more per year with her new raise when compared to her old salary.

Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program needs to output the phrase Greater than 45.6.

Answers

Here is the solution. Let me know if you have any question

Myra just got the latest computer game and wants to play it on her desktop. When she plays the game, she notices that it is sluggish and the animations are not very clear. What can she do to improve her gaming experience?

Answers

Answer:

Ram/cpu/gpu... Many many things she can do

Explanation:

It may be a issue of internet bandwith, if this new game requires a insane ammount of internet then it may run low FPS (frames per second) and make myra's game look slughish,but anouther issue may be the ram or cpu, like if this is a new game and you've always played like simple games, so your running on persay a core i3 or i4, it aint gonna cut it on a newer game, you gonna need a probably core i5 or i7, or be like any sane person and switch to amd, it may be a bit pricy but if you want nice clean gaming, then amd is the way to go

Also while you are at it get a ssd

I hope this helps "-"

Answer:

She can upgrade her hardware/software

Explanation:

For hardware, she can troubleshoot any broken components that are possibly in the computer, upgrade cards/fans, etc.

and for software she can upgrade her operating system, upgrade or download any missing frameworks, clear out any software that is taking too much CPU/RAM in the background using task manager/system viewer/KSysGuard, etc.

An employee was watching Jessica, an IT employee, typing in many different confusing terms. Jessica explained that she needed to fix the code and test a couple of programs before she could train the employee on how to use the software. Which IT career would be responsible for these tasks?

Answers

Answer:

Programming and Software Development

Explanation:

Answer:

b on edge

Explanation:

Which Python expression results in 49?

7 * 2

7^2

7 // 2

7 ** 2

Answers

Answer:

7^2

Explanation:

7^2 is the same as 7*7

Answer:

7^2 ( ^ ) this sign help us

Other Questions
HELP PLEASE ASAPSolve for x in the diagram below 7. Constructed Response: Work and answer will be scored on a 3-pointrubric. A garden is bordered on three sides by a tiled walkway. (seediagram below). PART A: Write a polynomial that represents the total areaof the garden AND the walkway combined, in standard form. *Fencex ftx ftGarden10 ft-25 ftWalkwayx ft Paris vs. John Proctor? HELPP PLEASE !!!!!!!!! ASAP The reader can infer that A. young dogs cannot play games. B. Capote is not very smart. C. some dogs will never fetch. D. dogs can be trained to fetch. Marking brainliest IF ITS RIGHT and !OO points 3. Nous avonstortue.4. J'ai...oiseaux5. Tu aspoisson rouge ?oiseau.6. Ils ont3Mets les phrd HELP!While drilling metal, Ben poured oil over the area. Which best explains why he did this?Ben was trying to reduce fluid friction. Ben was trying to reduce kinetic friction. Ben was trying to increase fluid friction. Ben was trying to increase kinetic friction. quiero hacer un resumen Which choice tells the two main ways minerals are classified?how they can be used and how rare they arechemical makeup and crystal lattice structurechemical makeup and how they can be usedhow they can be used and the country they are found in its science ANSWER ASAP PLEASE! What did Aristotle think regarding fossil shells?that sedimentary rock was formed in layersthat geologic time could be determine by rock stratathat geologic time could be calculated by shell depositsinferred that fossils were once part of living animals A biomolecule with the molecular formula C5 H10 O5 is most likely an example ofSelect one:O a. a monosaccharideob. a nucleotideO c. an amino acidO d. a fatty acid Which of the following is NOT Use the figure to identify the correct rule for the translation. (x, y) Right-arrow (x 3, y + 4) (x, y) Right-arrow (x + 3, y 4) (x, y) Right-arrow (x 4, y + 3) (x, y) Right-arrow (x + 4, y 3) is the product of 8 negative numbers and 7 positive numbers a positive number or a negative number? Some pathogens, such as HIV, can be transmitted both vertically and horizontally. How do you expect virulence of such pathogens to compare with that of pathogens that are transmitted? On a recent day eight-year-olds were worth $11 and 32 where where is $44. Enter an equation of the Fort on a recent day eight euros worth $11 and 32 were where is $44. Enter an equation of the form Y equals KX to show the relationship between the number of euros and the value in dollars. Let why is a value in dollars and XB the number of euros What is a3 of the sequence 13, 18, 23, 28, 33, 38... Synthesis of ATP by oxidative phosphorylation is a seriously endergonic reaction. What is the immediate reservoir of stored energy that drives this process?a. the electron transport chain b. oxygen c. proton gradient or energized membrane d. NADH+ H and FADH2 e. glucose After four years of operation, the Federal Theatre Project lost its federal funding because, among other things, many members of Congress claimed that the project was sympathetic to communism. Compare the history of the Federal Theatre Project to the controversies surrounding the National Endowment for the Arts in the 1990s. How are the controversies similar? How are they different?