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 / amaranatha reddy
this is AMAR(amaran.akg@gmail.com)9043264468
the correct ans: " C "
we 've 4 options, in that no need to check "f" value
next,about "E"
E pic 9(1)
A*C=E
9.5*0.8=7.6[9(1)=7]
hence E=7
now we go C&D for our solution
about "D":
---------
D=B+C+A=9+0.8+9.5=19.3
according to question
"D" i rounded
as per our answer data trunk-ed occur
for numeric literals data assigning is from right to left
-------------
(for integer positions)&left to right(for decimal positions)
------------------------------------------------------------
so Value of "D"=9
--------
hence solution is\ ""C"" \
----------
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are all the divisions of a COBOL program?
What are the rules of the move verb?
example for sub strings ? and refernce modifications whit output pls
What is the usage of comp fields in cobol?
Which is not true about evaluate statement
Explain how to differentiate call by context by comparing it to other calls?
how do you reference the fixed unblock file formats from cobol programs
What is length is cobol?
HOw can I get the negative sign while deduct high value from low value
What the difference is between continue and next sentence?
How many sections are there in data division in COBOL?
What is amode(31)
How do you differentiate between cobol and cobol-ii?
) what is the difference between AID and HANDLE AID?
) How do u handle errors in BMS macro