Which of the following is a register function?
A. storing the location from where an instruction was fetched
B. storing a control while the instruction unit decodes it
C. storing the operand for a calculation
D. storing data while the AXU calculates it
Answer: A
You might also like to view...
Match the following terms with their use or definition:
I. bibliography II. works cited III. citation IV. parenthetical citation V. copyright law A. protects authors of original works B. list of sources used in a paper C. list of sources in MLA style D. reference in a text to the source of the information E. source cited in an abbreviated manner
Enhance the Shipping Hub application to allow the user to move a maximum of five parcels from the ware- house to a truck for shipping. When the user selects an item in the parcelStateJList and clicks the Ship JButton, the item will be removed from this JList and added to the Parcels to Ship JList (parcelShipJList, shown in Fig. 19.59). After five Parcel IDs have been added to this JList, no more may be added. The five Parcel limit has already been coded for you. You will only be adding the functionality to modify the JLists.
a) Copying the template to your working directory. Copy the C:Examples Tutorial19ExercisesEnhancedShippingHub directory to your C:SimplyJava directory.
b) Opening the template file. Open the ShippingHub.java file in your text editor.
c) Retrieving the selected Parcel’s ID. Find the shipJButtonActionPerformed method, which begins at 440. The first statement inside the shipJButtonActionPer- formed is an if statement. This if statement will execute when the user has clicked shipJButton and there are still less than five items in toBeShippedArrayList. This ArrayList will be used to contain the Parcel IDs that will be added to the Parcels to Ship JList. At line 445, declare variable int currentNumber to hold the ID of the Parcel the user has selected in parcelStateJList. Remember to use the get-
SelectedValue method and convert the return value to the proper type.
d) Adding the selected ID to toBeShippedArrayList. Add the String version of the ID selected to toBeShippedArrayL