Question: ERLANG LANGUAGE QUESTION: Write an Erlang function named respond that takes two parameters, a process ID named Pid and an Erlang item named Item. The

 ERLANG LANGUAGE QUESTION: Write an Erlang function named respond that takes

ERLANG LANGUAGE QUESTION: Write an Erlang function named respond that takes two parameters, a process ID named Pid and an Erlang item named Item. The function should send a message to Pid; the message should be a tuple with two elements: respond's process ID and Item. Then, the function should wait to receive a message back. If the message it receives is true, then print That is correct!" If the message it receives is false, then print That is incorrect!" If the message it receives is error, then print There was an error in the input. If the message is anything else, then print Invalid message received

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!