Nolan Ryno

Greenhorn
+ Follow
since Apr 13, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nolan Ryno



I'm hoping this is progress..
11 years ago
So, I think I got it...


So I think I got it so that step, but I'm hoping someone can confirm it.

The next step states:
Determine the password generated by the PasswordGenerator class using control structures and the appropriate method in the PasswordGenerator class

And it hints that:

1. The password will be stored in the 'password' local variable
2. Each character in the password will be a standard ASCII character (i.e. it will have an ACSII code between 0 and 127)
3. Part of the processing for this step will necessitate the use of a method in the StringBuilder class

Hoping I can get anymore hints or help on how to do this step while I try to work on it...
11 years ago
sorry about that..int length, and stringbuilder password are supposed to be local variables, not class variables..
11 years ago


Now I know, most people won't want to help with MY assignment, but i'm stuck beyond belief and have tried using all the references available but i cannot understand what to do. My professor has built his own class called PasswordGenerator (Documentation here -- http://www.technology.heartland.edu/faculty/todds/csci130/assignments/A5_password/doc/index.html). I have no idea how to do his very first step which is

1. Use documentation to determine the length of the password generated by the PasswordGenerator class using control structures (loops) and the appropriate methods in the PasswordGenerator class.

The Local Variables that I can use ONLY are: password (StringBuilder) & length (integer).

His first directions also state that:
The length will be stored in the 'length' local variable
The password will not be longer than 100 characters


If I could get any help or any help using this class, it would be amazing. I'm not looking to cheat, and i'm really looking to learn so I can get better and better. The more help the better. Sorry if this seems like a desperate attempt to "cheat" or "get answers", I just need some help. I know I need to use a loop first, but i'm very unsure how to go by doing that exactly.
11 years ago
I fixed it so that it was this.password=password; on the Password class. I'm suppose to do all this in the driverclass Driver

Methods

public static void main(String[] args):

Arguments:
String[] args
Return:
None



Behavior:

Allows the user to input a user name and password

Uses the password to instantiate a new Password reference, which points to a EncryptedPassword object

Calls the getPassword, getEncryptionMethod, and toString methods of the newly instantiated object, and prints the information to the screen

Prompt the user to re-enter the password and tell them whether or not they entered it correctly

Uses the user name and password to instantiate a new Password reference, which points to a UserNamePassword object

Calls the getPassword, getEncryptionMethod, and toString methods of the newly instantiated object, and prints the information to the screen

Prompt the user to re-enter the password and tell them whether or not they entered it correctly

Uses the password to instantiate a new EncryptedPassword reference, which points to an EncryptedPassword object

Calls the getPassword, getEncryptionMethod, and toString methods of the newly instantiated object, and prints the information to the screen

Prompt the user to re-enter the password and tell them whether or not they entered it correctly

Uses the user name and password to instantiate a new UserNamePassword reference, which points to a UserNamePassword object

Calls the getPassword, getEncryptionMethod, and toString methods of the newly instantiated object, and prints the information to the screen
Prompt the user to re-enter the user name and password and tell them whether or not they entered them correctly
top

----------------------------------------------------------------------------------------------------------------------------------------------------------------------
But overall i do not know where to start. I think my code is messed up, but i'm not sure if i made a mistake. Overall I'm so stressed out that its ridiculous. I do not even know where to start and could use some help..
11 years ago

---------------------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------



During the last lines of my Driver, when i call for encryptedPassword.getPassword it should display an encrypted password and mess up the password. But instead it displays null, and i have no idea why. Also I don't know what to do to make the user enter the password and be able to Prompt the user to re-enter the password and tell them whether or not they entered it correctly, thats why i have question marks. If anyone could give me a little help that would be great because i'm stuck and have been trying to figure out the answer..
11 years ago











Need help...I've done all this, and now i'm stuck with the question of how to instantiate something. I've done all this and now i'm just completely stuck and have been trying to get this done, but overall this has kept me stuck. The next steps are Uses the password to instantiate a new Password reference, which points to a EncryptedPassword object.......Calls the getPassword, getEncryptionMethod, and toString methods of the newly instantiated object, and prints the information to the screen..........Prompt the user to re-enter the password and tell them whether or not they entered it correctly..... Those 3 steps have gotten me stuck. The code might not be exactly right, but i think its good all the way through. I was hoping i could get some help, or maybe some tips to even get passed the first step on my driver program. If anyone could help it would mean alot. Thank you..
11 years ago