client ------------------------------ 1. CSocket, Client from the menu 2. Display the Transaction Type dialog ("A"=Add, "M"=modify, "D"=delete, "Q"=quit) BEGIN LOOP as long as type!="Q" if(type="A") { Display the new part dialog if they hit Okay send "A" to server send part #, part desc to server endif else if(type="M") display the enter part # dialog send "M" to the server send the part # they just entered to server listen for part desc from server if desc!="<<**nomatch**>>" then display the desc dialog if they hit okay send new desc to server else send old desc to server endif else display the "No such part on file" dialog endif else if(type="D") display the enter part # deletion dialog send "D" to the server send the part # they just entered to server listen for confirmation of deletion from server if confirmation!="<<**nomatch**>>" then display the "Part Deleted" dialog else display the "No such part on file" dialog endif endif Display the Transaction Type dialog again END LOOP send "Q" to server server ------------------------------ 1. CSocket, Server from the menu 2. Listen for transaction type from client BEGIN LOOP while transaction type!="Q" if transaction type="A" listen for part#, desc add to database else if transaction type="M" listen for part# lookup that part if found send desc to client listen for desc from client update record with new desc else send "<<**nomatch**>>" to client endif else if transaction type="D" listen for part# from client lookup part# if found delete record send "confirm" to client else send "<<**nomatch**>>" to client endif endif listen for transaction type END LOOP