answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How the use of constants rather than literals can simplify software maintenance.?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the example of software adaptive maintenance?

Adaptive Maintenance (Software) is maintenance that allows software to adapt to a change in the system or system environment. Adaptive maintenance does not provide new capabilities. Adaptive Maintenance (Software) is maintenance that allows software to adapt to a change in the system or system environment. Adaptive maintenance does not provide new capabilities.


Does fleet software work for airplanes?

Of course you could use fleet software to keep maintenance records for airplanes. You can get information on aircraft maintenance software at http://www.capterra.com/aviation-maintenance-software


Where can preventative maintenance software be purchased?

"Several websites offer preventative maintenance software for a fee, which includes support service. Choose a software suite that attends to your needs in preventative maintenance."


What do computerized maintenance management software do?

Computerized Maintenance Management Software (CMMS) maintains a computer database of a company's maintenance operations. This information helps maintenance workers do their job properly.


What has the author Steve Westlund written?

Steve Westlund has written: 'Software maintenance' -- subject(s): Software maintenance


What is the most popular computerized maintenance software?

The most popular computerized maintenance software is emaint and details of the product can be found at the companies website. They offer bespoke and off the shelf software and rated by users as the best maintenance software provider


What is maintainance?

Software maintenance is an important component of software development. Maintenance involves debugging the software, and releasing periodic updates to correct problems and make the software work better.


What is the purpose of preventative maintenance software?

Preventative maintenance software provides systematic inspection, detection and correction of failures in a software environment. It prevents serious malfunction of software in a business.


What is software maintainance?

Software maintenance is an important component of software development. Maintenance involves debugging the software, and releasing periodic updates to correct problems and make the software work better.


Is there any specific lawn maintenance software that I can get for my lawn care business?

There is actually some lawn maintenance software out there, but not too much. Check out Gopher Software, that's one of the better ones. There isn't really lawn maintenance software so much as there is administrative software tailored to lawn maintenance and landscaping. Any good administrative software would be fine for your business.


What is software maintenance explain its types in software engin?

Software Maintenance : is the activity of modifying the software product after delivery ; in order to correct faults, improve performance and to improve other attributes ( attributes of a good software ) .Software maintenance is a vital element in SDLC . Normally and more often done by the developers / or software maintainers ( of the software service provider / the software company ) .Types of software maintenance : there were only three few years back, but present there are FOUR ( 4 ) types of software maintenance types / kinds are defined .Corrective Maintenance - corrective maintenance means a REACTIVE modification, done in the software product after the delivery . The purpose of corrective maintenance is to correct / or fix discovered ( or user reported ) problems in the system .Adaptive Maintenance - adaptive maintenance is also a modification done after delivery, in order to keep the software product usable in changing ( or changed ) environments / business environments . If this is not done properly by the time of change, business opportunities will be lost .Perfective Maintenance - a software should be efficient / less resource consuming / and should be easy to cope with . Perfective maintenance is done in order to improve the software performance ( after a change in the software or / the environment, the performance of the software changes ) . Also improving the maintainability is a concern .Preventive Maintenance - of course as it sounds, it's just PREVENTING . Preventive Maintenance is done, to detect and correct latent ( not developed ) faults before they become effective faults . This simply means the prevention of future problems .-------------------------------------------------------------------------------------------------EXTRA READING :Software maintenance sounds like, " ONLY ERROR CORRECTING ", but IT'S NOT that . 80% of the software maintenance is NON - CORRECTIVE activities ( activities which are not used to correct faults, but for other purposes ) . However, software maintenance issues can be seen in two perspectives, one is managerial issues and the other is technical issues . Managerial issues can be alignment with customer priorities, managing the staff, estimations . Technical issues may be limited understanding, impact analysis and testing .In software maintenance, SOFTWARE MAINTENANCE PLAN and SOFTWARE MAINTENANCE PROCESS are also KEY considerations . Software maintenance plan is the pre planning which should be very accurate ( this plan includes about user's requirement changes / or change requests, budget etc ) . Software maintenance process is the sequence of steps followed during the software maintenance process . which includes,Implementation ProcessProblem and modification analysis processProcess acceptance of the modificationThe migration processLast maintenance processetc ...----------------------------------------------------------------------------------------------------Hope you liked this article,CHEERS !Dileesha Mebox


Which software programs have the predictive maintenance feature?

There are various software programs that have the predictive maintenance feature. IBM, ViewPoint, Davison Software, TabWare, and Asset Point all have software with this particular feature.