Essentials of Programming

Assignment 3

编程assignment代写 By taking and completing the assignment, you affirm that (1) you will not share or discuss the assignment with any individual or entity…

By taking and completing the assignment, you affirm that (1) you will not share or discuss the assignment with any individual or entity; (2) you will not collaborate with anyone on the assignment; (3) you will not engage in any action that compromises the integrity of the assignment and class; and (4) your application strictly involves your solo effort. 编程assignment代写

Create a message encoder/decoder encompassing the following details.

 The user enters a message that could include any characters including non-alphanumeric characters.

o There are 26 alphabetic letters. Consider space the 27th letter.

 The user then enters a shift code that should be an integer between -26 and 26.

 The application will show the encoded/decoded message based on the shift code entered.

o If you encode a message, each letter in the message will be moved forward through the alphabet according to your shift code.

 For example, if the message is “ABcd” and the shift code is 1, the encoded message will be “BCde”.

o If you decode a message, each letter in the message will be moved backward through the alphabet according to your shift code.

 For example, if the message is “abcd” and the shift code is 2, the decoded message will be “z ab”.

o The letter case (lower or upper) for alphabetic letters in the encoded/decoded message should be consistent with the original message.

o Other characters, such as numbers and special characters, that are not among the abovementioned 27 letters should appear unchanged in the encoded/decoded message.

 For example, if the message is “@5AM” and the shift code is -1, the encoded message will be “@5 L”.

 The application should display the following menu: 编程assignment代写

o 1. Encode a message

o 2. Decode a message

o 3. Exit

 When the user selects from the menu, if he/she enters anything but 1, 2, or 3, the application should tell the user his/her selection is invalid.

 If the user selects 1, he/she should be able to type in a message and then enter a shift code. The application should then display the encoded message.

 If the user selects 2, he/she should be able to type in a message and then enter a shift code. The application should then display the decoded message.

 The shift code entered by the use should be an integer between -26 and 26. If the user enters anything else, the application should tell the user to enter a valid shift code.

 The menu should continuously be displayed until the user selects 3.

Essentials of Programming 编程assignment代写

Please see below an output sample and try those entries to test your application.

 I first entered two invalid selections (i.e., “a” and “one”).

 Next, while trying to encode a message, I entered two invalid shift codes (i.e., “30” and “fifteen”). Then, I changed the code to “15” and received the encoded message.

 Next, I decoded a message.

 Finally, I stopped (entering “3”).

Please see the rubric on page 3.

Please include your entire code in one cell and upload your notebook file (.ipynb file) on blackboard.

编程assignment代写
编程assignment代写

Total points possible: 10 points

Requirements: Your application MUST at least accomplish the followings: 编程assignment代写

  1. ______/1 The algorithm and logic of the application are reasonable and efficient.
  2. ______/8 The application includes the functionalities suggested by the case.
  3. _ __/1 Keeps displaying the menu until the user selects 3.
  4. _ __/1 Reminds the user to make a valid selection if the user enters anything except 1, 2, or 3.
  1. __/2.5 Encodes messages accurately when the user selects 1.
  2. __/2.5 Decodes messages accurately when the user selects 2.
  3. __ _/1 Reminds the user to enter a valid shift code if the user enters a number out of range or non-numeric characters.
  1. ______/1 The application runs smoothly without error.

Total: /10

Other comments: