Explore BrainMass
Share

Coding rules explanation and use of Sequential file access

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

1. Discuss why naming conventions are important and why programmers should consistently follow them. Include in this discussion problems that could arise in naming variables if one convention is not followed.

2. Why is it important to consistently follow coding rules and techniques? What are the pitfalls of not doing so?

3. Explain what a sequential access file is. What are the advantages and disadvantages of using sequential access data files?

Any addition references will be greatly appreciated.

© BrainMass Inc. brainmass.com October 24, 2018, 6:07 pm ad1c9bdddf
https://brainmass.com/computer-science/cpp/coding-rules-explanation-and-use-of-sequential-file-access-32046

Solution Preview

1.
It is always good practice to use suggestive variable names that will assist in the documentation of a program. A good convention for variable names can often assist someone in better understanding the operation of a program module or script. For example, a good variable name should indicate its use, like "ErrorMessage" or "InputBuffer". Also, if the variable has several different uses, it can be split up into several different variables.

To illustrate the point of the problems that could arise for not following some convention take a look at the following code snippets
Bad Examples:

a) l = l + 1;

b) This = That + O;

c) const int TWENTY_EIGHT = 28;

d) #define FALSE TRUE
Another worse example would be the use of lower-case L or uppercase o as variable names, especially in combination.
e) int a = l;
if ( O = l )
a = O1;
else
l = 0;

Look for a comprehensive guide to C++ naming conventions
http://www.nbirn.net/Resources/Developers/Conventions/Style/C_Naming.htm

Variable naming and code layout/style in general, can result in some never-ending discussions. In the end, it doesn't really matter what style/standard you use, as long as you stick to it. If you're comfortable with a style, use it. Just don't get religious about it. When you start developing professionally, chances are you'll end up in a place where the coding-standard says something ...

Solution Summary

Elaborate discussion on various topics including:
Variable Naming Conventions
Coding rules and techniques.
Advantages and Disadvantages of Sequential file access

$2.19
See Also This Related BrainMass Solution

Local Coverage Determination Policy

You're working as a Professional Fee Coder or a Reimbursement Specialist. One of your job requirements is to review charges as they process through the revenue cycle. The attached pdf. has 5 questions. Questions 1-4 will require you to review the LCD -Local Coverage Determination policy on the Medicare website.

Useful FYI---- CGS Administrators, LCC currently processes & pays Medicare Parts A & B claims for Ohio Medicare beneficiaries. Commercial payers will often mirror Medicare with some slight differences. For this assignment, we'll just be looking at Medicare.

View Full Posting Details