Modify the final_processing module to test the line_count just before printing the summary line. If line_count <= lines_per_page -2 (the -2 accounts for the blank line and the summary line) then print a blank line. Otherwise, call the start_new_page module. This way the summary line is printed on a new page only if there is not enough room to include it on the current page.
What will be an ideal response?
```
produce_report
CALL initial_processing
DO WHILE name < > "End of Data" CALL detail_processing
LOOP
CALL final_processing
initial_processing
LET count = 0
LET lines_per_page = 50
LET page_break = Chr(12)
LET blank line = ""
LET line_count = 99
INPUT name, sex code, status_code
detail_processing
IF sex_code = "F" AND status_code = "F" 'THEN
IF line_count > lines_per_page THEN CALL start_new_page OUTPUT name
LET count = count + 1
END IF
INPUT name, sex code, statuk_code
final_processing
IF line_count <= lines_per_page — 2 THEN
OUTPUT blank line
ELSE
CALL start_new_page
END IF
OUTPUT "total number of students reported is ", count
start_new_page
OUTPUT page_break
OUTPUT "Full-time Female Students" OUTPUT blank line
LET line_count = 2
```
You might also like to view...
________ are elective commands and features that are NOT immediately available that must be installed within Excel before you can use them
Fill in the blank(s) with correct word
________ formatting is a way to dynamically change the visual presentation of information in a manner that adds information to the worksheet
A) Conditional B) Default C) Tabular D) Graphical
You can use the animation features in Flash to create special effects.
Answer the following statement true (T) or false (F)
To respond to events when the user changes the text in an EditText, you’ll use an anonymous inner class to implement the ______ interface (from package an-droid-.text).
a. EditTextListener b. TextListener c. EditTextWatcher d. TextWatcher