User Profile
Collapse
-
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. -
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,... -
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.Leave a comment:
-
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 -
-
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...Leave a comment:
-
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 -
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?Leave a comment:
-
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 ## ## ##
Leave a comment:
-
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)...Leave a comment:
-
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"
No activity results to display
Show More
Leave a comment: