Describe program functionality based on analysis

Assignment Help Python Programming
Reference no: EM132364795

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:

K1. Identify and use the correct syntax of a common programming language.

K2. Recall and use typical programming constructs to design and implement simple software solutions.

K4. Explain the importance of programming style concepts (documentation, mnemonic names, indentation).

Skills:

S1. Utilise pseudocode and/or algorithms as a major program design technique.

S2. Write and implement a solution algorithm using basic programming constructs.

S4. 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 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.

Each line is in iambic pentameter2 (weak-strong). A standard line of iambic pentameter is five iambic feet in a row:

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 letter4 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.

For example:

HEAD

HEAL

TEAL

TELL

TALL

TAIL

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

In this assignment you are given a file5 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.

You may supply your word processed documentation in either Microsoft Word or LibreOffice/OpenOffice formats only - no proprietary Mac specific formats, please.

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.

Reference no: EM132364795

Questions Cloud

Explain why usain bolt would pay james bold : Explain why Usain Bolt would pay James Bold to mow his lawn rather than do it himself?
Durability standards for different products lines : Should Patagonia change its quality/durability standards for different products lines (Super Alpine vs. Board Shorts)?
Write sql insert statements that add the data : Write SQL INSERT statements that add the data - Write SQL INSERT statements that add the data shown to the SALESPERSON table.
What instances have patagonia attempted to transform : In what instances have Patagonia attempted to transform its supply chain and the broader industry but did not succeed? Why do you think the company failed?
Describe program functionality based on analysis : ITECH1400 - Fundamentals of Programming - Federation University - test your Python skills in exploring and manipulating text - Write and implement a solution
Final consumption expenditure by households on food : Questions 1 and 2 are based on the following dataset for real final consumption expenditure by households on food, beverages and tobacco.
Textile industry to adopt more sustainable solutions : What will really change the textile industry to adopt more sustainable solutions? What influence do brands primarily have over global supply chains?
Analyze potential benefits of learning about health economic : Analyze the main potential benefits of learning about health economics related to private sector government involvement in healthcare economics, financing.
Australia to prevent the formation of monopolies : Explain why we have laws in Australia to prevent the formation of monopolies? Why are competitive markets considered desirable from a societal standpoint?

Reviews

len2364795

9/2/2019 4:10:34 AM

Sonnets Item Mark Algorithm in pseudo-code 10 Implementation of algorithm into Python code 10 Demonstration that code works correctly using representative samples 15 Correct Output and Discussion6 10 Doublets Algorithm in pseudo-code 10 Implementation of algorithm into Python code 10 Demonstration that code works correctly using representative samples 15 Correct Output and Discussion 10 Report7 10 TOTAL 100 FINAL MARK /20

len2364795

9/2/2019 4:10:25 AM

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.

Write a Review

Python Programming Questions & Answers

  Cumulative average for all the assignments

The program should output the students name, a letter grade for each assignment score, and cumulative average for all the assignments

  Write python program to implement stack adt using lists

Write Python program to implement Stack ADT using both Lists and Linked Lists that includes the following operations: To add a data element in the stack.

  Make a gui program that calculates the hypotenuse

Make a GUI program that calculates the hypotenuse of a right triangle after the user enters the lengths of the two short sides and clicks the Calculate button.

  Calculate the area of a rectangle and displays it

Write a python program that calculates the area of a rectangle and displays it - Display the variables length, width and area on screen using the print function

  Create a cheat commands in the game so player can teleport

Create a cheat commands in the game so player can teleport to any location in the map - The first four tasks in this section can be completed by modifying only the code within the ProcessStatement() and Game() functions. This section typically requ..

  Computes xn using recursion and iteration

Write a program that has two methods that computes xn using recursion and iteration. Remember xn is just x multiplied by itself n times.

  Python journeyman

What are the steps YOU would recommend to a Python journeyman, from apprenticeship to guru status?

  What is a python development framework

Give 3 examples python development framework used today. and explain which development framework is used in which industry.

  Output a brief description of the game of hangman

Output the appropriate number of dashes and spaces to represent the phrase. Dashes are placeholders for letters.

  Solve the puzzle by using breadth-first tree or graph search

CISC 339 Aritificial Intelligence Group Project. Formulate the problem precisely. Solve the puzzle by using breadth-first tree or graph search

  Why is software configuration management

Why is software configuration management considered an umbrella activity in software engineering?

  Without using the system function to call any bash commands

without using the system function to call any bash commands write a python program that will implement a simple version

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