My ImitationGame Explanation and Analysis

Whew, I finally managed to complete the arduous task of creating an encryption/decryption system. After many misconceptions and bugs, I managed to pull through, gaining new understandings of concepts like static and have cleared up many grey areas that I had before starting this project (instances, scope, structure of code). Starting off I was assigned to create 3 classes, Cipher, Decipher, and ImitationGame with the main method. Therefore, starting with my encryption cipher method would be more logical, and would make it easier to decrypt once I know how to encrypt a word. I started with class Cipher by declaring my 3 field variables, one is the encrypted text (result), and the others are the two strings that I will refer to throughout my classes and code, as they are the strings that include characters that can be encrypted, and characters that can be decrypted. Then, I started to make the encryption method. I decided to use an indexing technique that will iterate through each character in the inputted string, and compare it to each character in the alphabet. The first for loop’s role is to make sure that each letter in the inputted string is iterated through, by making the loop only stop when every character in input has been checked, and the second for loop is the checker, it compares the targeted character in input with every character in alphabet, until it finds a match, and when it does, take that position from the alphabet in the decrypted alphabet and add that character from alphabets position to the new encrypted string (result). Next, I printed the encrypted text result so the user can see their encrypted test, and returned it. Finally, it was necessary to set getters, so that I can refer to the field variables in Cipher later by making an instance of Cipher and using the method (e.g. Cipher.getResult()). Although it is also possible to make the field variables static so that other classes can access them by making an instance of Cipher, however, I was suggested to use get Methods.

Moving onto the Decipher class, I didn’t have as much trouble with this class, as I did with Cipher, for I just needed to swap a few things around, like on line 12, instead of adding characters from decryption, since it is the reverse, I needed to add the characters from alphabet to the result(decrypted text). Also, I created an instance of Cipher, and used its public Get methods in order to obtain private information from Cipher, required for Decipher to understand the different strings it has to iterate through. Then, I just printed out the result for the user to see their decrypted text, and returned it.

Finally writing the main method (inside the ImitationGame class) was a tedious process, and I had to be careful with many things like using break and making sure the loop would continue no matter what the user typed, while also giving the user an option to quit. I managed to accomplish these things, as I included an else statement in my first prompt to the user, and also if the user decides to encrypt, it will prompt ask the user if he/she would like to decrypt the immediate word, or return back to the main menu, by typing anything, even though I specified (Y or N) for simplicity sakes (Line 22) any phrase other than “Y” will return back to the top of the loop. Additionally, I solved the break issue of printing statements later on in the code, by simply making the loop reliant on a variable being true or false, and if there is a scenario in the main method where the code should stop, I can just assign the variable tru = false like I did on Line 39.

Overall this assignment took me to another level in Java, and I feel was really beneficial towards my proficiency level in Java. It really helped me gain a much better understanding of how OOP works, in such ways as understanding hierarchy in Java through coding (Classes – Objects – Methods – Variables), and realizing why I needed to create an instance of a class (object), to run a method of that class.

Macbeth

Act 1 Scene 1: 3 Witches just rose up and when they’ll meet again to make their predictions. Macbeth is Thane of Glamis as his title, also since he performed well he could be called King Duncan and Thane of Cawder.

Act 1 Scene 2: King Duncan has told that Macbeth was brave person and Macbeth and Banquo fought very well , they beat the Thane of Cawdor and rewarded Macbeth only.

Act 1 Scene 3: Macbeth and his partner we’re walking and they ran into the three witches who predicted their futures and that Macbeth would be the Thane of Cawdor for his bravery and it turned out that they predicted the future. 💡

Act 1 Scene 4: Malcolm Donalbain becomes the Prince of Cumberland and Macbeth is shocked.

Act 1 Scene 5: Lady Macbeth is very happy to see the letter of Macbeth becoming the Throne of Cawdor, and wants to become queen, so they talk to kill King Duncan and Lady Macbeth says to leave it to her. She called the evil spirits.

Act 1 Scene 6: King Duncan comes to the castle with his guests, praises Macbeth and says the Air is nice when really the castle and rotten and icky. Lady Macbeth is the first one to greet them.

Act 1 Scene 7: Macbeth starts be hesitant towards killing King Duncan, and his wife comes over to see whats happening. After that Lady Macbeth convinces Macbeth to carry on with the kill , calling him a “coward” and saying “you don’t love me.” Macbeth is now proceeding with the plan to kill King Duncan.

Act 2 Scene: 1 Banquo is having trouble sleeping and remembers the three witches and what they said, meanwhile Macbeth is having trouble carrying out the kill but eventually when he hears the bell he goes. Macbeth is talking to himself(soliloque).

Act 2 Scene: 2 Macbeth comes back after committing the murder of Duncan and his son and is shocked in emotions, his wife plants the daggers and drips blood on the sleeping drunk guards to make them look guilty.

Act 2 Scene: 3 The two royal soldiers come in and ring the bell, the door tender goes and opens it and when the 1st royal soldier enters he greets Macbeth and enters Duncan’s bedroom. He found out Duncan was dead and told everyone, the guards were blamed as suspects. Duncan’s two sons ran away to England and one to Ireland.

Act 2 Scene: 4 Macbeth gets away with the murder and they find out that the two sons of King Duncan fled away. Also Macbeth is the new King.

Act 3 Scene: 1 Macbeth thinks that Banquo knows what happened and the only one who knows about the three witches so he asks his guards to kill Banquo and his son.

Act 3 Scene: 2 Macbeth and Lady Macbeth talk about finishing off the plan. Macbeth is embracing the evilness more.

Act 3 Scene: 3 Macbeth sends another guy that he completely trusts to make sure Banquo and his son are killed, then to kill the other two people. It happened and the one man Macbeth sent remains and comes back. Banquos son flees.

Act 3 Scene: 4 Macbeth is having a feast with his palace guards and soldiers, and he starts seeing the ghost of Banquo. Everyone is shocked on what he is seeing and if he’s hallucinating, Macbeth and Lady Macbeth then go to sleep while the soldiers are excused.

Act 3 Scene: 5 Macbeth spoke to the three witches and they told him to be wary of Macduff and not be worried of any man who was born out of a woman.

Act 3 Scene: 6 Macbeth spoke to two people and asked them if they saw the weird sisters. They said no, but had suspicions that Macbeth killed Duncan and were happy that Macduff was building an army.

Act 4 Scene:1 Nothing

Act 4 Scene: 2 Macduff’s wife’s son and Macduffs wife gets killed by Macbeth’s soldiers. Macduffs wife calls her husband a traitor.

Act 4 Scene: 3 Macduff is tested for he’s loyalty and passes, then he receives the information that his wife and son died and goes to get revenge on Macbeth.

Act 5 Scene: 1 Lady Macbeth hallucinates or is in a mental state where she is rein acting the killing of King Duncan Scene. The lady of the castle calls a doctor to see whats happened to her and he said only God could fix it.

Act 5 Scene: 2 Scottish waiting for the English to arrive, and the English find out Macbeth is preparing for the attack.

Act 5 Scene: 3 Macbeth is in his war-room getting ready for the battle and is very confident from what the witches said to him, the doctor said that Lady Macbeth cannot be cured and she’ll have to cure herself because she’s mental. The doctor fled from frustration.

Act 5 Scene: 4 Malcolm uses the tree bank as a camo to get near the castle.

Act 5 Scene 5: Macbeth’s wife dies and hears from a messager that the woods are moving nearer and he heard this from the witches. Slapped the messager in rage and would rather die in honor.

Act 5 Scene 6: Macduff stated the trumpets and waged war.

Act 5 Scene 7: Killed a young soldier named Cieward.

Act 5 Scene 8: Macbeth continues to fight and boasts about his immortality, also he dies by Macduff who slayed him, the other troops came in later and crowned him King of Scottland.

Visual Literacy

EHIC Video Rubric With Peer Assessing Click: HERE!

1’st Frame Analysis on Macbeth Click: HERE!

Visual Literacy Frame Analysis Summative Click:  HERE!

Partner Frame Analysis Practice Click: HERE!

Oral Presentation on Macbeth&Paragraph Click: HERE!

Oral Presentation Rubric, Reading Assessment and Work Habits Click: HERE!

Grammar

Active and passive voices are basically two different ways to say a sentence. Active voice is when the subject is before the verb and a passive voice is when you say the verb before the subject.

 

Active Voice: Tommy escaped the bank through the back door with the money.

 

 

Passive Voice: The cameras of the bank caught Tommy escaping the backdoor with the money

Commas:

When to use Commas :

1) When splitting phrases that are unnecessary to be there.

2) When connection two solo clauses with a conjunction.

3) When your addressing someone in particular.

4) When jotting down a list.

5) When you have a greater amount of adjectives modifying a noun.

6) After introducing phrases and clauses.

When NOT to use Commas:

1) When splitting two single and independent clauses with a conjunction.
2) After the conjunction.
3) When separating a dependant and independent clause with a conjunction.

Punctuating Dialogue:

Only the words spoken should be surrounded with quotation marks.

Keep your punctuation always inside the quotation marks.

An uninterrupted speech has to have quotation marks only at the beginning and end.

Whenever theirs a new speaker start a new paragraph.

Don’t use repetition with names and try not to repeat them too often. I.E(Tom said…., Mary said….)

Click Here for the ——>tenses_table or http://www.englisch-hilfen.de/en/grammar/tenses_table.pdf

Sentence Types:

Simple, Compound or Complex?

Simple sentence is an indépendant clause containing a subject and a verb and expresses a complete thought.

A compound sentence refers to a sentence made up of two independent clauses or complete lines connected to one another with a coordinating conjunction.

A complex sentence contains several parts or clauses. At least one of these will be the Main Clause which has the main info in the sentence. There will also be one or more Subordinate Clauses which give extra info about what is going on. Subordinate clauses cannot make sense on It’s own.

Ways to “make” a complex sentence. Start with 2 adjectives, start with a “ly”, “ling”, “ing” etc. Sandwich technique, prepositional phrase, start and end with conduction. But end with conjunction simile.

A compound-complex sentence is a sentence that has at least 2 independent (main) clauses and at least one dependent (subordinate) clause.

 

 

Goals

  • Q1 Goals:

Reading Goal:

I will read with my book for 30 minutes from 9:00 PM – 9:30 PM every 5 times a week in my house on my bed. I will keep doing this to form a habit till the end of the quarter. I will prove this with my reading log.

Writing Goal :

Every once a week for this quarter 20-30 minutes. Every saturday 4:00 sitting down at my bedroom desk on NoRedInk doing exercises in order to improve my test grammar. I will prove this by checking my writing pieces on NoRedInk.com and an increase of them.

Q2 Goals:

Reading Goal:

Now that I have a habit I will try and read more books and increase my amount of books for Q2 to 18 books read. Im basically increasing my amount of books read in a quarter by 2 books. I will be on my bed from 9:00 Pm – 9:30 PM every 5 times a week also every bus ride in the morning I will read. I will keep doing this to the end of this quarter.

Writing Goal:

Every once a week for this quarter 20-30 minutes. Every saturday 4:00 sitting down at my bedroom desk on NoRedInk doing exercises in order to improve my test grammar. I will prove this by checking my writing pieces on NoRedInk.com and an increase of them. Specifically improving my sentence fluency. I’m doing again as my same goal because I thought it was really helpful in my tests and there are still more exercises to do.

Q3 Goals:

Writing Goal: From now until Quarter 4 or the end of semester 2 I will try and improve on my word choice by going onto the SAT Vocabulary list and learning two words every week. I will write the words, definitions, and how to use it in a sentence on a google document. I will do this every Friday in my room on my desk.

Reading Goal:

From now until Quarter 4 I will read more of Traditional Literature and Poetry because I have none read of those books. I will read every week day too.

Goal Q1 Presentation Rubric: Click HERE!

Quarter 2 Work Habits Rubric: Click HERE!

Quarter 2 Goals Presentation Rubric Grade Click: HERE!

Quarters 2 Goals Presentation Click: Krish-2014_Core C %22Goals Presentation Q2%22 Correct one

Quarter 4 Smart Goals:

Writing Goal:

I figured that my SAT Vocabulary List goal in Quarter 3 worked really well and I want to continue that goal so that I will be better prepared for the SAT test in the future. Every Saturday I will sit on my desk and study at least 3 words for 30 minutes and master those words. I think I can achieve this given that I can remember a word, its definition and how to use it in 10 minutes, so three words will take 30 minutes. This will be from 3:00 – 3:30. 

Reading Goal:

I want my goal for Q4 to be something that I need to work on, and that something is my reading habits. Lately they’ve been falling down a bit and I don’t want that to happen anymore as discussed in parent conferences. So from now on I will read every weekday right after dinner for 30 minutes, instead of last time where I read after an hour after dinner. This is more attainable for me because I can now be more awake while I’m reading and concentrate better on the book. This is quite realistic because my parents will see me reading right after dinner and its not impossible just for 30 minutes. I think that I will do this from around 7:30 to 8:00.

 

Q3 Goals Presentation Rubric Click: HERE!

Q4 Goals Presentation Rubric Click: HERE!

Writing

Recently we have been reading narratives from different authors and from that we had to make our own narratives using a graphic organiser. We have a bit of experience from how to sort out narratives using the organiser so now we try it on our own narratives. The organiser has different sections and it asks us about all the traits of our story. An example box would ask a question about setting or the background. It helps a lot to sort out your story so that you can just look at it and it’ll be way more easier to write out your draft. We’ve been recording this in our writing journal. It helps gain ideas so that you don’t have to think so much when you write your draft.

 

My Summative Narrative on the time I got surrounded by tear gas!: Click HERE!

Ethos: Convincing your reader by your role in life and credibility.

Pathos: Feeling for your readers and using emotional words or choosing a side and “we”.

Logos: Convincing your reader with logical information that makes sense and has evidence.

Legalize It:

https://docs.google.com/document/d/1aI7Fxs7ZnqDCrM8MLfKFImBC6xPRGrAb0GyiJ8DVApg/edit?usp=sharing

Argument Paper:

https://docs.google.com/a/hkis.edu.hk/document/d/1wj0Fb6LuKdYE1P6Ns6SuDvygw7qvsNubrmcsdfPWH4g/edit

Persuasive Essay on Obesity: https://drive.google.com/file/d/0B9u2t6QCjO4DS3pMV3NTSHV3VV9aQ2lxQUZmMl9TT2JtSUIw/view?usp=sharing

 

Summaries for the theme memory Click: HERE!

The Outsiders Literary Elements Paper Click: HERE!

The Outsiders Literary Elements Essay Click: HERE!

 

Reading

Click HERE to access my online reading log  🙂

I Confess Tracker

 

Popularity Questions for the Popularity Story: HERE!

 

Popularity Reading Comprehension Rubric

HERE! 

My First Conk Formative Reading Assessment & Rubric: Reading Formative!  and Rubric!

Embarassing Moment Writing Formative:

HERE!

Chinese Cinderella Reading Summative

8 Traits of Conversation 3 Rubrics and Reading Rubric Click: HERE!

Best Thinking Papers for Books Click: HERE and HERE and HERE

HERE!(pg1)

HERE!(pg2)

HERE!(pg3)

PSA Project Rubric Grade Click: HERE!

Formative Reading Assessment Click: HERE!

Summative Reading Assessment Click: HERE!

Tuff Time 19 March 2015

Are the Socs and Greasers really that different? why? why not?

I think that the Socs and greasers are different in ways and the same in ways. First of all they are different because Greasers are much more poorer than Socs. Socs and Greasers both come in gangs and they are both humans. Socs attack Greasers for please and the Greasers are like defenders.

Are there any connection you can make to any of the characters and/or their situation

I can connect with Ponyboy because some times when I was young I will like running away because I was fed up or didn’t want to do something. Also I can connect with Two-Bit and how he stands up to the enemies, I feel like getting justice is the best thing instead of fleeing.

1. Why do you think Johnny killed Bob?

2. To defend Ponyhair and because Bob assaulted Johhny before

3. What could have been some alternatives?

4

___________

1. What is the difference between Cherry the Soc and Cherry the Dreamer?
Cherry the Soc is a rich kid but doesn’t yell are the greasers when Cherry the Dreamer is an ordinary human being.

2. Are Ponyboy, Johnny and Dally heroes? Why? Why Not?
They are heroes because they were saving people who they don’t know. Also they aren’t heroes because they risked their lives and took the police’s jobs when they should’ve not let the kids roam in the church.

3. How do we know Darry does truly care for Ponyboy?
We know this because Darry really wants to protect Ponyboy and was really sorry when he ran away.

1. Write about what you understand about cherry’s line “I could Fall”
I understand that Cherry could be jumped by the Socs now that she’s an easy target.
2. In realising that Cherry has green eyes what does this signify for PB and his understanding of people and the world.
It signifies that PB thinks that some people with different colour of eyes are different by their acts, like Cherry’s acts varied from others.

Wonder Words Wall

Rogue: Mutant

freak, freak of nature, deviant, oddity, monstrosity, monster, mutation, variant, variation; Latinlusus naturae; rare miscreation.

leverage

Jimmy Zest: exiguous

sociolect

Castaway Survival Guide: fuselage toxicant The Breakfast Museum:

contemptuous

Down a Dark Hall:

tumult

begrudgingly

translucent

(of a substance) allowing light, but not detailed shapes, to pass through; semi-transparent: her beautiful translucent skin.

intercede

intervene on behalf of another: I prayed that she would intercede for us.

Big Foot: elephantine

of, resembling, or characteristic of an elephant or elephants, especially in being large, clumsy, or awkward: there was an elephantine thud from the bathroom.

The Darkling Curse:

formidable=

inspiring fear or respect through being impressively large, powerful, intense, or capable: a formidable opponent.

National Geographic Kids Alminac 2015:

Trees:

Al Capone does my shirts:

Diary of a Wimpy Kid (The Long Haul):

Broken:

Brians Winter:

Big  Foot:

The Darkling Curse:

horrendous: extremely unpleasant or horrifying thing

abhorrent: inspiring disgust and loathing

The Giver Vocab Quiz Test Paper and Result Click: HERE!

The Outsiders Vocab Quiz Test Paper Click: HERE!