Question: Write a program that reads and print a joke and it punchline from two different files. The first file contains a joke but not its
% Edit & Create eation PRACTICE write a program to ACCEPT a SALARY field and to calculate and 01 SPLAY Income Tax as20 percent PROGRAM 1: of the SALARY TERACTIVE ROCESSING IDENTIFICATION DIVISION Ad PROGRAM-1D. TAXES DATA DIVISION. WORKING-STORAGE SECTION 01 SALARY 01 INCONE-TAX 01 MORE-DATA PROCEDURE DIVISION. 100-MAIN. PICTURE 999999. PICTURE 99999.99 PICTURE XXX VALUE "YES PERFORM UNTIL MORE-OATA NO DISPLAY "ENTER SALARY AS AN NTEGER FIELD- ACCEPT SALARY MULTIPLY SALARY BY .20 GIVING INCOME-TAX THE NCOME TAX 1S , INCOME TAX DISPLAY IS THERE HORE DATA (YES/NO2)- ACCEPT MORE-DATA END-PERFORM STOP RUN
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
