Musings in STEM Education
  • Home
  • Research Spring 2017
    • Research Paperwork and Resources
    • Reading
  • Foundations Spring 2017
    • Nested Loop Challenge
    • Random Challenges
    • String and List Challenges
    • Mock Create PT Challenges
  • Research Fall 16
  • Foundations 2016
  • Algebra II Spr 16
  • Research Spr 16
  • Found of Engineering and Tech
  • Differentiation Strategies
    • Artifacts
    • Class Standards
    • Reflections
  • Research Fall 2015
  • VTB ICM
  • FOET Student Blogs
    • Marcos P.
    • Vinny P.
    • Rebecca S.
    • Jerome S.
    • Andrew S.
    • Zach Y.
    • Daniel Z.
    • Shayan B.
    • Mariah B.
    • Eddie C.
    • Eli H.
    • Ben Ha.
    • Ben Ho.
    • Nick H.
    • Raymond J.
    • Andrew K.
    • Andrew M.
    • Sejal P.
    • Abhi P.
    • Adam P.
    • Erica R.
    • Avni S.
    • Ethan S.
    • Stephen S.
    • Alex T.
    • Hanna W.
  • STEM Workshop Research Notebook Blogs
    • Research Notebook User 1
    • Research Notebook User 2
    • Research Notebook User 3
    • Research Notebook User 4
    • Research Notebook User 5
    • Research Notebook User 6
    • Research Notebook User 7
    • Research Notebook User 8
    • Research Notebook User 9
    • Research Notebook User 10
    • Research Notebook User 11
    • Research Notebook User 12
    • Research Notebooks User 13
    • Research Notebook User 14
    • Research Notebook User 15
    • Research Notebook User 16
    • Research Notebook User 17
    • Research Notebook User 18
    • Research Notebook User 19
    • Research Notebook User 20
  • WHS Girls' Lax
  • FOET Spr15
  • Research Spr15
  • IDD Spr15
  • Research
  • Intro to Drafting and Design
  • Architectural Drawing and Design I
  • Student Blogs
    • Kevin
    • Forrest
    • Sarfarez
    • Thomas
    • Rachel
    • Parth
    • Dani
    • Derek
    • Virinchi
    • Anusha
    • Alex
    • Melam
    • Jeet
    • Pranav
    • Tarun
    • Jeffery
    • Assata
    • Justin
    • Kristin
    • Mary
    • Udo
    • Praveen
    • Carter
    • Clay
    • Adie
    • Christian
    • Luke
    • Colin
  • About
  • Untitled

foundations 2016

thursday 11/17

11/16/2016

0 Comments

 
I added the link to register for your AP Exam on the right sidebar.

I have to be at a county meeting all day; I apologize for forgetting about this until now.  Email me with proposals for tomorrow's Friday Fun Day.  Below is my code for the challenge, and I will go over my flowcharting with you on Friday.  Please spend today first looking over my code and comparing it to yours.  Can you see that digit sum() and diffsum() are abstractions?  Where do you see algorithms that contain other algorithms?  After that, work on your Create PT.  Don't forget to log your work in your Abstraction Notebook.  Don't forget to comment your code.

# Nested Loops
# Kate Maloney
# Mon, Nov 14, 2016

def digitsum():
    icnt = 1
    jcnt = 1
    numlist = []
    for icnt in range (1,6):
        for jcnt in range (1,10):
            inum = 10*icnt+jcnt
            sumnum = icnt+jcnt
            if sumnum > 10:
                if inum <= 56:
                    numlist.append(inum)
                    print(inum)
                    print(numlist)
    
def diffsum():
    icnt = 1
    jcnt = 1
    for icnt in range (1,10):
        for jcnt in range (1,10):
            num1 = 10*icnt + jcnt
            num2 = 10*jcnt + icnt
            diffnum = num1-num2
            sumnum = icnt+jcnt
            if diffnum == sumnum:
                print(num1)

while True:
    answer = input("""Enter the number for the choice you want. 
        1 = Generate a list of all two digit numbers which are less than or equal to 56 and the sum of whose digits is greater than 10. 
        2 = Generate a list of all two digit numbers such that the number itself minus the number reversed is equal to the sum of its digits. 
        0 = Quit.
        Your choice: """)
    if answer == '1':
        digitsum()
    elif answer == '2':
        diffsum()
    elif answer == '0':
        break
    else:
        print("I dont understand. Please answer 0, 1, or 2.")
​
​
0 Comments



Leave a Reply.

    AP Exam Registration
    python_quick_reference_sheet.pdf
    File Size: 146 kb
    File Type: pdf
    Download File

    GT Inventure
    AP Exam Practice
    creatept_2016_overview__1_.pdf
    File Size: 154 kb
    File Type: pdf
    Download File

    create-sample-tasks-rubric.pdf
    File Size: 71 kb
    File Type: pdf
    Download File

    create-student-performance_faq.pdf
    File Size: 53 kb
    File Type: pdf
    Download File

    ap-computer-science-principles-course-and-exam-description.pdf
    File Size: 2433 kb
    File Type: pdf
    Download File

    AP Exam Info Link
    AP Exam Pseudo Code Reference:
    examreferencesheet_july2015-25cxxlh.pdf
    File Size: 262 kb
    File Type: pdf
    Download File

    author

    Dr. Kate Maloney has had a long career in research and teaching, including research as a National Science Foundation Post-doc Fellowship, teaching at Georgia Tech, writing the manual for a 40G optical transport system, co-founding a small engineering business, and teaching at Wheeler High School.    #WildcatNation

    Archives

    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016

    Categories

    All

    RSS Feed

Proudly powered by Weebly