Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 punch line .The second file has the punch line as its last line , preceded by garbage text
image text in transcribed
% 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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions