User Profile

Collapse

Profile Sidebar

Collapse
bferguson94
bferguson94
Last Activity: May 25 '10, 05:15 AM
Joined: Feb 26 '10
Location: WA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bferguson94
    replied to Encrypt/Decrypt
    in Java
    p.s. I have no room for much modification, if you have any suggestions please let me know.. I would really appreciate it. I'm kind of stuck and I'm really just looking for advice, not a whole makeover of my code.
    See more | Go to post

    Leave a comment:


  • bferguson94
    started a topic Encrypt/Decrypt
    in Java

    Encrypt/Decrypt

    Design a program that allows the user to encrypt or decrypt a file.

    This means you will need to ask the user the direction to shift (left or right) and the number of places to shift (should they choose to encrypt a file). The number of places a file can be shifted is anywhere from 0 to 2 billion. You may assume the input from the user will be in this range (the user will NOT enter a negative number). If the user chooses to encrypt,...
    See more | Go to post

  • ya that was it..

    thanks!!

    do you know how i could catch invalid user input on the menu that I have?? I have it programmed to catch any numbers out of range " < 0 and >4.. but it doesn't catch chars.
    See more | Go to post

    Leave a comment:


  • bferguson94
    started a topic TypeError: 'function' object is not iterable

    TypeError: 'function' object is not iterable

    I think this program should work, but for some reason i keep getting a "TypeError: 'function' object is not iterable which is keeping my program from accesing the text document..

    any suggestions?

    Code:
     ##call to input file and return
    ##also calls to "lookup" modules for output
    
    def main():
        myLastName = []
        myFirtName = []
        myPhoneNumber = []
        lname,fname,phone
    ...
    See more | Go to post

  • thanks! vary helpful!!
    See more | Go to post

    Leave a comment:


  • Sorry that my algorithm was unclear.. It came from notes that I had taken and from my inability to understand calculus. Below will be the set of instructions given to me by my professor.

    **************the instructions go as follows*************** ****


    In calculus, there are techniques to find relative extremes for a function. A relative extreme is the highest value or the lowest value of a function within a limited...
    See more | Go to post

    Leave a comment:


  • bferguson94
    started a topic python program to solve calculus problem

    python program to solve calculus problem

    I was given the following assignment:

    f(x)=2x^3-8x^2+x+16



    1. create a python program that will fing f(x)

    2.find the axtreme in function 1 acoss the closed interval (1,-3)

    below was my solution, but doesnt seem to work.. could you please help me out.








    Code:
    def main():
        highest= -9999999
        x
    ...
    See more | Go to post

  • bferguson94
    replied to Calculation of median with even number
    I got the program to work. Thanks!! I'm not sure what an index operator is, if you have the time could you explain it to me?
    See more | Go to post

    Leave a comment:


  • bferguson94
    replied to Calculation of median with even number
    thanks for the advice, but seems as if the median wont print now..any suggestions
    Code:
    ###
    ###
    ##menu reads four options to user
    ##includes: creating a list, mode, median and quit
    ##this program needs to except positive integers
    ##it also needs to inform the user of any errors or invalid input
    ##so far this program seems to work
    ##but the arithometic for median seems off
    ##
    ##
    ##
    ...
    See more | Go to post

    Leave a comment:


  • bferguson94
    replied to How do you find the median of a list?
    median for even num. HELP!!!

    def main():
    myList=[]
    choice = 0
    while choice !='4':
    choice= raw_input('1.ad d number to list\n2.get mean \n3.get median \n4.quit')
    if choice == '1':
    addNum(myList)
    if choice == '2':
    getMean(myList)
    if choice == '3':
    getMedian(myLis t)
    if int(choice)...
    See more | Go to post

    Leave a comment:


  • bferguson94
    started a topic Calculation of median with even number

    Calculation of median with even number

    Code:
    def main():
        myList=[]
        choice = 0
        while choice !='4':
            choice= raw_input('1.add number to list\n2.get mean \n3.get median \n4.quit')
            if choice == '1':
                addNum(myList)
            if choice == '2':
                getMean(myList)
            if choice == '3':
                getMedian(myList)
            if int(choice) < 0:
                print "invalid input"
    ...
    See more | Go to post
    Last edited by bvdet; Feb 27 '10, 12:13 AM. Reason: Add code tags
No activity results to display
Show More
Working...