Question: A company wishes to develop a Java program, call it footest that is input an arbitrary Java program 1 and outputs as its first output

A company wishes to develop a Java program, call it footest that is input an arbitrary Java program 1 and outputs as its first output whether the input programs first line of output is foo called. Thus, footest analyzes its input program and determines whether that program outputs whether it prints out foo called in its first line of output or not.If it does it prints out on 1Assume there is no input to this program its first output line Yes and if it does not it prints out No on its first output line. Now footest is slightly modified to print foo callednstead of No. Prove that such a program cannot exist by looking at what this tester program would do on itself. Assume as mode of operation that footester reads its entire program input by storing it in an arraythe tester then does its work, but then on the stored program.

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!