Test your python skills in exploring and manipulating text

Assignment Help Python Programming
Reference no: EM132363548

Fundamentals of Programming Assignment - Sonnets and Doublets

Overview - In this assignment you will have the opportunity to test your Python skills in exploring and manipulating text. Throughout the assignment you are expected to apply the principles of problem solving that we have already discussed in this course.

Learning Outcomes Assessed - The following course learning outcomes are assessed by completing this assessment:

Knowledge:

  • Identify and use the correct syntax of a common programming language.
  • Recall and use typical programming constructs to design and implement simple software solutions.
  • Explain the importance of programming style concepts (documentation, mnemonic names, indentation).

Skills:

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

Application of knowledge and skills:

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

Assessment Details -

Part 1 Sonnets - Background

Sonnets are poems which have the following form1 (Shakespeare's sonnet 116):

Let me not to the marriage of true minds (A)

Admit impediments, love is not love (B)

Which alters when it alteration finds, (A)

Or bends with the remover to remove. (B)

O no, it is an ever fixèd mark (C)

That looks on tempests and is never shaken; (D)

It is the star to every wand'ring bark, (C)

Whose worth's unknown although his height be taken. (D)

Love's not time's fool, though rosy lips and cheeks (E)

Within his bending sickle's compass come, (F)

Love alters not with his brief hours and weeks, (E)

But bears it out even to the edge of doom: (F)

If this be error and upon me proved, (G)

I never writ, nor no man ever loved. (G)

There are 3 quatrains (group of 4 lines) and a couplet (2 lines) making a total of 14 lines. The rhyming pattern is shown with the letters at the end of each line.

Shakespeare has written some 154 sonnets together with many plays - doubt (Craig & Kinney, 2009; Holmes & Kardos, 2003; James & Rubinstein, 2006; Jarmusch et al., 2013; Rubbo et al., 2008) exists as to whether, the person known to be called Shakespeare, was the actual author of all the work presented under this name.

There is a considerable prize still to be claimed by anyone who can prove or disprove this.

Your Task - explore possible authorship

Even though we have just become familiar with Python, there are three very simple tests that we can apply to authorship - and we have the means, with lists and strings in Python, to implement them:

1. Count the occurrences of each letter in the text.

2. Print the number of one-letter, two-letter, three-letter words and so on.

3. Print the number of occurrences of each different word in the text.

The first pass might be to see if there is consistency across all the sonnets.

Use the text from the sonnets and apply these three metrics. (We shall leave the actual plan and algorithm up to you - discuss it with your lecturer/tutor if you wish).

Three possible authors who might have written under Shakespeare's name are: Francis Bacon, Ben Jonson and Christopher Marlowe. Their works are readily available online.

Part 2: Doublets

Doublets (or word ladders) are often found in magazines and newspapers together with cryptic crosswords and other puzzles.

The idea is very simple: you might be given two words - often they are antonyms - and your task is to create a ladder of words with these two words at the top and bottom of the ladder.

The aim is to make the number of words joining HEAD and TAIL as few as possible.

In this assignment you are given a file of some 5700 words together with the pairs of words below (to use as a start and end); you are asked to use your Python skills to find the fewest words that will link them.

Use the following pairs of words:

i. FLOUR-BREAD

ii. CHAOS-PEACE

iii. TEARS-SMILE

iv. WITCH-FAIRY

v. BLACK-WHITE

vi. SLEEP-DREAM

vii. RIVER-SHORE

Then, choose 3 different pairs of words from the file and use these as well.

Attachment:- Programming Assignment File.rar

Reference no: EM132363548

Questions Cloud

Do you think that nonprofit leadership considers : Do you think that Nonprofit Leadership considers its mission in all of it decisions? Why or why not?
Identify a company which is listed on the asx and collect : Identify a company which is listed on the ASX and collect recently published annual report from the company webpage.
How can identifying your opportunity costs : Decide which of the 3 TED Talks best responds to this question; How can identifying your opportunity costs, help you make better choices?
Discussion about the decision support systems : Submit a 2 to 3 page paper focused on decision support systems (DSS) and business intelligence (BI). Provide an example of a DSS with a visually effective graph
Test your python skills in exploring and manipulating text : Federation University - ITECH1400 Fundamentals of Programming Assignment - Sonnets and Doublets. Test your Python skills in exploring and manipulating text
Define comprehension of two quantitative research studies : Write a critical appraisal that demonstrates comprehension of two quantitative research studies. Use the "Research Critique Guidelines - Part II" document to.
Describe the pros and cons of using stream scheduling : Outline the major differences between new and established patients and how healthcare professionals should handle each patient type.
What is strategy and why is it important : What is strategy and why is it important. Please provide examples of organizations that demonstrate successful strategy.
What are the tensions for patagonia around dwr : What are the tensions for Patagonia around DWR and who are the stakeholders associated with each of these tensions?

Reviews

len2363548

8/30/2019 10:38:14 PM

Submission - You must supply your program source code files and your documentation as a single zip file. 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. You might be asked to demonstrate and explain your work.

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