Compare and contrast the relative advantages and disadvantages of sequential, block, group, alphabetic and mnemonic codes.
What will be an ideal response?
Sequential codes are appropriate for items in either an ascending or descending sequence, such as the numbering of checks or source documents. An advantage is that during batch processing, any gap detected in the sequence is a signal that a transaction may be missing. A disadvantage is that the codes carry little, if any, information other than the sequence order. Another disadvantage is that sequential codes are difficult to manage when items need to be added; the sequence needs either to be reordered or the items must be added to the end of the list.
Block codes provide some remedies to sequential codes by restricting each class to a pre-specified range. The first digit typically represents a class, whereas the following digits are sequential items which may be spaced in intervals in case of future additions. An example of block coding is a chart of accounts. A disadvantage of block coding is that the information content does not provide much meaning, i.e. an account number only means something if the chart of accounts is known.
Group codes may be used to represent complex items or events involving two or more pieces of related data. The code is comprised of fields which possess specific meaning. The advantages of group codes over sequential and block codes are 1) they facilitate the representation of large amounts of diverse data, 2) they allow complex data structures to be represented in a hierarchical form that is logical and thus more easily remembered by humans, and 3) they permit detailed analysis and reporting both within an item class and across different classes of items. A disadvantage is that the codes may be overused to link classes which do not need to be linked, and thus creating a more complex coding system that is necessary.
Alphabetic codes may be used sequentially or in block or group codes. An advantage is that a system which uses alphabetic codes can represent far more situations than a system with numeric codes given a specific field size. Some disadvantages are that sequentially assigned codes mostly have little meaning. Also, humans typically find alphabetic codes more difficult to sort than numeric data.
Lastly, mnemonic codes are alphabetic characters in the form of acronyms, abbreviations or other combinations that convey meaning. The meaning aspect is its advantage. A disadvantage of mnemonic codes is that they are limited in their ability to represents items within a class i.e. names of all of American Express's customers.
PTS: 1
You might also like to view...
What is the output for the following code segment:
int p, q, r; p = 10; q = 3; r = -2; if ((p + q) < 14 && (r < q – 3)) cout << r; else cout << p;
What is the right code for the boolean empty() method?
A queue based on a linked list uses the following code ``` class Node { String element; Node next; Node (String el, Node n) { element = el; next = n; } } Node front = null, rear = null; ``` A) return front == null; B) if (rear == front) return true; else return false; C) if (front == null) throw new RuntimeException("Empty"); else return false; return true; D) return front == rear;
Write an application that calculates the amount of money in an account after 10 years for interest rates of 5%–10%, inclu- sive (Fig. 10.29). For this application, users must provide the initial principal.
) Copying the template to your working directory. Copy the C:Exam- plesTutorial10 ExercisesComparingRates directory to your C:SimplyJava directory.
b) Opening the template file. Open the ComparingRates.java file in your text editor. c) Customizing the JTextArea. You must customize the JTextArea to display the rate
and amount after 10 years. The name of this JTextArea is resultJTextArea. In line
58, insert code to set the bounds property to 20, 85, 260, 120. In line 59, insert code to set resultJTextArea’s editable property to false.
d) Completing a for statement header. In line 98, you will see a for statement header with only two semicolons. Before the first semicolon, declare and initialize variable rate (which will be used as our counter) to 5. Before the second semicolon, enter a loop-continuation condition that will cause the for statement to loop until the counter has reached 10. After the second semicolon, enter the increment of the
counter so that
Which of the following is not true regarding collaborating and presenting?
A) In business, collaborating effectively with your coworkers is a valuable skill. B) Microsoft provides many methods for collaboration through its Office applications and SkyDrive. C) With Microsoft's SkyDrive and PowerPoint Web App you can share your presentation and collaborate with anyone who has PowerPoint installed. D) With the PowerPoint application itself you can add comments to explain to the others your thoughts on a particular topic and even keep track of changes that others have made or suggested.