given the following:
77 A PIC 9V9 VALUE 9.5
77 B PIC 9 VALUE 9.
77 C PIC V9 VALUE 0.8
77 D PIC 9
77 E PIC 9
77 F PIC 9V999
what are the contenta of D E nad F after the following
statements are
executed:
COMPUTE F ROUNDED=A+C/B
MULTIPLY A BY C GIVING E
ADD B C A GIVING D ROUNDED
a.F=9.589 E=8 D=1
b.F=9.589 E=8 D=9
c.F=9.589 E=7 D=9
d.F=9.589 E=7 D=1
Answer Posted / sinha
c is the answer
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Explain the configuration section of a cobol program with examples of syntax.
Which is not true about evaluate statement
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
how can i see junk values in dclgen or in hostvariable of comp ?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
How to print 10 to 1 if the input have only 10 digit number?
Write a program that uses move corresponding.
i need a small 3d program using inline and outline.
What are different data types in cobol?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What rules are followed by the search verb.
What is report-item in COBOL?
How to know whether the module is dynamical or statistical?
Write a program to explain size error.
What is the difference between PIC 9.99 and 9v99 in COBOL?