Consider two files of 1,600 employee records each. The records in each fileare organized into sixteen 100-record blocks. One file is sequential access and the other isdirect access. Describe how you would append one record to the end of each file.

What will be an ideal response?


Sequential access file: Copy the original file file1 into another file file2. Write on file2a new block containing the desired record and 99 blank records. Copy file2 to the orig¬inal file file1.
Direct access file: Create a new block containing the desired record and 99 blank records. Write the new block to the file as the 17th block.

Computer Science & Information Technology

You might also like to view...

Describe the purpose of the items after the colon (:) in this code.

In the code for HourlyEmployee that is derived from Employee, the constructor code appears What will be an ideal response? ``` HourlyEmployee:: HourlyEmployee(string theName, string theNumber, double theWageRate, double theHours ) : Employee(theName, theNumber), wageRate(theWageRate), hours(theHours) { // deliberately empty } ```

Computer Science & Information Technology

A JFrame supports three operations when the user closes the window. Which of the choices below is not one of the three:

a. DISPOSE_ON_CLOSE. b. DO_NOTHING_ON_CLOSE. c. LOWER_ON_CLOSE. d. HIDE_ON_CLOSE.

Computer Science & Information Technology

Analyze the following code.

``` #include using namespace std; class Test { public: int x; #include using namespace std; class Test { public: int x; ``` a. The program has a compile error because Test does not have a default constructor. b. The program has a compile error because x has not been initialized. c. The program has a compile error because test is not initialized. d. The program runs fine, but test.x is unpredictable.

Computer Science & Information Technology

The ASK 1 bit has a carrier signal (positive voltage) while a 0 bit has no signal (zero voltage).

Answer the following statement true (T) or false (F)

Computer Science & Information Technology