Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer the COBOL related questions. QUESTION 4 01 CREDIT-CARD-FILE 05 CCF-BAL PIC 9(6)N99 01 CREDIT-REPORT 0S CR-BAL OS FILLER 0S CR-CASH-AVAIL PIC $$5S $$9.99 PIC

Answer the COBOL related questions.

image text in transcribed

QUESTION 4 01 CREDIT-CARD-FILE 05 CCF-BAL PIC 9(6)N99 01 CREDIT-REPORT 0S CR-BAL OS FILLER 0S CR-CASH-AVAIL PIC $$5S $$9.99 PIC $$SS $$9.99. which COBOL statement would you code to calulate cash available as 22% of the CC Balance? CALCULATE CR-CASH-AVAIL-22%CCF-BAL O MULTIPLY CCF-BAL BY .22 GIVING CR-CASH-AVAIL O MULTIPLY CR-BAL BY .22 GVING CR-CASH-AVAIL O COMPUTE CCF-BAL CR-BAL.22 QUESTION 5 01 COUNTERS-SWITCHES 05 CS-RECORD-COUNTER PIC 94. Code the COBOL statement that will increment the above counter each time a record is read. O INCREMENT CS-RECORD COUNTER CS-INCREMENT-COUNTERs CS-RECORD-COUNTER O ADD 1 TO CS-RECORD-COUNTER O ADD INCREMENT TO CS-RECORD-COUNTER 1 QUESTION 6 If you had two fields and the larger field was SR-TOTAL-SALE and the smaller field was SR-SALES TAX and you were told that to find out the total sale price you needed to subtract the tax from the O SUBTRACT SR-SALES-TAX FROM SR-TOTAL-SALE total sale price, which COBOL statement would you use? SUBTRACT SR-TOTAL-SALE FROM SR-SALES-TAX SR-TOTAL-SALE-SR-TOTAL-SALE- SR-SALES-TAX CALCULATE SR-TOTAL-SALE SR-TOTAL-SALE-SR-SALES-TAX

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions