1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Over [174]
3 years ago
7

Using the Internet, search and discuss why naming conventions are important and why programmers should consistently follow them.

What problems can arise in naming variables if one convention is not followed.
Computers and Technology
1 answer:
LiRa [457]3 years ago
7 0

Answer:

Answered below

Explanation:

Some variable naming conventions include;

1) Variable should begin with either a letter or an underscore.

2) Variables having multiple words should have the first letter of every word after the first word, capitalized. This is the camelCase style.

3) variables should not be named after any of the inbuilt keywords except on special operations to override the original function of such keyword.

4) variable names are case-sensitive.

The importance of following these conventions is to maintain readability and consistency of code. Failure to follow these conventions may lead to chaotic codes, bugs and inefficient performance.

You might be interested in
Pros and cons of using the internet
MAVERICK [17]
It is easy to find information, but it is not always right.
7 0
3 years ago
Read 2 more answers
Your eighty-three-year-old grandmother has been using a computer for some time now. As a way to keep in touch, you frequently se
Sergeu [11.5K]

Answer:

Cultural lag

Explanation:

Cultural lag is a situation where by a society experiences technological development at a rate faster than the development that occurs in culture and general way of life.

A very good example is that it takes a longtime before cultural development can match up with technological developments and advancements thus leading to social problems due to lag. The cultural lag theory was formed in 1922 by William F Ogburn a sociologist.

3 0
3 years ago
A user of the system
iragen [17]

Answer:

ummm what system. have to be more specific ^^

Explanation:

8 0
3 years ago
Write a program that displays, 10 numbers per line, all the numbers from 100 to 200 that are divisible by 5 or 6, but not both.
FromTheMoon [43]

Answer & Explanation:

To print 10 on a line and each number separated by space; you make the following modifications.

print(str(i)+" ",end=' ')

str(i)-> represents the actual number to be printed

" "-> puts a space after the number is printed

end = ' ' -> allows printing to continue on the same line

if(count == 10):

     print(' ')

The above line checks if count variable is 10;

If yes, a blank is printed which allows printing to start on a new line;

The modified code is as follows (Also, see attachment for proper indentation)

count = 0

for i in range(100,201):

     if(i%6 == 0 and i%5!=0) or (i%5 ==0 and i%6!=0):

           print(str(i)+" ",end=' ')

           count = count + 1

           if(count == 10):

                 print(' ')

                 count = 0

7 0
4 years ago
If you could build your own personal computer, what components would you purchase? Put
lesya [120]

Always start with the choice of a CPU first because that would determine other components. For example, let's say I want want to use AMD Ryzen Threadripper 3990X as the CPU, all I need to do is to refer to its specification to know what other componets will be compatible.

With the specification, we can tell that this CPU is only compatible with DDR4 RAM (up to 4 slots) and PCIe 4.0 Graphic Card. So, I'd probably get 8 DDR4 RAM (any brand should be fine) and a RTX3080Ti GPU if there is no budget limit.

Next, since we have chosen the CPU, RAM and GPU, we can now choose a motherboard based on these choices. In other words, all we need to do is look for a motherboard that is compatible with our choice of CPU, GPU and RAM.

Then, I'll look for a cooler for the CPU because the stock cooler usually isn't good enough if I want to overclock the CPU.

Next, I would choose a power supply unit (PSU) that can provide enough power for the GPU that I have selected and compatible with the motherboard.

Next, I'd decide what data storage to use for this custom built pc. I highly recommend at least one PCIe 4. 0 SSD as a boot drive and one standard SATA Hard Disk to store all data. I'll also add in a SATA DVD drive. SATA connectivity is pretty standard for storage drives, so they should all be compatible.

Okay, let's breakdown the cost (without any peripherals such as keyboard, monitor, mouse, etc):

  • CPU AMD Ryzen™ Threadripper 3990X ($5546.20)
  • GPU Gigabyte AORUS MASTER GeForce RTX 3080 Ti ($3049.03)
  • Motherboard MSI Creator TRX40 ($1359.99)
  • Memory Corsair Dominator Platinum 128 GB (8 x 16 GB) DDR4-3200 CL16 Memory ($3998)
  • Storage Samsung 960 Pro 2TB ($1999.99)
  • Cooler NZXT Kraken X72 Liquid CPU Cooler ($479.90)
  • Case Phanteks Enthoo Elite ATX Full Tower ($915.98)
  • Power Supply Corsair AXi ($787.99)
  • Operating System Windows 10 Pro ($199.99)

The total cost would be around $18,283.50

How does it compare to a similar computer purchased? With these choices, there isn't any similar pre-built computer by other brands such as Dell or HP because this pc is VERY powerful and highly customizable. The key difference is probably the lack of after-sales customer service if you buy components separately from different stores.

3 0
3 years ago
Other questions:
  • Here are the codes for producer and consumer problems.
    10·1 answer
  • Read the sentence from the first paragraph of Silent
    6·2 answers
  • A formula =A1+B2 is in cell D8. If you copy that formula to cell D9, what is the new formula in cell D9? A. '=A1+B2 B. '=A2+B3 C
    8·2 answers
  • I have answered 22 questions and my messages are still not working what is it that i'm doing wrong?
    6·1 answer
  • Ok so I know this is the most random question to ask on brainly, but does anyone know how to copy on placement in sims 4 for pc?
    14·2 answers
  • PLS HEEELLLP ASAP, DONT JOKE
    9·2 answers
  • A computer connected to the internet that ask for data is a
    15·1 answer
  • F. Practical Questions
    7·1 answer
  • What was Bill Gates purpose for starting a business?
    12·1 answer
  • What type of html list will automatically place a list marker, or bullet point, indicator in front of each item? group of answer
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!