Question: write code in c++ that prints these error messages for example: Program too big *** ABEND: pgm load: pgm too large *** The program is

write code in c++ that prints these error messages

for example:

Program too big *** ABEND: pgm load: pgm too large *** The program is too big (more than 100 words) to fit into memory.

would print:

if(count >= 100){

cout << "*** ABEND: pgm load: pgm too large *** "

return false;

invalop.sml *** ABEND: invalid opcode *** Attempts to execute an invalid instruction.
addrs.sml *** ABEND: addressability error *** Program without a HALT.
readtoobig.sml *** ABEND: illegal input *** Attempts to READ value greater than 9999.
readtoosmall.sml *** ABEND: illegal input *** Attempts to READ value smaller than -9999.
div0.sml *** ABEND: attempted division by 0 *** Attempts to divide by 0.
underflow.add.sml *** ABEND: underflow *** Continuously adds until underflow.
underflow.mult.sml *** ABEND: underflow *** Continuously multiplies until underflow.
underflow.sub.sml *** ABEND: underflow *** Continuously subtracts until underflow.
overflow.add.sml *** ABEND: overflow *** Continuously adds until overflow.
overflow.mult.sml *** ABEND: overflow *** Continuously multiplies until overflow.
overflow.sub.sml *** ABEND: overflow *** Continuously subtracts until overflow.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!