Caesar ciphers and turtle graphics

Assignment Help Python Programming
Reference no: EM132601974

ITECH1400 Foundations of Programming - Federation University

Assignment - Caesar Ciphers & Turtle Graphics

Learning Outcome 1: Identify and use the correct syntax of a common programming language.

Learning Outcome 2: Recall and use typical programming constructs to design and implement simple software solutions.

Learning Outcome 4: Explain the importance of programming style concepts (documentation, mnemonic names, indentation).

Skills

1. Utilise pseudocode and/or algorithms as a major program design technique. S2. Write and implement a solution algorithm using basic programming constructs.
2. Describe program functionality based on analysis of given program code.

Application of knowledge and skills

1. Develop self-reliance and judgement in adapting algorithms to diverse contexts.

2. Design and write program solutions to identified problems using accepted design constructs.

Part one - Caesar Ciphers

In this part you are to develop a Python application that will encrypt text from a file and also, given the key, decrypt text from a file. We shall use an easy cipher.

Shift ciphers, also known as Caesar ciphers, are obtained as follows:

672_figure.jpg

Now the word COAL becomes FRDO - in this case, we have encrypted using a key of 3.

In the encryption mode, your application should ask the user for a filename which contains the plain text and the key to use for encryption. The decryption process is similar, but this time, the filename contains the encrypted text and when we give the key your application should return the original text (the arrows, shown above, go the other way).

Ideally your application should be able to handle single words, sentences, paragraphs and even whole books2.

You need to demonstrate your application and show that it is working correctly by using tests that you design.

Part two - Your Name in Turtle Graphics

Turtle graphics is built into the Python language and there are many resources freely available3. Here are some sample images:

520_figure1.jpg

The requirement here is that you use the Turtle graphics to write your name - the name that appears on your student ID card. (If you have any queries ask your lecturer/tutor.)

Although you must use Python 3 in this assignment, you have creative licence in doing this application - if you are unsure, please ask your lecturer/tutor.

It is suggested that you develop your code starting from pseudo-code and then incrementally make it better. You are also asked to keep a journal; it is useful in confirming ownership of your work and, in case you don't reach your final goal it demonstrates your journey. The journal can consist of hand-written notes, diagrams, drawings, code-fragments, screen-shots and so on - put your journal in an Appendix - these pages are not counted in your report.

Attachment:- Foundations of Programming.rar

Reference no: EM132601974

Questions Cloud

What amount could you pay at the end of each year : With the certificate of deposit, you make an initial investment at the beginning of the first year. What amount could you pay at the end of each year
Give the entry for bad debt expense for the current year : Kingbird, Inc., Give the entry for bad debt expense for the current year assuming the allowance should be 3% of gross accounts receivable.
Prepare swifty journal entry to record the purchase : Prepare Swifty's journal entry to record the purchase of the investment. (Credit account titles are automatically indented when the amount is entered)
Solve amount of dividends to paid of shareholders : Solve the amount of dividends to be paid to each group of shareholders (i.e. preferred and common), assuming the preferred shares are cumulative
Caesar ciphers and turtle graphics : Develop self-reliance and judgement in adapting algorithms to diverse contexts and Design and write program solutions to identified problems using accepted
Solve the amount of dividends to be paid to each group : Calculate the amount of dividends to be paid to each group of shareholders (i.e. preferred and common), assuming the preferred shares are non-cumulative)
Make the journal entry to record the land acquisition : Prepare the journal entry to record the land acquisition if Larkspur elects to prepare financial statements in accordance with IFRS.
Prepare the necessary entry to clear the intangible assets : Prepare the necessary entry to clear the Intangible Assets account and to set up separate accounts for distinct types of intangibles.
What is the selling price of each box of toothpaste : Giselle, a dentist, buys and sells specialized toothpaste in her office. She purchases the toothpaste, What is the selling price of each box of toothpaste?

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd