Wednesday, September 28, 2016

To Do September 28 2016






  • History




  • Programming


  • Lab 5.1

  • Math

    • 11.8 9/29/16




  • Business Writing



  • Write the Lego Assignment
  • History Notes


    • Arthasastra
      • Book on How To Rule a Country By Being A Dick
    • Who is credited for writing the Arthasastra?
      • Kautilya
    • When was the Arthasastra Written?
      • 300 BCE to 200 CE
    • Who was the third emperor of the Mauryan Empire?
      • Ashoka
    • Ashoka
      • Wanted to peacefully overtake other areas
      • Buddhist
      • His reign was from 269 to 232 BCE
      • He killed ninety-nine of his brothers
      • He fought for years to be the leader
      • Ashoka after the Kalinga War...
        • Changes his image
        • Doesn't Change His Actions
      • What were Ashoka's Rock Edicts?
        • A series of rules written on stone pillars:
          • Don't Kill
          • Don't Sacrifice
          • Give Welfare to All
          • Spread Dharma
    • What Did Chandragupta do to Unite the Mauryan Empire?
      • Split the area into four provinces
      • Had Advisory Councils
    • Additional Systems that exist to keep order in the Mauryan Empire
      • Janapadas
        • Existing in rural areas
        • Family system that act as local rulers
          • Broker Trade Deals
          • Work on Public Works
          • Enforce Justice System
      • Panchagat
        • Five Men who had the most power and influence in a particular city or town, who:
          • Broker Trade Deals
          • Work on Public Works
          • Enforce Justice System
      • Caste System Tied to Hinduism
        • Way of Works
      • Pulisani
        • Public Relations Officers
        • Traveled Around The Empire
        • Reported Public Opinion Back to the Emperor
      • Undercover Informants
        • Public Relations Officers
        • Who Could Punish People
        • Used Primarily Against the Elites
        • Could be Bribed
      • Dharma Officials
        • Travel the Empire
        • Tell People How To Follow the Dharma
        • Make Sure People Follow the Dharma
        • Go to Every House In The Empire
    • Why Did The Mauryan Empire Tank?
      • Ashoka's sons battled for control
        • Starting a civil war
      • Money became devalued
        • Outside trade was endangered  
    • The Mauryan Empires Enforced More Control Than the Persian Empire
    • What is the Purpose of Having Many Ways to Unite a Civilization, Even Without An Empire?
      • They keep order when there is no empire
      • These exist regardless of whether there is an empire
    • Why Did Buddha Stop Being A Prince To Become An Ascetic?
      • The Prince Sees Pain and Suffering on the Streets
      • And He Begins to Think of Why People Are In Pain and Why They Suffer
      • Buddha makes it his job to stop pain and suffering
    • Samsara
      • The wheel of reincarnation 
    • Dharma
      • Moral Law
        • The universal way
        • The way the universe is supposed to be
      • Your duty
      • Your place in the universe
      • Your role in society
      • Ashoka's Definition of Dharma
        • To Be A Good Citizen By Following His Edicts
    • Kharma
      • Bad deeds act as a weight on your soul
    • Darius
      • Military badass, ruler
    • Ezana
      • Was a very religious ruler, who claimed that his power came from Ahura Mazda
    • Axsum Empite
      • How Long Did the Axsum Empire In Ethiopia Last?
        • 200 BCE to 650 CE
      • Tradition
        • Orally Spread
      • African Climate and Trade
        • Climate
          • Climate can sustain these foods:
            • Tef
              • Kind of like wheat
            • Millet
              • Grain that looks like a fox's tail
            • Coffee
              • Originally was only in Yemen
              • The rest of the world only gets into to coffee in the 17th century
          • Savana
            • Largest part of Africa
            • Covers 55% of Africa
            • Grassland
            • Has Rain Fall
          • Sahara
            • Is Hot
            • Has salt
            • Desert
        • Trade
          • Red Sea
            • Allows for better trade throughout Africa
          • Greece and Rome
            • Huge training partners
          • Languages
            • They spoke Arbic and but for the most part Ge'ez
            • They also could speak the language of the individuals they traded with
          • The introduction of christrianity shifted trade
      • Axum: State and Religion
        • State
          • They had a King of Kings System
            • Kings paid taxes to the main king
          • Minted the first coins in the world, with christrian crosses on them
        • Religion
          • Main God
            • Mahrem
          • Believed they had a covenant with Yahweh
          • They believed that Sheba and Solomon had sex with eachother, and stole the Ark of the Covenant
          • They are Monophysites
            • They believe that Jesus is God
          • The oldest gospels in the world are in Ethiopia
      • Decline of the Axsum Empire
    • African Diseases in The African Rainforest
      • Betse
        • Gives you a sleeping sickness, that kills you
      • Malaria
    • Where was a lot of gold in Africa?
      • The Rainforest

    Monday, September 26, 2016

    Programming In Class Notes


    • How Do You Raise "e" to a power?
      • math.exp(number value)
    • What function represents pi in python?
      • math.pi
    • How do you find the absolute value of a number?
      • abs(number value)
    • When does None occur?
      • When you print an undefined variable
    • What Function Finds Distance?
      • distance(number value, number value, number value, number value)
    • What Function Finds a Squareroot?
      • math.sqrt(numbervalue)
    • What displays the value of a function's calculation?
      • return variable name
    • How do you check to see if a number can be evenly divided by another?
      • number % number
        • If the solution is equal to zero
    • return bool (0)
      • Will Give You False
    • return bool (any non-zero number)
      • Will Give You True
    • return bool("string")
      • Will Give You True
    • return bool("")
      • Will Give You False
    • If you place not in front of a boolean function, whenever it prints true or false, it is printing the opposite of what it actually is
    • Be careful using float numbers, they are not exact, they are approximate 

    History Notes 9/26/16


    • Persian Empire
      • First long lasting world empire
      • Territory
        • Divided the area into satraps (provinces)
      • Leaders
        • Satraps were lead by governors known as satrapies
    • Mauryan Empire
      • This empire was in India, and compared to the Persian empire, was rather short lived
      • Thanks to the Indian Religions Practiced, the Empire Had What?
        • A strong cultural unity
      • Chandragupta reigned from 320 to 298 BCE
        • He was a freedom fighter against Alexander the Great
        • He took power over part of Northern India when Alexander the Great died
        • He practiced Jainism
      • Megasthenes
        • Wrote the most about the Mauryan Empire
        • He was a Greek diplomat, who was sent by Seleucus who was the emperor of one third of Alexander's empire, who made trade deals with Chandragupta. 
      • They had a lot of trading of:
        • Spices
        • Bronze
        • Cotton (Big Seller)
      • Trade and government were aided by the grand trunk road
      • Ruled by diplomacy, by having territories pay taxes.
      • Kautilya was one of Chandragupta's best advisers
        • Is given credit for writing the Treaty on Polity
        • It seems that other people were involved in its creation
      • Was divided into four provinces
      • This empire was far more beaurecratic than Persia, this was seen by how they had:
        • Their own department of timber
      • Treaty on Polity

    • What do All Indian Religions Share?
      • Dharma
      • Samsara
      • Karma

    To-Do September 26 2016





  • History

    •  



  • Programming
  • Lab 5.1
  • Math

    • 11.8 9/29/16



  • Business Writing


  • Write the Lego Assignment
  • Wednesday, September 21, 2016

    Programming Notes


    • What is The Opposite of....
      • >
        • <=
      • <
        • >=
      • >=
        • <
      • <=
        • >
      • == (assignment)
        • != (not equal)

    To-Do September 21 2016


    • History
      • Meet Up With The Teacher 11am Tuesday
      • Submit Lydia's Video Proposal to Turnitin.com 
      • Midterm Review (Zoroastrianism) 9/27/16
    • Programming
    • Math
      • 11.8 9/29/16
    • Business Writing

    History Section 02 Notes September 21 2016


    • Pg.80
      • The Greeks supplanted the Persians in Northwest India in 322 BCE
      • Mauryan Empire
        • Chandragupta founded the Mauryan Empire 
        • The Empire Flourished Under Ashoka's Rule, but declined after Ashoka's demise
      • Darius conquered the Indus Valley and Kashmir around 513 BCE
      • Persian Influence on India
        • India began to mint silver coins
        • India adapted the Aramic Script and began adapting their works into Aramic
      • The Persian Empire succumbed to Alexander the Great in 326 BCE
      • The Greeks were impressed by India, and Alexander the Great debated with and learned from their philosophers 
    • Pg.81
      • Chandragupta founded the Mauryan Empire thanks to Alexander the Great's invasion
        • The invasion created a crisis, that allowed Chandragupta to expand his territories
      • The Mauryan Empire's government was heavily inspired by the Persians
        • It adapted the province system used by the Persians 
        • Developed a departmental military Developed a taxation system that collected money for public works by taxing agriculture
      • The Mauryan Empire was the first time in which one man governed most of the subcontinent in India's History
      • Who was Kautilya?
        • He was Chandragupta's great minister, who wrote a treatise of war called the Arthashastra
          • What is the Arthashastra?
            • A treatise on how a king should seize, hold, and manipulate power using: 
              • Spies dressed as gods
              • Attacking enemies when their down
              • Allying with your enemy's enemies
      • What is the Significance of Megasthenes?
        • He is a Greek ambassador, who was sent by Seleucus to India
        • He spent fourteen years in Chandragupta's court, and left a lively description of life in India
    • Pg.83
      • Chandragupta kept himself constantly protected from assassination, and lived a long life
      • Who is Ashoka?
        • Ashoka is the grandson of Chandragupta
        • Ashoka embraced Buddhism, and promoted its spread across India
        • Ashoka had to rebel against his older brother, after his father's death, in order to become king
        • Ashoka loved the banquet hall and harems
        • Ashoka for a period was a fierce fighter, but after conquering Kalinga, changed his ways, and spread a doctrine of non-violence
          • This went as far as to not only to forbid the hunting of man, but also animal sacrifices and the hunting of animals
        • Rather than hunt, Ashoka would go on religious pilgrimages
          • Ashoka once went on a 256 day pilgrimage to all the holy sites of Buddhism
    • Pg.84
      • Until ancient scripts were deciphered in 1837, nothing was known of Ashoka's achievements and pursuits for man and beast alike
      • The pillars on which the Ashoka inscription survived, are the first examples of art, to survive since the end of the Indus Civilization
      • Ashoka forbid any religious divides to exist in Buddhism, as he wanted the religion to be strong and united
      • Ashoka ruled for 37 years
      • After Ashoka's death, the empire went into decline
      • The Mauryan Empire Collapsed in 185 BCE
      • The cultural unity of the many religions and epics helped to establish a strong cultural unity, where political unity did not exist
      • Who took rule after the Collapse of the Mauryan Empire?
        • Indo-Greek, ruled by the inheritor's of Alexander the Great's defunct empire

    • Pg.85
    • Pg.86

    History Section 02 In Class Notes September 21 2016


    • What Do I Think The Essay Questions Could Be?
      • What were the main goals and practices of the religions of the ancient world?
      • How were different ancient civilizations similar and different from one another?
    • What Do My Classmates Believe The Essay Questions Could Be?
      • Compare and Contrast Indian and Chinese Religions
      • Why do all the religions appear to arise around the same time (6th century BCE)?
      • How did geography affect the ancient river civilizations?
      • What were common problems faced by ancient river civilizations, and what were the different solutions?
    • Classical Consolidation: Empire
      • Time Frame
        • 1200 BCE - 450 CE
      • What is Happening During This Time Period?
        • Growing populations
        • Coherence Under The Empire
        • Consolidation of Social Systems
      • What Happens When Populations Grow?
        • More people specialize in what they do
        • There is more manufacturing
        • There is more trade
        • Less people have to farm
        • More people are living in cities
        • More people are spreading out
        • More neighboring populations are interacting with each other
        • Culture begins spreading more rapidly, as more individual populations interact with each other
          • Hinduism spread across India
          • The Caste System and Confucianism spread
      • What is an Empire?
        • A group of states/countries united:
          • By Culture
          • By a Single Ruler
          • By a Family Hierarchy of Rulers
          • Strong Government
          • Economics
          • Military
      • In India when they refer to taking over the world, they really meant what?
        • That they wanted to take over India
    • What was the first long lasting world empire?
      • Achaemenid Persians
    • How Long Did The Achaemenid Persian Empire Last?
      • 539 - 330 BCE
    • What was the greatest strength and weakness of the Achaemenid Persian Empire?
      • They were hands off
    • What does it mean, that the Achaemenid Persian Empire is hands off? How is this a weakness?
      • The persians would conquer different areas, but then allow each area to follow their own culture, laws, and calendars
      • Each area is united among the Empire through economics, by paying their taxes
      • When the empire encounters military conflict, due to the lack of cultural unification, would quickly breakdown
    • Zoroastrianism
      • Zoroaster was born to a fifteen year old virgin.
      • He performed many miracles
      • He lived in a world of magis
      • He spoke with Ahura Mazda
      • Ahura Mazda is the one true god, the light, the truth, the goodness
      • Zoroastrianism gave the people a choice
        • You could work with the light
        • You could work with Ahriman
      • Ahriman is the darkness, one of lies
      • The Three Layers of feathers on the wings of Ahura Mazda represent good words, good thoughts, and good deeds while the three laters on the tail represent the opposite
      • Zoroastrianism was heavily based on performing good deeds, and helping people
      • Zoroaster only converted his cousin to Zoroastrianism 
      • Zoroastrianism didn't take off, until Zoroaster died
      • Ahura Mazda and Ahriman are locked in battle, until the judgement day, in which everyone reaches judgement
      • Zoroastrianism is a linear religion, that believes in a time, in which time will end
      • Zoroastrianism taught a lot about angels and demons
      • Zoroastrians have to marry other Zoroastrians
      • Zoroastrianism doesn't force people to convert
      • Islam in the 7th century CE almost completely wipes out Zoroastrianism
    • When did Cyrus (The Persian Empire) Take Babylon?
      • 539 BCE
    • Why did Cyrus Take Babylon?
      • Agricultural Advantages
      • Dye related resources
    • Who is Cyrus's Son?
      • Cambyses
    • Cambyses took Eygpt and was perceived as what?
      • A god
    • Cambyses was considered as what kind of leader?
      • A great leader, at least, the elites believed so 
    • Darius embraced Zoroastrianism 
    • How was Darius related to Cyrus?
      • He wasn't
      • He was a general under Cambyses
    • How Did Darius Take Control Over The Persian Empire?
      • He created a pact with military men, and worked with them to kill Cambyses, and use the army to rule
    • Who was the heir of Darius?
      • Son of one of Cyrus's daughters, who Darius married
    • How many daughters of Cyrus did Darius marry?
      • Two
    • Darius claims that he is related to what ancient family that is connected to the first Persian Empire?
      • Achaemenes
    • How Did Darius Claim Legitimacy?
      • He stopped rebellions with military power
      • He claimed to be related to the Achaemenes
      • He gave birth to a blood heir
      • He made Persepolis, a huge palace, to show off his power
      • Grassroots Localism
        • He allowed places he conquered to rule themselves, but they had to pay taxes
    • How do people know of Darius?
      • He made giant wall inscriptions in multiple languages, that proclaim his power
    • What did Cambyses, Darius, and Cyrus Practice in Order to Expand Their Empire ?
      • Grassroots Localism
        • He allowed places he conquered to rule themselves, but they had to pay taxes
    • How Did Persians Divide the Area They Conquered?
      • They divided them into Satrapies, which were ruled by Satraps
    • What are Satrapies?
      • Provinces
    • Who are Satraps?
      • Governors of Provinces
      • Normally Persian
      • Collect Taxes
      • Complete religious rituals, protect the people, and build/maintain public works
    • What were the checks of power for the Satraps?
      • Inspectors
      • Local Appeals to the King
      • And a Relationship between the King and Local Elites
    • The Persian Empire Had One of the Best Road Systems in the World
      • The Persian royal road could travel from Susa to Sardis in seven days
    • Why didn't the Persian Empire Last?
      • Alexander the Great brings the end of the Persian Empire
      • Alexander the Great would visit local elites, and tell them that if they pay taxes, they don't have to fight for power
      • Alexander so easily takes the empire, because he uses the same Grassroots Localism

    Monday, September 19, 2016

    Programming In Class Notes 9/16/16


    • Four Basic Elements of Programming
      • Sequential Execution
        • Top to Bottom
      • Selection
        • Branching
          • Chapter 5
      • Looping, Repetition, While
        • Chapter 7
      • Sub Routine, Function
        • Chapter 3
        • Chapter 6
    • How Do You Divide A Number And Have The Solution Have No Decimals (Floor Division)?
      •  print (first number // second number)
    • How Do You Find The Remainder of Two Numbers Divided By Each Other (Modulus)?
      • first number % second number
    • How Do You Compare Two Variables?
      • To see if they are equal
        • first variable == second variable
      • To see if one is greater than the other
        • first variable > second variable
      • To see if one is less than another
        • first variable < second variable
    • If at least one statement is true in an or statement and the rest are false...
      • The entire statement is true
    • If only one statement is true in an and statement, and the rest are false.....
      • The entire statement is false
    • Or statements are only false if.....
      • All statements involved are false
    • Not Statements are...
      • True when the statement is false
      • False when the statement is true
    • What are the types of True and False?
      • Boolean
    • How Are Strings Organized Like Numbers in Python?
      • Shorter strings are considered less than longer strings
      • Empty strings are the shortest strings that can exist (Empty strings have nothing in them, this is not the same as having a string with spaces in them)
      • Capital letters are considered less than lowercase letters
    • Inequalities
      • Greater than or equal to
        • >=
      • Less than or equal to
        • <=
      • Less than
        • <
      • Greater than
        • >
    • How do you convert a string variable into being uppercase?
      • str.upper(variable name)
    • How do You Write an Else Statement?
      • You write it at the same indentation as the if statement, but right below the if statement
      • else :
    • How do You Write and What is An Else If Statement?
      • You write it below and at the same indentation of an if statement
      • It works as an alternative to the first If statement
      • elif variable name

    History Section 02 In Class Notes 9/16/16


    • Moksha
      • Definition
        • Release from Samsara
        • Becoming one with the universe
        • Goal of Hinduism
          • What is Samsara?
            • Perceived Reality
            • The wheel of re-incarnation 
      • Ordinary Method
        • Way of Works
          • How is it Practiced
            • You work your way through the caste system, until you are re-incarnated as a male Brahman, and are released from Samsara
      • Elite Method
        • Way of Withdrawal / Renunciation 
          • How is it Practiced
            • Asceticism and meditation on the Vedas, with no accumulated bad karma
      • Another Method
        • Way of Wisdom
          • How is it Practiced
            • Realizing that you are a part of the universe, by reading the Upanishads, which allows you to be released from Samsara, and become one with the universe
    • What is Atman?
      • The Divine that is within you
    • What is Brahman?
      • The Universe is The Impartial God and True Reality
    • In Ancient India and China, what is the purpose of Gods?
      • Gods were more or less not the point
    • Jainism and Daoism are Both Reactions to What?
      • Hinduism
    • When was Hinduism founded?
      • 3000 BCE
    • Jainism
      • Definition
        • The practice of self-harm and ahimsa to float to the top of the universe and escape samsara
      • How Do You Practice It?
        • Clean Karma from your body, through self harm, so that you may float to the top of the universe
        • Have Ahimsa
          • What is Ahimsa?
            • Care for all beings, as all beings have souls, inanimate or otherwise
      • Founder
        • Mahavira
          • What Did He Try To Do?
            • Be an ascetic through Hinduism, but he found what he considered the right way to find Moksha
          • When Did He Found Jainism?
            • 520 BCE
    • Buddhism
      • How Is It Practiced?
        • By not having any attachments/obsessions
        • By understanding that by releasing one's own attachments, one will no longer suffer, and be released from samsara and achieve nirvana 
        • Following the Four Noble Truths and the Eight-Fold Path
          • What is the Eight Fold Path?
            • Right View
            • Right Intentions
            • Right Speech
            • Right Action
            • Right Livelihood
            • Right Effort
            • Right Concentration
            • Right Mindfulness
      • What is the Goal and How Do You Reach It?
        • Learn that desires and attachments bring suffering, and bind you to samsara.
        • Once you drop your attachments and desires, you may escape samsara, and enter nirvana 
      • Founder
        • Siddharta
      • Was taught using what language?
        • The common language rather than sanskrit, because sanskrit was only understood by Brahmans
      • Time Period
        • 566s BCE
      • Mustard Seed
        • It is a story in which Buddha sends a woman who lost a loved one, to talk with others who lost their loved ones, to realize that death doesn't really matter
    • Jainism and Buddhism
      • Both Agree
        • That Dharma, Samsarma, and Karma are Legit
        • That the Caste System Can Be Ignored
    • What is a Lay Person?
      • In a religious context, anyone who is not a priest or monk.
      • Individuals who have not taken a religious vow.
    • Warring States Period
      • Time Period
        • 403 - 221 BCE
      • What was life like?
        • Difficult, because war is erupting quite often
    • What Were The Focuses of Confucianism and Daoism?
      • To teach people how to behave, and rulers how to rule
    • Confucianism
      • How is It Practiced?
        • Following Li, the five relationships, and filia piety to become one with the Dao
      • What Does Confucius Say About People?
        • People are good at heart, and want to be good
        • If people are educated, people will be good people
      • What Did They Consider The Perfect Time Period?
        • Zhou
      • What Were Are The Confucius Writings?
        • The Analects
      • What Are Confucius's Normative Controls?
        • Li
          • Practicing behavior and rituals that are essentially appropriate behaviors and common courtesy
        • Ren
          • What you get for being a good person by following Li
      • What is the Golden Rule of Confucianism?
        • Treat others as you would like to be treated
    • Daoism
      • How is It Practiced?
        • Following Wu Wei
          • Behave spontaneously, while being in touch with the moment
      • Beliefs
        • No one knows the truth
        • Education is stupid
        • True wisdom is spontaneous and cannot be taught
      • What is Its Goal?
        • To Become One With The Dao
      • What is Dao?
        • Ultimate Reality
        • And One's True Place In Reality
        • Everyone has a truly destined place in reality
      • Can we Talk About The Dao?
        • You can never know or explain the Dao
      • The Way of the Dao is Written In What?
        • Paradoxes
    • Legalism
      • Believed That...
        • Human nature is bad
        • That people should be controlled through strict laws

    Friday, September 16, 2016

    Lab 1 - 2.6

    Lab One: Questions Two and Three

    Question 2

    PV = 60000 #You Borrow $60,000
    r = 0.05 # Yearly Interest = 5%
    n = 8 # 8 years
    r = r/12 #Monthly Payment
    n = n*12 #96 months
    top = r* PV
    bottom = 1-(1+r)**-n
    fraction = top / bottom
    P=fraction
    print ("P = "+str(P))
    print ("PV = "+str(PV))
    print ("Monthly Interest = "+str(r))
    print ("Number of Periods in Months = "+str(n))



    Question 3

    PV = 60000 #You Borrow $60,000
    r = 0.05 # Yearly Interest = 5%
    n = 48 
    r = r/12 #Monthly Payment 
    #96 months
    P=759.59520072743
    part1=PV*(1+r)**n
    part2=P*((((1+r)**n)-1)/r)
    FV=part1-part2
    print(FV)

    Lab 1.5 Questions 1-3

    Question 1

    import math
    from builtins import printfrom builtins import strr = 0.06 #Annual Interest RateP = 1000 #Beginning Balance of a Savings Accountt = 2 #Number of Yearsn = 1v = (P)*((1)+(r/n))**(n*t)
    va = (P)*((1)+(r/12))**(12*t)
    vb = (P)*((1)+(r/365))**(365*t)
    vc = (P)*((1)+(r/8760))**(8760*t)
    print ("Compounded Yearly: Balance After Two Year(s)= " +str(v))
    print ("Compounded Monthly: Balance After Two Year(s)= " +str(va))
    print ("Compounded Daily: Balance After Two Year(s)= " +str(vb))
    print ("Compounded Hourly: Balance After Two Year(s)= " +str(vc))
    print ("Limit = $" +str(P*math.e**(r*t)))

    Question 2

    import math
    from builtins import print
    
    P = 100r = (0.06/12)
    n = 2 * 12FV = (P)*((((1+r)**n)-1)/r)
    print("FV = $"+str(FV))

    Question 3


    import math
    from builtins import print
    P = 100r = 0.06/12FV = 4000
    
    
    a = (1 + ((FV * r)/P))
    b = math.log(a)
    c = 1+r
    d = math.log(c)
    print ("Number of Periods = "+ str(b/d))
    
    
    
    
    Lab 2.6 and Lab 2
    
    
    Lab 2.6
    import datetime
    def print_b_day_invitation(age,name,party_date,time,address,reply_date):
    print ("\n")
    print (datetime.date.today())
    print ("\n")
    print ("              "+str(age))
    print ("        "+str(name)+"'s"+" "+"turning"+" "+str(age))
    print ("Let's Celebrate with dinner and drinks")
    print (str(party_date)+" | "+str(time)+" | "+str(address))
    print ("     Kindly RSVP by "+str(reply_date))
    print_b_day_invitation(26,"Emily","October 12","6pm","450 Williams Street","October 1")
    print_b_day_invitation(80,"John","November 21","8pm","123 Oak Street","November 1")
    print_b_day_invitation(51,"Mary","December 12","6:30pm","456 Maple Street","December 1")
    Lab 2
    Q1
    import datetime
    datetime.date.today()
    print ( "Today's Date = "+str (datetime.date.today()))
    def print_3rd_business_letter(your_name,your_address,recipient_name,title,company_address):
       print ("\n")
       print (your_name)
       print (your_address)
       print ("\n")
       print (datetime.date.today())
       print ("\n")
       print (recipient_name)
       print (title)
       print (company_address)
       print ("\n")
       print ("Dear "+ (recipient_name)+ ",")
       print ("")
       print ("This is the first paragraph. It is three sentences long. This is the last sentence.")
       print ("")
       print ("This is the second paragraph. It is three sentences long. This is the last sentence.")
       print ("")
       print ("Sincerely, ")
       print (your_name)
    print_3rd_business_letter("Nicholas Benson","123 Fakestreet\nFakeville AL 35810","Clark Kent","Superman", "Fakestreet\nFakeville Al 35810")
    
    Q2
    #Day of the week for April 1, 1921#What Day of The Week Does 4 Mean?#Use a Date Object to Find A Function That Returns Today's Date#Find the Number of Days In Between Today And January 1, 1970import calendar
    import datetime
    import time
    from datetime import date
    def day_of_week(year, day_number, month):
       day_value = (calendar.weekday((year),(month),(day_number)))
       if day_value == 0:
          day="Monday"   if day_value == 1:
          day="Tuesday"   if day_value == 2:
          day="Wednesday"   if day_value == 3:
          day="Thursday"   if day_value == 4:
          day="Friday"   if day_value == 5:
          day="Saturday"   if day_value == 6:
          day="Sunday"   print (str(month)+"/ "+str(day_number)+"/ "+str(year) + " was on a "+(day))
       print ( "Today's Date = "+str (datetime.date.today()))
    day_of_week((1921), (1), (4))
    def day_difference():
       today = time.localtime()
       gmtimea = time.time()
       print ("The Difference of Days Between Today and January 1, 1970: ")
       print (int(gmtimea/86400))
    day_difference()

    Lab 2.6 and Lab 2

    Lab 2.6

    import datetime

    def print_b_day_invitation(age,name,party_date,time,address,reply_date):
    print ("\n")
    print (datetime.date.today())
    print ("\n")
    print ("              "+str(age))
    print ("        "+str(name)+"'s"+" "+"turning"+" "+str(age))
    print ("Let's Celebrate with dinner and drinks")
    print (str(party_date)+" | "+str(time)+" | "+str(address))
    print ("     Kindly RSVP by "+str(reply_date))
    print_b_day_invitation(26,"Emily","October 12","6pm","450 Williams Street","October 1")
    print_b_day_invitation(80,"John","November 21","8pm","123 Oak Street","November 1")
    print_b_day_invitation(51,"Mary","December 12","6:30pm","456 Maple Street","December 1")




    Lab 2

    Q1
    import datetime
    datetime.date.today()
    print ( "Today's Date = "+str (datetime.date.today()))
    def print_3rd_business_letter(your_name,your_address,recipient_name,title,company_address):
       print ("\n")
       print (your_name)
       print (your_address)
       print ("\n")
       print (datetime.date.today())
       print ("\n")
       print (recipient_name)
       print (title)
       print (company_address)
       print ("\n")
       print ("Dear "+ (recipient_name)+ ",")
       print ("")
       print ("This is the first paragraph. It is three sentences long. This is the last sentence.")
       print ("")
       print ("This is the second paragraph. It is three sentences long. This is the last sentence.")
       print ("")
       print ("Sincerely, ")
       print (your_name)
    print_3rd_business_letter("Nicholas Benson","123 Fakestreet\nFakeville AL 35810","Clark Kent","Superman", "Fakestreet\nFakeville Al 35810")
    
    Q2
    #Day of the week for April 1, 1921#What Day of The Week Does 4 Mean?#Use a Date Object to Find A Function That Returns Today's Date#Find the Number of Days In Between Today And January 1, 1970import calendar
    import datetime
    import time
    from datetime import date
    def day_of_week(year, day_number, month):
       day_value = (calendar.weekday((year),(month),(day_number)))
       if day_value == 0:
          day="Monday"   if day_value == 1:
          day="Tuesday"   if day_value == 2:
          day="Wednesday"   if day_value == 3:
          day="Thursday"   if day_value == 4:
          day="Friday"   if day_value == 5:
          day="Saturday"   if day_value == 6:
          day="Sunday"   print (str(month)+"/ "+str(day_number)+"/ "+str(year) + " was on a "+(day))
       print ( "Today's Date = "+str (datetime.date.today()))
    day_of_week((1921), (1), (4))
    def day_difference():
       today = time.localtime()
       gmtimea = time.time()
       print ("The Difference of Days Between Today and January 1, 1970: ")
       print (int(gmtimea/86400))
    day_difference()

    Wednesday, September 14, 2016

    History Notes From Today


    • What are the Major Beliefs of A Religion?
      • The End Goal
      • How To Achieve The End Goal
    • Way of Works: Reach the End Goal of Hinduism
      • Following the Vedas, to work up through the caste system, continually being reborn, until you become a male brahman, and you escape Samsara.
    • Upanishads aka Way of Wisdom: Reach the End Goal of Hinduism
      • You realize that you are apart of the universe, and then you escape Samsara.
    • Three Indian Religions
      • Hinduism
      • Buddhism
      • Jainism
    • Chinese Religions/Philosophies
      • Confucianism
      • Daoism
      • Buddhism
    • Confucianism
      • End Goal
        • To become one with ultimate reality (Dao)
          • You respect everyone in relation to hiearchy
      • Practice (How You Get to The End Goal)
        • Respect Everyone
        • Follow Filial Piety and the Five Relationships
        • Be Educated
        • Respect the Hiearchy 
        • Following Confucianism
          • Act for society, not for ourselves.   
      • Filial-Piety 
        • Five Relationships
          • Father and Son
          • Ruler and Minister
          • Husband and Wife
          • Elder and Younger Sibling
          • Friend and Friend
    • Daoism
      • Background
        • Was made in response to Confucianism
        • Early authors and texts
          • Laozi and Zhuangi
      • Beliefs
        • Don't Compete
        • Don't Value Posessions
        • Don't Honor the Worthy
        • Don't Pursue Knowledge in Books
      • Goals
        • Get in touch with the Dao by letting one's mind wander freely, and no longer being concerned with the everyday.
    • Confucianism vs. Daoism
      • Goal of Both
        • Get in touch with the Dao
      • How Do You Achieve it In Confucianism?
        • Moral Action
        • Devoting oneself to the government
        • Respecting the Hierarchy
        • Being Educated
      • How Do You Achieve it In Daoism?
        • Let your mind wander 
        • Don't value posessions and honor people
    • Legalism / Yin Yang
      • Time Period
        • Warring States Period
          • Rulers were looking for ways to preserve the states
      • Define Legalism
        • A way of governing through vigorous/strict laws, contrary to confucius which were based on morality, and it established the bureaucratic government of China.
        • Grouped people into Families who made sure that everyone in the family followed the law, because the punishment would be transferred to the whole family.
          • If you reported your family members for committing crime, you could get out of the punishment.
        • Farmers were given the opportunity to improve, buy, and sell land.
      • Define Yin Yang
        • Balance that works in harmony.
        • Impact, that social and natural phenomenon are caused by an imbalance.
        • First mentioned in the Book of Changes, a book on divination.
          • Yang
            • Light
            • Masculine
            • Assertive
            • Driving Force
          • Yin
            • Dark
            • Feminine 
    • Lay People vs Monks
      • Monks
        • You are professionally religious.
        • You take vows that you must follow.
      • Lay People
        • You have not taken religious vows.
        • You are not professionally religious.
    • Jainism
      • Key Figure
        • Vardhaman Mahavira
      • Key Beliefs
        • End Goal
          • Have Your Soul Float Into the Universe
        • How to Achieve It
          • Good Karma makes you light, which allows you to float
            • Self Harm can get rid of bad karma.
        • Everything Has A Soul
          • Everything is considered to have a soul
        • Ahimsa
          • Practicing non-violence and compassion.

    Monday, September 12, 2016

    History Section 02 September 12 2016


    • What were the impacts of the Upanishads?
      • Changed the way the Hindus Perceived the Cosmos
      • Focused on Philosophy Rather Than Sacrifice
      • Focused on Asceticism 
        • Wandering through the forest to find wisdom
    • What Is The Goal of Hinduism?
      • Reach Ultimate Reality
        • Get Good Karma
          • By Following Dharma
            • Moral Law
            • And Climbing the Caste System
          • To Escape Samsara
            • Which is Moksha
    • What is Moksha?
      • Escaping the Wheel of Life aka Samsara aka The Illusion of Reality
    • Who Judges You In Hinduism?
      • The Universe
    • What is Atman?
      • The Divine Within Us All
      • Realize That The Divine Is Within, And Without
    • What is Brahman?
      • The Universe is God
      • Your Move Atheist
    • What Does Upanishad Mean?
      • Sitting Near
    • Is There Only One Path To Hinduism?
      • No
    • All Indian Religions Believe in One?
      • Dharma
      • Samsara
      • Karma
    • Mustard Seed Notes
      • What Does Buddha Say?
        • Death is A part of Life, and not to waste time grieving.
      • Lessons
        • Suffering is universal
        • Material possessions aren't as important as they seem
        • Don't be upset about things that happen
      • What is Buddhism About?
        • Getting you to become one with the universe.

    History Map Quiz Notes September 12 2016


    • Pg.40
    • Pg.44
    • Pg.81
    • Pg.92
    Mesopotamia
    Tigris River
    Euphrates River
    Sumer
    Yellow River
    Yangtze River
    Red Sea
    Nile River
    Ganges River
    Indus River

    Simple Python Calculators

    Simple Derivative Calculator

    def derivative_calculator_simple():
    print ("Derivative: Ax^B = BAx^B-1")
    constant = int(input("Type in the Constant: "))
    exponent = int(input("Type in the Exponent: "))
    new_base = (constant*exponent)
    new_base = str(new_base)
    new_exponent = (exponent-1)
    new_exponent = str(new_exponent)
    print ( "Derivative = "+ (new_base) + "x^" +  (new_exponent))
    derivative_calculator_simple()

    Simple Addition Derivative Calculator

    def addition_derivative_calculator_simple():
    print ("Normal Derivative: Ax^B = BAx^B-1")
    print ("Addition Derivative: (Ax^B)+(Cx^D) = (BAx^B-1)+(DCx^D-1")
    constanta = int(input("Type in the Constant of the First Derivative: "))
    exponenta = int(input("Type in the Exponent of the First Derivative: "))
    constantb = int(input("Type in the Constant of the Second Derivative: "))
    exponentb = int(input("Type in the Exponent of the Second Derivative: "))
    new_basea = (constanta*exponenta)
    new_basea = str(new_basea)
    new_exponenta = (exponenta-1)
    new_exponenta = str(new_exponenta)
    new_baseb = (constantb*exponentb)
    new_baseb = str(new_baseb)
    new_exponentb = (exponentb-1)
    new_exponentb = str(new_exponentb)
    print ( "Derivative = "+ (new_basea) + "x^" +  (new_exponenta)+" + "+(new_baseb) + "x^" +  (new_exponentb))
    addition_derivative_calculator_simple() 

    Point Slope Calculator

    def point_slope_calculator():
    print ("Point Slope Formula: y-y1=m(x-x1)")
    x1 = int(input("Type in the Value of x1: "))
    y1 = int(input("Type in the Value of y1: "))
    m = int(input("Type in the Slope of The Tangent Line (Must Be A Whole Number): "))
    a = (m*x1)
    b = (a+y1)
    m = str(m)
    a = str(a)
    b = str(b)
    print ( "y = "+ (m) + "x" +" +"+(b))
    point_slope_calculator()

    Average Rate of Change Calculator

    def average_rate_of_change_calculator():
    print ("Average Rate of Change: fa-fb/a-b")
    x1 = int(input("Type in the Value of x1: "))
    x2 = int(input("Type in the Value of x2: "))
    function = str(input("Type in the Function: "))
    fa = int(input("Type in the Value of The Function When x1 Is The Value of x: "))
    fb = int(input("Type in the Value of The Function When x2 Is The Value of x: "))
    a = ((fa-fb)/(x1-x2))
    a = str(a)
    print ( "Average Rate of Change = "+ (a))
    average_rate_of_change_calculator()