The client app interactively accepts calculation command from user input, sends it to the server, receives the result from the server, and shows it to the user. App calculates for all valid entries as given below, For invalid entries, exception message is sent by the server.