Hi! everyone! I'm writing two small C programming right now. I'm not a computer programmer and computer science student. I'm doing my engineering degree right now. I really dont have any clue on those two COMPUTER programming language. Please give me a hand to deal with it! I really appreciate your help!!!
The program 'user_interface' should:
- connect to a message queue
- In a loop:
- Read two numbers from the user
- Send a request message to the queue containing the two numbers
- Check to see if there's a response message on the queue.
- If there is a response:
- print out the result contained in the response message
- If no response messages:
- do nothing, continue to the next run of the loop
The program 'data_processor' should:
- connect to the same message queue as 'user_interface'
- In a loop:
- Receive a request message from the queue, waiting for a
request if necessary
- Add the two numbers from the request message together
- Construct a response message containing the result of the
addition
- send the response message to the queue
Bear
E-mail: [email protected]
Icq: 62982996