MUST be completed in PYTHON using object oriented programming. Cannot be procedure based You need to develop
Fantastic news! We've Found the answer you've been seeking!
Question:
MUST be completed in PYTHON using object oriented programming. Cannot be procedure based
Transcribed Image Text:
You need to develop a program that implements the Substitution, Playfair, Caesar, Transposition, Product, and RSA ciphers. The program prompts the user for a message to encrypt, then randomly applies one of the implemented encryption algorithms. The program contains different classes such as a Message class with two derived classes, plaintextMsg and ciphertextMsg. You may need to include more classes, methods, and attributes. The Message class contains attributes and methods that could be used to apply a cipher to a string, either to encrypt or to decrypt a message. The plaintextMsg class has attributes and methods to encrypt a message. The ciphertextMsg class contains a method used to decrypt a message. Once the encryption is performed your program needs to display the original message and the encrypted version of it. The program keeps asking the user for different messages to encrypt until the user inputs 'Stop. Once the user asks for STOP, the program display all the plaintext messages, the encrypted versions and the applied method. Important Notes: • Make sure your program follows proper OOP rules (pythonic) that you learnt in the course. Note that procedure-based programs are NOT accepted. • Please note that you never want to directly access attributes outside a class; thus, you need to define properties in order to work with attributes. Make sure you include proper exception handling mechanisms when required. • The program needs to include all the concepts learnt in the course (e.g., inheritance, operator overloading, exception handling, etc.). Names chosen for classes, methods, and variables should effectively convey the purpose and meaning of the named entity. The layout of your code should be readable and consistent. This means things like indentation, wrapping of long lines, the layout of parameter lists, etc. Code duplication should be avoided by factoring out common code into separate methods. You need to develop a program that implements the Substitution, Playfair, Caesar, Transposition, Product, and RSA ciphers. The program prompts the user for a message to encrypt, then randomly applies one of the implemented encryption algorithms. The program contains different classes such as a Message class with two derived classes, plaintextMsg and ciphertextMsg. You may need to include more classes, methods, and attributes. The Message class contains attributes and methods that could be used to apply a cipher to a string, either to encrypt or to decrypt a message. The plaintextMsg class has attributes and methods to encrypt a message. The ciphertextMsg class contains a method used to decrypt a message. Once the encryption is performed your program needs to display the original message and the encrypted version of it. The program keeps asking the user for different messages to encrypt until the user inputs 'Stop. Once the user asks for STOP, the program display all the plaintext messages, the encrypted versions and the applied method. Important Notes: • Make sure your program follows proper OOP rules (pythonic) that you learnt in the course. Note that procedure-based programs are NOT accepted. • Please note that you never want to directly access attributes outside a class; thus, you need to define properties in order to work with attributes. Make sure you include proper exception handling mechanisms when required. • The program needs to include all the concepts learnt in the course (e.g., inheritance, operator overloading, exception handling, etc.). Names chosen for classes, methods, and variables should effectively convey the purpose and meaning of the named entity. The layout of your code should be readable and consistent. This means things like indentation, wrapping of long lines, the layout of parameter lists, etc. Code duplication should be avoided by factoring out common code into separate methods.
Expert Answer:
Answer rating: 100% (QA)
PlayFairCipherpy keyinputEnter key keykeyreplace keykeyupper def matrixxyini... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Using python in programming essentials a local small business has hired you to write a payroll calculation program. The program only needs to calculate gross pay for an employee and display the...
-
You must use Object Oriented Programming to design this project. Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional...
-
Must be completed in PYTHON only
-
Bob drives off in Freds car mistakenly believing that it is his. Is this theft? Explain.
-
Refer back to the Burger King case at the beginning of the chapter. Compare the applicability of the first-mover advantage in international expansion for Burger King versus Carrefour?
-
What is the meaning of nervousness in an MRP system? Describe its impact and the mitigation approaches that can be taken.
-
Use the financial data for Randa Merchandising, Inc., in Exercise 13-13 to prepare its income statement for calendar-year 2017. (Ignore the earnings per share section.) Data From Exercise 13.13 In...
-
After the success of the company's first two months, Adria Lopez continues to operate Success Systems. (Transactions for the first two months are described in the serial problem of Chapter 2.) The...
-
You will be taking over the vending machine business at UNCC from Tony. You are selling 20-ounce bottles of Dasani bottled water for $1.25, and Tony will give you a large stock of Dasani to get you...
-
At the end of the fiscal year, the Precision Computer Centre has a $21,620 balance in Accounts Receivable. Here is a current schedule of accounts receivable: Assignment Although Accu Pacs account is...
-
Bavarian Sausage just issued a 7-year 9% coupon bond. The face value of the bond is $1,000 and the bond makes annual coupon payments. If the bond is trading at $982.54, what is the bond's yield to...
-
10. On October 7, 2010, ENRNewYork of McGraw-Hill reported: "New Jersey Governor Chris Christie today killed the $8.7 billion Trans-Hudson River passenger rail tunnel project that was expected to...
-
The costs of equity are 17% for Lindner and 15% for Allen. Lindner plans to offer $5.00 cash and 1.5 shares of its own stock for each share of Allen a. Assume no synergy. What are the gains (losses)...
-
The Detroit Company which makes wooden chicken coops, is creating their Direct Materials Budget for the upcoming year. Detroit estimated the following: Units of Production Needed for next year is...
-
PPO stock has a beta of 0.97 and an expected return of 11.22 percent. The risk-free rate of return is 2.48 percent. What is the expected return on the market?
-
With the sieve of Eratosthenes being used to find and count prime numbers. Describe how sieve methods are used in number theory. What kind of results have been established using such methods?
-
How a Company has a deferred compensation plan? Explain the company's compensation in detail. What pays $0 for 2 years and then $2,100 in Year 3. For Year 4 onward, pays $700 annually. Tax allows...
-
CdF2 (s) Cd+ (aq) + 2 F- (aq) 1. A saturated solution of CdF2 is prepared. The equilibrium in the solution is represented above. In the solution [Cd+] eq = 0.0585 M and [F-] eq = 0.117 M. a....
-
Floras Fabulous Fountains (FFF) top product is its Model A. Using the information given, draw the product structure tree for the ModelA. Usage Lead Immediate per Time Beginning Parent Parent (weeks)...
-
The BackPack Company produces a line of backpacks. The manager, Jill Nicholas, is interested in using a level aggregate plan. Inventories and back orders will be used to handle demand fluctuations....
-
Raquels Landscaping Company has contracted for several landscaping jobs. Each job requires preparing the areas (identifying the locations and types of plants, preparing the soil, etc.) and then...
-
Which of the following is not a characteristic of a profession? 1. A. Governed by rules 2. B. Unique body of knowledge 3. C. External recognition 4. D. A body devoted to advancement and responsibility
-
Which of the following departments can be exempted from compliance efforts? 1. A. Legal and compliance because it implements and enforces compliance efforts 2. B. Manufacturing and production because...
-
Which of the following statements is not a process control? 1. A. Reconciliations 2. B. Employees who disburse cash should not make changes to the vendor master file 3. C. Analyses that include...
Study smarter with the SolutionInn App