Say you put into your program the formula to calculate the area of a circle given its radius R asA = 3.141592 * R * R
Computer science teachers will usually mark you down for this, saying you should instead write it as
PI = 3.141592
...
A = PI * R * R
Because that way, should the value of pi ever change, you can just change it in the header and anywhere you've used the value in the program will automatically change with it.
Okay, that's not super likely, but suppose instead you had formulas to calculate the area of the circle, and the volume of a sphere, and the circumference of a circle, and the surface area of a sphere, and you run your program and notice that the answers you're getting are just slightly off what they should be. You look, and eventually find that the book you used to look up the value of pi had a typo and you've been using 3.145192 instead. Now you have to find everywhere it occurs in the program and fix it. If you had defined it in the header, you make the change in one spot, and its instantly fixed everywhere in the program.
Chat with our AI personalities
IEEE gives software engineering definition as :-. The application of a systematic , disciplined quantifiable approach to the development, operation and maintenance of software that is the application of engineering to software.
The difference between maintenance and support is that one focuses on prevention, and one focuses on fixing problems. Maintenance is proactive, maintenance helps keep something running as it should. Support is helping to fix or figure out an issue that has already occurred.
true
A Diagnostic software is something that is use to identify/diagnose certain conditions in your system. for example an anti virus software can be considered a diagnostic s/w because it can diagnose virus infections in your machine and protect it.
upgradation of old softwares. e.g- anti-viruses. provides opportunities for new jobs and latest requiremants. provides better interfacing between hardware & software.