Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment 6 figure 2.6 how do I code this? Chapter 2: The IDENTIFICATION and ENVIRONMENT DIVISIONs 61 Figure 26 Program for Programming Assignment 6. IDENTIFICATION
Assignment 6 figure 2.6 how do I code this?
Chapter 2: The IDENTIFICATION and ENVIRONMENT DIVISIONs 61 Figure 26 Program for Programming Assignment 6. IDENTIFICATION AND ENVIRONMENT DIVISION ENTRIES GO HERE DATA DIVISION FILE SECTION FD STUDENT-FILE 01 STUDENT REC 05 NAME 05 GRADE1 05 GRADE2 05 GRADES PIC X(20 PIC 999 PIC 999 PIC 999 FD TRANSCRIPT-FILE 01 TRANSCRIPT-REC 05 NAME-OUT PIC X(20) 05 AVERAGE PIC 999. WORKING-STORAGE SECTION 01 ARE-THERE NORE RECORDS PIC X) VALUE YES PROCEDURE DIVISION. 00-MAIN MODULE OPEN INPUT STUDENT-FILE OUTPUT TRANSCRIPT-FILE PERFORM UNTIL ARE-THERE-MORE-RECORDS- "NO . READ STUDENT-FILE AT END MOVE "NO TO ARE-THERE.MORE.RECORDS NOT AT END PERFORN 200-CALC-RTN END-READ END-PERFORM CLOSE STUDENT-FILE STOP RUN MOVE NAME TO NAME-OUT TRANSCRIPT-FILE 200 CALC RTN ADD GRADE1. GRADE2, GRADES GIVING AVERAGE DIVIDE 3 INTO AVERAGE WRITE TRANSCRIPT-REC 4. Code the IDENTIFICATION DIVISION and the ENVI RONMENT DIVISION for a COBOL update program that uses an input transaction disk file and last week's master inventory disk file to create a current master inventory disk file. 5. Code the IDENTIFICATION DIVISION and the ENVIRONMENT DIVIS10N for a COBOL 6. Consider the program excerpt in Figure 2.6. Code the IDENTIFICATION and ENVIRONMENT 7. Interactive Processing (No ENVIRONMENT DIVISION needed). Write an interactive pro- 8. Interactive Processing (No ENVIROMMENT DEvisioN needed). Write a program to convert 9. Code the IDENTIFICATION DIVISION and ENVIRONMENT DIVISION for a COBOL program that will use a sequential master billing disk to print gas bills and electric bills. DIVISIONS for this program. Be as complete and as specific as possible. Include comments that describe the program. gram, using ACCEPTs and DISPLAYS to enter a sales amount and to find the total amount in- cluding the tax, which is 8 percent of the sales amount. euros to dollars. Assume that 0.73 euros is equal to 1 dolla that your state's Department of Transportation will use. The purpose of the program is to search a master driver's license file and print renewal notices for those drivers whose licenses will expire within the next 60 days Chapter 2: The IDENTIFICATION and ENVIRONMENT DIVISIONs 61 Figure 26 Program for Programming Assignment 6. IDENTIFICATION AND ENVIRONMENT DIVISION ENTRIES GO HERE DATA DIVISION FILE SECTION FD STUDENT-FILE 01 STUDENT REC 05 NAME 05 GRADE1 05 GRADE2 05 GRADES PIC X(20 PIC 999 PIC 999 PIC 999 FD TRANSCRIPT-FILE 01 TRANSCRIPT-REC 05 NAME-OUT PIC X(20) 05 AVERAGE PIC 999. WORKING-STORAGE SECTION 01 ARE-THERE NORE RECORDS PIC X) VALUE YES PROCEDURE DIVISION. 00-MAIN MODULE OPEN INPUT STUDENT-FILE OUTPUT TRANSCRIPT-FILE PERFORM UNTIL ARE-THERE-MORE-RECORDS- "NO . READ STUDENT-FILE AT END MOVE "NO TO ARE-THERE.MORE.RECORDS NOT AT END PERFORN 200-CALC-RTN END-READ END-PERFORM CLOSE STUDENT-FILE STOP RUN MOVE NAME TO NAME-OUT TRANSCRIPT-FILE 200 CALC RTN ADD GRADE1. GRADE2, GRADES GIVING AVERAGE DIVIDE 3 INTO AVERAGE WRITE TRANSCRIPT-REC 4. Code the IDENTIFICATION DIVISION and the ENVI RONMENT DIVISION for a COBOL update program that uses an input transaction disk file and last week's master inventory disk file to create a current master inventory disk file. 5. Code the IDENTIFICATION DIVISION and the ENVIRONMENT DIVIS10N for a COBOL 6. Consider the program excerpt in Figure 2.6. Code the IDENTIFICATION and ENVIRONMENT 7. Interactive Processing (No ENVIRONMENT DIVISION needed). Write an interactive pro- 8. Interactive Processing (No ENVIROMMENT DEvisioN needed). Write a program to convert 9. Code the IDENTIFICATION DIVISION and ENVIRONMENT DIVISION for a COBOL program that will use a sequential master billing disk to print gas bills and electric bills. DIVISIONS for this program. Be as complete and as specific as possible. Include comments that describe the program. gram, using ACCEPTs and DISPLAYS to enter a sales amount and to find the total amount in- cluding the tax, which is 8 percent of the sales amount. euros to dollars. Assume that 0.73 euros is equal to 1 dolla that your state's Department of Transportation will use. The purpose of the program is to search a master driver's license file and print renewal notices for those drivers whose licenses will expire within the next 60 days Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started