Question: Python question Requriements Submit only the files requested Print all floats to 2 decimal points unless stated otherwise . Descripition For this problem you will
Requriements Submit only the files requested Print all floats to 2 decimal points unless stated otherwise . Descripition For this problem you will be implementing a Caesarin Cipher. A Caesarin Cipher takes a string and a shift amount and shift the characters in the string by the shift amount. Only characters should be ciphered If a character is shifted beyond the end of the aphabet it should wrap back around For example if the letter y is shifted 3 it will become b . You will find the functions chr and ord very helpfl for this assignment ord takes in a single character and gives back its ascii value o ordl'a.] is 97 ordre] is 66 chr takes an integer number and gives back the character it represents o chr[971 is a chr(B') is 66 o Combining these ideas together chrford a)+ 2] is c Assumptions Input will not always be valid If invalid input is received your program should continue to ask for more input until a valid value is entered o While input may be invalid it will always be of the correct type Valid Input . Shift amount a value between 0 and 25 String to be ciphered: any string is valid Example 1 Please enter a string to be ciphered: abcXY2 Please enter a shift amount between 0 and 25: 1 bedYzA Example 2 Please enter a string to be ciphered: ABCxyz 123 Please enter a shift amount between 0 and 25: 3 DEFabc 123
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
