Question

What is the significance of details and accuracy in programming? Name at least two situations where...

What is the significance of details and accuracy in programming? Name at least two situations where a small programming error may cause a major problem.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Significance of Details and accuracy in computer programming are -

  1. Readability- A consistent programming style only happens by readability.software programmers spend their spare to rewrite source code,time reading,try to understand the source code.Unreadable code often leads bugs i.e., errors as well as inefficiency.
  2. Comments - comments gives a detail understanding about the source code and gives the clear picture about the function and working of the source code. Eg: int num = a+d // Adds two variables and stores the result in num variable.
  3. Indentation - Spacing or Indentation is required for crisp and hassle free coding which makes the code more readable. In Python language, an Unindent expression as well as statements will gives an error when it is declared inside the function or methods.python language gives more preference to indentation.
  4. Naming convention : naming convention will used for objects,functions and variables.
  5. also be done with the help of color highlighting,line breaks.
  6. Refactoring - is nothing but restructuring the existing code.This enhances readability and reduces complexity. Maintenance of source code can be done through refactoring and also improves extensibility.
  7. Calculations - Calculations in programming requires accuracy .It represents how close it represents a true value with the help of calculations. Eg: Accurate values are very important when it comes to medical applications for updating reimbursement,maintenance.Bad accuracy may leads to miscalculations as well as data processing.It is important to choose correct data type when it comes to floating value,double value.Bad float value will lead to bad output.The accuracy of the programming or applications development will be evaluated by testing department.

Two situations in which a small programming error cause a major problem are -

i.Run time error - it is free from syntax error but the code which is not running will be executed separately.This can be rectified by exceptions.

Eg:

int num = 10

int den = 0

result = num/den

error : division by zero.

ii. syntax error -This errors will executed during compilation. incorrect indentation,improper keywords usage.

Eg:

if arriving:
    print("Hi!")
esle:
    print("Bye!")           // improper keywords

if flag:
print("Flag is set!")      // incorrect indentation.
Add a comment
Know the answer?
Add Answer to:
What is the significance of details and accuracy in programming? Name at least two situations where...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT