I'm unfamiliar with Java and have come for assistance. SO far, I have reinstalled Java, deleted all temp files, cookies, etc from my browser(Firefox ), and restarted my computer to see if that would help. So far nothing has fixed my issue. This is the error that I have been getting,
Error
User Profile
Collapse
-
Thanks again for the help bvdet! It worked out great! -
Thanks bvdet! Your answers are always short, sweet and get right to the point!
How would I implement your code to making the password more random?Leave a comment:
-
Worked like a charm. Thank you! :]
Also, if it isn't too much to ask. How would I format this:
So it would say "Passwords Created! Check your folder for (file name)!&quo...Code:try: randomize(passwordLength, passwordAmount, fileToWrite) if True: showwarning("Random Password Generator", "Passwords Created! Check your folder!")Leave a comment:
-
How to get rid of a character from a password
I made a random password generator for a project and it works fine, but when it generates passwords, it always adds " { " to a password or two. Why does it add this and how do I fix it?
...Code:import os import random from Tkinter import * from tkMessageBox import * class Application(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.grid() -
Reading data from a txt file and making a graph with the given data
I'm trying to make a bar graph with the histogram data I get from the histogram.txt file after I run the scripts. How would I go about doing this?
File 1:
...Code:class TallySheet: """Manage tallies for a collection of values. Values can either be from a consecutive range of integers, or a consecutive sequence of characters from the alphabet. """ def __init__(self,
-
How to read data from a closed file and use that data?
I'm trying to make a definition(writ eHistogram) to write a histogram and I can't figure it out. I understand the concept of it, but I just can't figure out how to do it. Could someone help me within the hour. It is suppose to take the data from tallies.txt and have a similar output, except it suppose to show the percents as "a - b, c - d, and e - e" instead of a, b, c, d and e.
Thank You!
...Code:class TallySheet:
-
For this, it is suppose to pull the DNA sequence from the txt file and then the user is asked to enter a pattern to search for (example: tgaa) either in lowercase or uppercase and have it reverse the pattern in the new mutated DNA sequence.Leave a comment:
-
Easier method to reverse a given pattern?
Is there an easier way to reverse a given pattern than the way I have coded it?
Example of the program:
Enter a DNA sequence: CGATTGAATTACAAG TCCAATT
Enter the pattern: TGAA
Mutated DNA sequence: CGATTGAACATTAAG TCCAATT
***DNA.txt reads: "CGATTGAATTACAA GTCCAATT" ***
...Code:source = file('DNA.txt') DNA = source.read() print DNA while not found: -
How would I add "1 through x" above the multiplication table to make it look like an actually multiplication table to this code? I was able to get the "|" character in the table, but can't figure out the other part.
...Code:x = int(raw_input('What size multiplication table would you like: ')) for row in range(1, x + 1): print "|".join(["%4d" % (row), "".join(["%4d"Leave a comment:
-
I need the output to show like a real multiplication table would. Example: http://www.dingeman.org/images/times-table-12x12.gifLeave a comment:
-
How to add " | " to a mutliplication table?
I am having trouble trying to add the "|" character to my multiplication table. The output is suppose to have a column on the far left reading 1,2,3,4, etc. and have the "|" character separating it from the rest of the table. This is what I have at the moment.
...Code:''' This program allows a user to make a multiplication table of their choise in size. ''' number = int(raw_input('What size multiplication -
How to seperate a list and have it continue onto a different line?
I am currently having trouble trying to get my code to continue onto the next line and have my code still work properly.
This is my code as of right now:
...Code:wordChoices = wordChoices = ['ant', 'baboon', 'badger', 'bat', 'bear', 'beaver', 'camel', 'cat', 'clam', 'cobra', 'cougar', 'coyote', 'crow','deer', 'dog', 'donkey', 'duck', 'eagle', 'ferret', 'fox', 'frog', 'goat', 'goose', 'hawk', 'lion', 'lizard', 'llama','mole', 'monkey',
-
I understand the concepts of binary addition, but I just have trouble putting it into code. How would I write the code for binary addition in the method __add__?Leave a comment:
-
Is this the only way to do it? Or is there another way possible? If not, how would I go about doing this?Leave a comment:
-
Yes, but even when I put that in, I get an error, "AttributeError : BinaryNumber instance has no attribute 'dec2bin'". How exactly would I have to make this code to look to get it to add the binary numbers together correctly and have it give me the output, "a + b (binary result) (decimal result)" ?Leave a comment:
-
I am still a little confused. All I need to do is add 2 binary numbers together and have the output be " a + b (binary result) (decimal result) ". The conversion was to just give me the decimal result. So how would I go about adding this all together to get the given output, " a + b (binary result) (decimal result) " ? If you don't understand what I am trying to ask please feel free to tell me.
This was my original...Leave a comment:
-
Alright. After it is added together, I need my output to show as " a + b (binary result) (decimal result). How would I make it add them together and have it show that as the result of the two?Leave a comment:
-
I have tried a similar code that used "import math" and tried changing it to get it to work, but it didn't.
This is all of my code as of right now for my project:
...Code:# Program: ex6_18.py # Authors: Robert Mineweaser # # This example is discussed in Chapter 6 of the book # Object-Oriented Programming in Python # class BinaryNumber: '''A Binary Number Class'''Leave a comment:
-
How do you do binary addition on python?
I'm having trouble trying to add these together correctly. I have kind of ran into a brick wall. I have gotten it converted and that's it as of now.
My Code:
...Code:class BinaryNumber: '''A Binary Number Class''' #pass def __init__(self, bitString = ''): '''Constructor''' #pass self._bits = bitString def __str__(self): '''string representation'''
No activity results to display
Show More
Leave a comment: