Syntax of a common programming language

Assignment Help Programming Languages
Reference no: EM132619414

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 3: Explain the importance of programming style concepts (documentation, mnemonic names, indentation).

Learning Outcome 4: Utilise pseudocode and/or algorithms as a major program design technique.

Learning Outcome 5: Write and implement a solution algorithm using basic programming constructs.

Learning Outcome 6: Describe program functionality based on analysis of given program code.

Application of knowledge and skills

A1. Develop self-reliance and judgement in adapting algorithms to diverse contexts.
A2. Design and write program solutions to identified problems using accepted design constructs.

Assessment Details

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:

2379_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:

2088_figure1.jpg

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.

As an example, something like this:

would just be a bare pass.

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.

Throughout this assignment you are expected to apply and demonstrate the six steps of problem solving.

You might be asked to demonstrate, discuss or modify your work.

You may supply your word processed documentation in either Microsoft Word or LibreOffice/OpenOffice formats only - no proprietary Mac specific formats, please.
Assignments will be marked on the basis of fulfilment of the requirements and the quality of the work. In addition to the marking criteria, marks may be deducted for failure to comply with the assignment requirements, including (but not limited to):
• Incomplete implementation(s), and
• Incomplete submissions (e.g. missing files), and
• Poor spelling and grammar.

This is an INDIVIDUAL ASSIGNMENT - and while you may discuss it with your fellow students, you must not share designs or code or you will be in breach of the university plagiarism rules.

Attachment:- Caesar Ciphers.rar

Reference no: EM132619414

Questions Cloud

Why useful to the way think about arabic culture : What is the main theme of the reading (The contexts of the literary tradition Actions)? Why useful to the way you think about Arabic culture?
Compute the monthly financial advantage : If Product X is discontinued, compute the monthly financial advantage (disadvantage) for the company of eliminating this product
What are the consolidated inventory and apic balances : In the consolidated financial statements of Jarrod, what are the consolidated inventory and APIC balances
How important are standardized tools in a pmo environment : Can you name examples of organizations that are organized with a project focus? Can you name examples of organizations that are not organized with a project foc
Syntax of a common programming language : Explain the importance of programming style concepts (documentation, mnemonic names, indentation) and Write and implement a solution algorithm
Contemporary legislation-american trade : Within contemporary legislation, find two trade policies that may be considered controversial and discuss how these affect American trade
Discuss the practice of reheating leftover foods : Discuss the practice of reheating leftover foods, along with examples and justification of whether or not this belief is true or false
Explain ethical business practices from the perspectives : Explain ethical business practices from the perspectives of small and large organizations. What are the key differences (if any)?
What Level of Uncertainty is Stem Hong currently facing : Describe the risk profile in which organisations are considering their strategic risk. What "Level of Uncertainty" is Stem Hong currently facing

Reviews

Write a Review

Programming Languages Questions & Answers

  How many time is loop body of while statement executed

How many time is the loop body of the while statement executed? a) once, b) never, c) 49 times, d) 50 times, e) until a number 50 or larger is entered

  Enhance the sentence construction line in analyze function

Enhance the sentence construction line in the "analyze" function. You enhancement could include improving the output to retain some type of context.

  Write a pseudocode to compute an employee overtime pay

Come up with variables plausible. Write a pseudocode to compute an employee overtime pay and tax rate. Draw a flowchart to compute employees overtime and net pay.

  Function to retrieve each of the private data members

Write a class called "Date" with month, day and year as private members. Have constructor that sets default date to 1st January 2000. Have accessor function which retrieves each of the private data members.

  What is hadoop explain in detail

What is Hadoop (Explaining Hadoop)? What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced.

  Write a number guessing game program

Write a number guessing game program. The program will first generate a random number from 1 to 100. Then, the user guesses a number and the game will report whether the guess is too low or too high.

  Create a prolog program that solves the logic puzzle

Create a Prolog program that solves the following logic puzzle, printing the right answer for each of the four cases

  What is java adapter class

What is Java adapter class.

  Write a program that uses is and else or if and elsif

write a program that uses is and else or if and elsif conditional statementsthat asks the user to enter a value for

  Create a program that will input teacher files

The college IT department manager no longer wants to use spreadsheets to calculate grades. The manager has asked you to create a program that will input.

  Create new program which prompts user for numbers

Create a new program whihc prompts a user for numbers and determines total revenue using following formula: Total Revenue = Price * Quantity.

  Write a full program to convert seconds into hours

Write a full program (starting from #include) that takes as input the number of seconds after midnight and displays the time in hours.

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