ITECH1400 Fundamentals of Programming

    Need Solution - Download from here



    Assignment 1 – Sonnets and Doublets Python Assignment
    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.
    Timelines and Expectations
    Percentage Value of Task: 20% Due: 5 pm Friday, 13 Sept 2019 (week 7) Minimum time expectation: 20 hours
    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.
    CRICOS Provider No. 00103D ITECH1400 Assig 1, Sem 2 2019 PARTNER.docx
    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:
    da DUM da DUM da DUM da DUM da DUM
    but SOFT | what LIGHT | through YON | der WIN | dow BREAKS
    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 this3.
    1 Adapted from: https://en.wikipedia.org/wiki/Sonnet#17th_century
    2 For those of you who are curious about computers that can scan poetry there is an excellent text (with Python code):
    Hartman, C. O., & ProQuest (Firm). (1996). Virtual muse experiments in computer poetry. In Wesleyan poetry (pp. 152 p.). Retrieved from https://ebookcentral.proquest.com/lib/unimelb/detail.action?docID=776845 Connect to ebook (University of Melbourne only)
    3 Calvin Hoffman Bequest: http://www.marlowe-society.org/the-hoffman-prize/
    CRICOS Provider No. 00103D ITECH1400 Assig 1, Sem 2 2019 PARTNER.docx

     

     
    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.

     

    By |2019-08-13T11:55:36+00:00August 13th, 2019|Categories: Python|0 Comments

    Leave A Comment