Which of these is a programming best practice?
Use general variable names such as V1 and V2.
Use lots of comments in the code.
Make lines of code as long as possible.
If you need to repeat a function, paste a copy of it each time you need it.

Answers

Answer 1

Answer:

B

Explanation:

You should question C. That looks like a very poor practice, but sometimes it can't be helped. Try and make short lines

D also looks questionable. You'll wind up with pages and pages of code. A better practice is to create subroutines (functions and procedures in the language I use) and then learn how to pass parameters.

A is not a good idea either because if you look at the code a month later, chances are you won't know the difference between v1 and v2.

The best answer is B. But how many programmers do it?

Answer 2

Answer:

B. use lots of comments in the code

Explanation:


Related Questions

How is this a SyntaxError?(python3)

Answers

Answer:

1 bracket, instead of 2 is closed in line 9

Explanation:

Given

The attached code

Required

Why is line 10 a syntax error?

The error points to line 10.

From the attached code, the line 9 is:

amount = int(input("Enter cheese order weight: ")

When converting an input to integer, the syntax is:

variable = int(input("Prompt"))

But, only 1 bracket is closed in the program, where 2 is required.

This is definitely a syntax error

Answer: theres only one bracket

Explanation: got it right on edgen

Complete the sentence with the correct response. In a two-way selection, if the initial statement is evaluated as , the code skips to the ELSE command.

Answers

Answer:

True.

The code skips the else command

Explanation:

I will answer this question with the following code segment

n = 1

If n > 0:

  Print("greater than 0")

else:

  Print("not greater than 0")

From the code segment above

Print("greater than 0") will be executed because the condition If n > 0 is true

Since the if condition is true, the else condition will not be executed

7. Application software is a program or group of programs designed for end-users.
True
False

Answers

Answer:

True

Explanation:

A software refers to "instructions that tell a computer what to do. Software comprises the entire set of programs, procedures, and routines associated with the operation of a computer system" (Encyclopedia Britannica).

There are two types of software;

i) system software

ii) Application software

An application software helps the user to perform specific tasks on the computer. It was specifically designed for the end user.

A typical example of an application software is the Microsoft office which could be used to prepare documents using the computer.

Answer:

true

Explanation:

The first form of the rocket is believed have been developed in _?
China
Germany
Greece
Poland
i will mark u brainliest mf

Answers

China in 1100 AD, if I am wrong I'm sorry.

Answer:

Greece

Explanation:

It is believed that the reaction principle, the physical law of rocket motion, was first demonstrated about 360 B.C. by a Greek named Archytas. Far from demonstrating the reaction principle in a weapon, Archytas simply filled a hollow clay pigeon with water. He then suspended the clay pigeon by string over a fire. The heating of the water produced steam, and the clay pigeon could move under its own power as steam escaped through strategically placed holes. Archytas could hardly have imagined that the same basic principle would one day carry men to the Moon.

22. (a) List two arithmetic
operations that can be
performed on a row of
numeric data in a word
processing
table.​

Answers

Answer:

Addition

Division

Explanation:

Basic calculations which can be performed on numerical data may include ; Addition, subtraction, multiplication, division and so on. For a row of numeric data, arithmetic operation across the rows may include taking the sum of the values, thus can be achieved using the '+' operator symbol. Additionally, the product of the values can also be obtained by using the '*' operator symbol to obtain the product of the row values.othwr arithmetic operations include the division operation, modulus operator which obtains the remainder value of dividing to numbers and the floor division which gives the integer value for a division without the the remainder.

Which of these statements regarding real-time strategy games is true?
A.
They only allow one player to move at a time.
B.
They do not work well on tablets.
C.
They feature memorable characters.
D.
They do not work well on mobiles.
E.
They offer plenty of time for players to reflect.

Answers

Answer:

E

Explanation:

Answer:

e

Explanation:

Write a program in Java that asks the user to enter four weighted assessment grades, calculate the average, then display the average with the message: "Student Pass" if the average is greater than or equal 60 or the message "Student Fail" otherwise. The details of the assessments and weights are as follow: Homeworks: 20% Labs: 15% Midterm: 25% Final: 40%

Answers

Answer:

Explanation:

In order to calculate the weighted average, the grade itself is multiplied by the percentage of the category and then these values are summed. This sum is then divided by the total percentage of the portfolio.

import java.util.Scanner;

class Main {

   public static void main(String[] args) {

       double sumOfWeights = 100;

       

       

       Scanner in = new Scanner(System.in);

       

       System.out.println("Please Enter Homework Grade: ");

       double homework = in.nextDouble() * 20;

       System.out.println("Please Enter Labs Grade: ");

       double labs = in.nextDouble() * 15;

       System.out.println("Please Enter Midterm Grade: ");

       double midterm = in.nextDouble() * 25;

       System.out.println("Please Enter Final Grade: ");

       double finals = in.nextDouble() * 40;

       

       double average = (homework + labs + midterm + finals) / sumOfWeights;

       System.out.println("The Average of these Weighted Grades is " + average);

   }

   

}

Is brainly allowed because you don't Really learn from this..?

Answers

Explanation:

I don't know it's some time good and some times bad

Answer:

i bet ur like that one kid who tells the teacher that she forgot to collect the homework even tho u aint even do it

True or False

Explanation:

write 3 things that can't be done without technology.

Answers

Answer:

Hacking Online Orders Math

Explanation:

1.Shopping 2.Talk long distance. 3.Watch a movie

what is the deck of a suspension bridge called​

Answers

Answer:

The main forces in a suspension bridge are tension in the cables and compression in the towers. The deck, which is usually a truss or a box girder, is connected to the suspension cables by vertical suspender cables or rods, called hangers, which are also in tension. I think this is the answer

How do you access the

internet in your school and at home?​

Answers

I think they want you to answer personally, but we access internet through computers, ipads, phones, etc. using wifi or mobile data to attain connection.

Which of the following items is the most important piece of
information to include in a page header or footer?
O Author name
Grade
Date
Page number

Answers

Answer:

Page number

Explanation:

Hope this helps

1) "Information systems are revolutionizing the way businesses function in the 21st century," Do you agree or disagree with this statement? Provide evidence to support your position, (2 points)​

Answers

Answer:

true

Explanation:

everything is computerized. banks, shopping, financial business records, ect

___are designed to infect and cause damage to operating system files, computer registry, and other locations on the motherboard

Answers

Answer:

Viruses

Explanation:

virusues are designed to infect and cause damage to operating system files, computer registry, and other locations on the motherboard

Which of the following tasks can you perform using a word processor?

insert a bulleted list in a document
check a document for spelling errors
edit a video for inclusion in a document
create an outline of sections to be included in a document
set a password to restrict access to a document

Answers

Answer:

check a document for spelling errors

Explanation:

With a word processor, you can easily edit and make changes to a document, move text around in a document, add images, change fonts, check for spelling errors

Give 3 features and uses of
Desktop
laptop
palmtop computer

Answers

Answer:

A Palmtop or hand-held personal computer is small enough to hold in one hand and operate with the other. Also called a handtop, these ultra-small computers may have specialized keyboards or keypads for data entry applications or have small qwerty keyboards.

• Palmtops are also called PDAs, hand-held computers and pocket computers.

• Palmtop or hand-held personal computer, lightweight, small, battery-powered, general-purpose programmable computer. It typically has a miniaturized full-function, typewriter like keyboard for input and a small, full color, liquid-crystal display for output. In addition to an operating system that is compatible with that of a desktop computer, a palmtop will typically contain a word processor, a spreadsheet program, and a calendar and phone book. A variety of other programs can be loaded and executed, and data can usually be transferred to and from a desktop computer. Although some palmtops are like personal digital assistants in that they accept handwritten or touch screen input, they generally differ in that the palmtop has more memory, a keyboard, and a greater variety of available programs.

Explanation:

Brainliest for correct answer :)
a. X = A NOR B
b. X= NOT (A OR B)
c. X = A OR B

Answers

the answer is A, the logic circuit is a NOR

A cell is the intersection of a row and a column, identified by a letter and number.

True or false

Answers

Answer: True

hello how are you

Answer: True hope it helps

Brainliest for correct answer :)
How many different input combinations will be considered in the truth table, when there are 2 Inputs to the logic circuit?

Answers

Answer:

hey there, it's 4 different input combinations (TrueTrue, TrueFalse, FalseFalse,FalseTrue).

Which program will have the output shown below?
12
13
14
>>> for count in range(12, 15):
print(count)
>>> for count in range(15):
print(count)
>>> for count in range(12,14):
print(count)
>>> for count in range(14):
print(count)

Answers

Answer:

>>> for count in range(12,14):

print(count)

Which of the following statements represents a scientific bias?


Clean all containers to remove residue from the previous steps.

Use data from the previous steps because they show better results.

Make sure to follow every step in the procedure.

The scale needs to be calibrated to ensure accuracy.

Answers

Answer: Use data from the previous steps because they show better results

Explanation:

A scientific bias occurs when there's a deviation between the observations of a researcher and the accurate representation of data and results.

In this case, the use of data from the previous steps because they show better results will bring about a data bias as it'll lead to inaccuracies of the data being represented.

In the Business world people are often measured by their???
A- soft skills
B- hobbies
C- iq
D- technical skills

Answers

Answer:

D

Explanation:

You need skills to succeed!!

Answer is D !!!!!!!!

I need help please and thank you

Answers

Answer:

Explanation: For "BEST way to handle the situation," try Option 1, because it would possibly help them or make the Technical Support Representative do less work.

For "WORST way to handle the situation," Option 4 would be the best because you're basically just hanging up on the person.

Can someone tell me how to hit on a link on Brainly to see the answer

Answers

no, please do not hit on links. they're viruses i'm pretty sure.
Make sure to report the answer just in case

what do you mean by formatting the document?​

Answers

Answer: See explanation

Explanation:

Document formatting simply refers to how a document is laid out. It involves specifications about the look of a document.

During formatting of a document, some of the things done include alignment, margin, font, color, font size, indentation etc. All three eventually gives the document its look.

Does anyone know how to do 8.3 Code Practice on Edhesive?

Answers

Answer:

nums = [14, 36, 31, -2, 11, -6]

print(nums)

Explanation: That should be 100%.

The Code Practice on Edhesive will be represented with the language of python language. there will be arrays and lists that will be presented. Thus, option A is correct.

What is code?

A collection of commands that will be presented is referred to as computer code. It's also the name that was given to the source code.  The translator has prepared for computer execution that will be presented.

Code is usually presented with a focus on producing various code-correct internet, application forms as well as a phone application.

The inputs will be

numbers = input()

Splits of numbers will be presented as

numList = numbers.split(' ')

Iterates will be presented with the list:

for i in range(len(numList)):

Conversion of every agreement will be;

 numList[i] = int(numList[i])

The final line will be:

print(numList)

Learn more about code, here:

https://brainly.com/question/20712703

#SPJ6

The question is incomplete, Complete question probably will be  is:

8.3 code practice adhesive

Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.

14 36 31 -2 11 -6

Sample Run

[14, 36, 31, -2, 11, -6]

while
norma
mean
cinta
to the user
a.) Define the term microcomputers.​

Answers

Explanation:

Microcomputers are computers designed around a microprocessor, smaller than a minicomputers or a mainframes.

Hope it will help :)❤

Can someone write this in java? Also, does anyone know how to do Edhesive assignments? I NEED HELP!!!!!

Answers

Answer is in the file below

tinyurl.com/wpazsebu

The 60-watt light bulb has a 400 hour life expectency how much will it cost to operate during its time

Answers

Answer:

$2.40

Explanation:

the unit electricity bill is kilo watt hour.

The 60-watt light bulb has a 400 hour life expectency means it will consume

60×400/1000 = 24 KWh units of electricity. Let us suppose each unit of electricity costs is 10 cents.

Then 24×10 = 240 cents  = $2.40

When multiple columns in a query are sorted simultaneously, which one will be the primary sort?

the primary key column

the middle column

the rightmost column

the leftmost column


THE ANSWER IS D

Answers

Answer:

Left most column

Explanation:

I just did the quiz

Other Questions
Fred went to his local zoo that featured 6 whale exhibits. If the zoo features 15 exhibits in total, then what percent of the zoo's exhibits feature whales. WILL GIVE BRAINLIEST Chinese, I need help please ASAP!! Perry Investments bought 2,000 shares of Able, Inc. common stock on January 1, 20X1, for $20,000 and 2,000 shares of Baker, Inc. common stock on July 1, 20X1 for $24,000. Baker paid $2,400 of previously declared dividends to Perry on December 31, 20X1. At the end of 20X1, the fair value of the Able stock was $18,000 and the fair value of the Baker stock was $28,000. The stocks were purchased for short-term speculation prior to the effective date of the change in accounting rules for equity investments. Perry owns 10% of each company.Perry should record the receipt of the Baker dividend as:______a. DR Cash 2,400 CR Investment in Baker 2,400b. DR Cash 240 CR Dividend income 240c. DR Cash 2,400 CR Dividends receivable 2,400d. DR Dividends receivable 2,400 CR Dividend income 2,400 Emergency help please thank you The truth is that I have a very high salary and the office is very close to my home. However, the problem is since the day is started I ________ very few free weekends and I always work until very late in the evening.A) HAVE B) HAVE HADC) HAD Does anyone know this cause I need to understand how to do this. William had $500 in his bank account. He purchased textbooks for $285. He wants to spend the remaining amount of money on meals. He estimates that each meal costs $6. What is the greatest number of meals William will be able to buy? A circle has radius 3. What's the area? a28.26 b28.14 c6.28 d29.56 Clarissa is a computer programming consultant. When a client states that they have an extremely complex programming task, which of these programming approaches is Clarissa most likely to recommend?Group of answer choicesconverting from binary to decimalcreating algorithmsa top-down approacha bottom-up approach explain demand of money Use either the commutative property or combine like terms to create an equivalent expression from the expression 9(2j + 5j). What are the different approaches to foreign policy? True or False: If two parallel lines are cut by a transversal, each pair of supplementary angles are congruent Can someone please help me with math. The first American flag to have red and white stripes and white stars on a blue field was flown in 1776, shortly after the United States declared its independence from Great Britain. Legend has it that a Philadelphia seamstress named Betsy Ross was hired by George Washington himself to create this flag. There is no evidence that this legend is true, and no one knows for certain who made the first flag, which had 13 stars and 13 stripes. However, we know for a fact that the first flag to have 50 starsthe one we have todaywas designed by a high school student. In 1958, Bob Heft was a 17-year-old student at Lancaster High School in Ohio. At that time, the United States had only 48 states but was on the verge of accepting two more: Alaska and Hawaii. The U.S. flag at the time had six neat rows of eight stars each. What would be the best way to add two more stars while keeping the arrangement neat and orderly? This was the question that Bobs history teacher posed to the class. The teacher gave the students an assignment: design a flag with 50 stars. Bob spent hours in the attic of his house, cutting up a 48-star flag and rearranging the stars until they fit just right. He was pleased with his solution to the problem, but his teacher found it less than perfect and gave him a B minus. Outraged, Bob told his teacher that he was going to send his design to his member of Congress, Walter Moeller. His teacher replied that if Bobs design was accepted as the new flag, he would be more than happy to change the grade to an A. A year later, Bob had graduated and was working as a draftsman when he received a call at work. He never would have imagined a call from President Eisenhowerbut that's who it was! Now that Alaska and Hawaii had been admitted as states, Congressman Moeller had succeeded in having Bob's design chosen as the new U.S. flag. Bob Heft was invited to Washington, D.C., for a ceremony during which his design was officially adopted as the new flag of the United States.Read the excerpt from A Flag with 50 Stars. Now that Alaska and Hawaii had been admitted as states, Congressman Moeller had succeeded in having Bob's design chosen as the new U.S. flag.How do these sentences contribute to the text?They develop the idea that Bob's design is exceptional, despite what his teacher thought.They develop the idea that, without Congressman Moeller, there would not be a new U.S flag.They imply that the people of Alaska and Hawaii prefer Bob's design over other options.They show it takes several years for the U.S. government to approve a new flag design. -Determine whether the graph is a function. if you break down the word interactions, it means the actions between. How would you define interactions between two species? Thomas Jefferson wrote, "Determine never to be idle ... It is wonderful how much maybe done if we are always doing." Do we accomplish more if we are always doingsomething, or does inactivity also serve a purpose? Take a position on this question.Support your response with reasons and specific examples. A 34-foot tall utility pole is supported by two wires that are anchored 8feet from the base of the pole.how many feet of wire is needed for the support wires?